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 Serverless Inference service base URL:
https://api.inference.wandb.ai/v1.
- Your CoreWeave Forge API key:
[YOUR-API-KEY].
- Your CoreWeave Forge team and Weights & Biases project:
[YOUR-TEAM]/[YOUR-PROJECT] (optional).
- A model ID from the available models.
Request examples
The following examples show how to send a chat completion request using Python and curl. Replace the placeholder values with your own API key, optional team and project, and a model ID.
A successful request returns a response in the following OpenAI-compatible format, including the generated assistant message and token usage details.
Last modified on September 30, 2026