Set up your W&B account and project
You must have the following items to access Serverless Inference:- A W&B account. Sign up at W&B.
-
A W&B API key.
To create an API key, select the Personal API key or Service Account API key tab for details.
For secure storage options, see Store API keys securely.
- Personal API key
- Service account API key
To create a personal API key owned by your user ID:- Log in to W&B, then click your user profile icon > User Settings.
- Click Create new API key.
- Provide a descriptive name for your API key.
- Click Create.
- Copy the displayed API key immediately and store it securely.
- A W&B project. Create a project in your W&B account to track usage.
Set up your environment for Python
If you plan to call the Inference API from Python, set up the following in addition to the general requirements:- Complete the general requirements in the preceding section.
-
Install the required libraries:
NoteThe
weave library is optional but recommended. It lets you trace your LLM applications. Learn more in the Weave Quickstart.Next steps
With your account, API key, project, and optional Python environment in place, you’re ready to start sending requests. Continue with one of the following resources:- Check the API reference to learn about available endpoints.
- Try the usage examples to see the service in action.
- Use the UI guide to access models through the web interface.