Chat completions
OpenAI-compatible chat completions endpoint. Supports streaming via stream=true.
Authentication
AuthorizationBearer
API key passed as Authorization: Bearer token.
Request
This endpoint expects an object.
model
messages
stream
temperature
max_tokens
top_p
frequency_penalty
presence_penalty
Response
Completion or SSE stream
id
object
created
model
choices
usage
Errors
401
Unauthorized Error
402
Payment Required Error
503
Service Unavailable Error
