Create chat completion (OpenAI-compatible)
Creates a chat completion using an OpenAI-compatible request and response shape. Set stream=true to receive Server-Sent Events with chat.completion.chunk payloads. Use model="auto" to let beatra choose a capable model, or pass a specific model id returned by /v1/models.
Request
- Base URLhttps://api.beatra.ai (the document declares no server; this is the origin it was published from)
- Authnone declared
Headers
Request body
Request body for POST /v1/chat/completions.
OpenAI-compatible request with an explicit, typed field surface. Raw upstream passthrough is intentionally forbidden because it can override the routed model, messages, streaming mode, or operator service tier.
Model name (e.g. 'gpt-4o-mini', 'qwen-max', 'auto')
Legacy; reasoning models reject this. beatra maps to max_completion_tokens.
Deprecated; use safety_identifier
Response
Sync completion or streaming chat completion chunks
Standard OpenAI ChatCompletion response plus usage.credits.
Resolved model snapshot (OpenAI convention)
Changes
No recorded changes to this operation across all 46 revisions of this API.