Skip to main content
Complete these steps before using the W&B Inference service through the API or UI.
Before starting, review the usage information and limits to understand costs and restrictions.

Set up your W&B account and project

You need these items to access W&B Inference:
  1. A W&B account
    Sign up at W&B
  2. A W&B API key To create an API key, select the Personal API key or Service Account API key tab for details.
    To create a personal API key owned by your user ID:
    1. Navigate to User Settings and log in if necessary.
    2. Click Create new API key.
    3. Provide a descriptive name for your API key.
    4. Click Create.
    5. Copy the displayed API key immediately and store it securely.
    The full API key is only shown once at creation time. After you close the dialog, you cannot view the full API key again. Only the key ID (first part of the key) is visible in your settings. If you lose the full API key, you must create a new API key.
    For secure storage options, see Store API keys securely.
  3. A W&B project
    Create a project in your W&B account to track usage

Set up your environment (Python)

To use the Inference API with Python, you also need to:
  1. Complete the general requirements above
  2. Install the required libraries:
    pip install openai weave
    
NoteThe weave library is optional but recommended. It lets you trace your LLM applications. Learn more in the Weave Quickstart.See usage examples for code samples using W&B Inference with Weave.

Next steps

After completing the prerequisites: