Skip to main content

Documentation Index

Fetch the complete documentation index at: https://wb-21fd5541-style-guide-support-models-articles-20260527-00.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

A 401 Invalid Authentication error means your API key is invalid or your W&B project entity or name is incorrect. Use the checks on this page to confirm both values are correct so requests can authenticate.

Verify your API key

Confirm that you have a valid, current API key before troubleshooting other causes.
  1. Create a new API key at User Settings.
  2. Store your API key securely.

Check your project configuration

Requests must specify the project as [YOUR-TEAM]/[YOUR-PROJECT] so the service can route them to the correct W&B team and project. Replace [YOUR-API-KEY] with your W&B API key, and replace [YOUR-TEAM]/[YOUR-PROJECT] with your W&B team and project. Python example:
client = openai.OpenAI(
    base_url='https://api.inference.wandb.ai/v1',
    api_key="[YOUR-API-KEY]",
    project="[YOUR-TEAM]/[YOUR-PROJECT]",  # Must match your W&B team and project
)
Bash example:
curl https://api.inference.wandb.ai/v1/chat/completions \
  -H "Authorization: Bearer [YOUR-API-KEY]" \
  -H "OpenAI-Project: [YOUR-TEAM]/[YOUR-PROJECT]"

Common mistakes

  • Using personal entity instead of team name.
  • Misspelling team or project name.
  • Missing forward slash between team and project.
  • Using an expired or deleted API key.

Troubleshoot remaining issues

  • Verify the team and project exist in your W&B account.
  • Ensure you have access to the specified team.
  • If the current API key isn’t working, create a new one.

Inference