Skip to main content
Create a chat completion using the /chat/completions endpoint. This endpoint follows the OpenAI format for sending messages and receiving responses.

Requirements

To create a chat completion, provide:
  • The Inference service base URL: https://api.inference.wandb.ai/v1
  • Your W&B API key: <your-api-key>
  • Optional: Your W&B team and project: <your-team>/<your-project>
  • A model ID from the available models

Request examples

Response format

The API returns responses in OpenAI-compatible format: