Create a chat completion
Compatible with OpenAI Chat Completions, for inference against conversational models. The official SDKs work as-is.
post/v1/chat/completions
Request
- Base URL: https://gateway.amux.ai
- URL: https://gateway.amux.ai/v1/chat/completions
- Auth: HTTP bearer
Headers
Content-Typestring required
Always application/json.
anthropic-betastring
Anthropic beta feature switch. Not supported on this endpoint — it is not forwarded even when the request is converted and routed to an Anthropic upstream. Use /v1/messages if you need it.
Request body
Example request
{
"model": "anthropic/claude-opus-5",
"messages": [
{
"role": "user",
"content": "Hello!"
}
]
}Response
Inference succeeded. model comes back as the canonical ID — the same value you sent.
Example response
{
"id": "chatcmpl-8f3c1a",
"object": "chat.completion",
"model": "anthropic/claude-opus-5",
"choices": [
{
"message": {
"role": "user",
"content": "Hello!"
},
"finish_reason": "stop"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.