MCP chat completions
OpenAI-compatible chat completions exposed under the MCP route. Always returns an SSE stream.
Authentication
AuthorizationBearer
API key passed as Authorization: Bearer token.
OR
X-Api-Keystring
API key passed as the X-Api-Key header.
Request
This endpoint expects an object.
model
messages
stream
temperature
max_tokens
top_p
frequency_penalty
presence_penalty
Response
SSE stream
Errors
401
Unauthorized Error
