Create a chat completion
Send messages to any available language model and receive replies. Compatible with the official OpenAI SDKs, change only the base URL and key. Find model IDs in the console catalog. Supports streaming, tool calling and JSON mode.
Authentication
AuthorizationBearer
Mindrift API key (sk_…). Create scoped keys in console → API Keys.
Request
This endpoint expects an object.
model
Model ID, e.g. deepseek-v4-flash.
messages
stream
stream_options
temperature
max_tokens
Max tokens to generate.
max_completion_tokens
top_p
frequency_penalty
presence_penalty
stop
response_format
tools
OpenAI function tools.
tool_choice
OpenAI tool_choice.
seed
reasoning_effort
Reasoning tier, when supported by the model.
Allowed values:
n
Completions to generate.
user
Your end-user id (optional).
Response
Chat completion (or SSE stream when stream: true).
id
object
created
model
Echoes the requested model ID.
choices
usage
Errors
400
Bad Request Error
401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error
429
Too Many Requests Error
500
Internal Server Error
502
Bad Gateway Error
