chat

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.

post/v1/chat/completions

Request

  • Base URL: https://api.beatra.ai (the document declares no server; this is the origin it was published from)
  • URL: https://api.beatra.ai/v1/chat/completions
  • Auth: none declared

Headers

x-request-idstring nullable
authorizationstring nullable

Request body

modelstring required

Model name (e.g. 'gpt-4o-mini', 'qwen-max', 'auto')

temperaturenumber nullable
top_pnumber nullable
max_tokensinteger nullable

Legacy; reasoning models reject this. beatra maps to max_completion_tokens.

max_completion_tokensinteger nullable
ninteger nullable
seedinteger nullable
streamboolean
frequency_penaltynumber nullable
presence_penaltynumber nullable
logit_biasobject nullable
logprobsboolean nullable
top_logprobsinteger nullable
parallel_tool_callsboolean nullable
reasoning_effort'minimal' | 'low' | 'medium' | 'high' | 'max' | 'xhigh' nullable
modalitiesstring[] nullable
metadataobject nullable
storeboolean nullable
service_tierstring nullable
safety_identifierstring nullable
prompt_cache_keystring nullable
userstring nullable

Deprecated; use safety_identifier

Response

Sync completion or streaming chat completion chunks

idstring required
object'chat.completion'
createdinteger required
modelstring required

Resolved model snapshot (OpenAI convention)

system_fingerprintstring nullable
service_tierstring nullable

Changes

No recorded changes to this operation across all 1 revision of this API.