Docs
API reference
The single endpoint that powers the chat.
POST /api/chat
Streams an assistant response for a list of messages.
Request body
json
{
"messages": [
{ "role": "user", "content": "Hello!" }
],
"model": "mimo-v2.5-pro"
}messages— required, non-empty array (max 50).model— optional, defaults toMIMO_MODEL.
Response
A streamed response using the AI SDK data-stream protocol, with Cache-Control: no-store. Consume it with the AI SDK's useChat on the client.
Errors
400— invalid body.413— conversation too long.503— no API key / proxy configured.502— upstream gateway error.
The endpoint is stateless and writes no logs. Each request is handled in isolation.