Create a chat completion
Create a model response from the conversation history. Supports streaming and non-streaming responses. Compatible with the OpenAI Chat Completions API.
POST
/v1/chat/completions
Service root: https://getrouter.ai
Protocol: OpenAI Chat Completions
Authentication: Authorization: Bearer YOUR_API_KEY
Request body
The request body is required. Media type: application/json
Request fields
Example request
Responses
Success response fields
Example response
Related guide
For complete workflows and examples, read the Chat Completions API Guide.
This page is generated from the public Relay OpenAPI specification. Browse the complete specification in the API Explorer.
