Chat completion
Create a chat completion with an open model. Set the OpenAI SDK base URL to https://api.munito.ai/inference/v1 and use your Munito API key. Both Authorization: Bearer and X-API-Key are accepted. Use stream for streamed output, tools for function calls, and response_format for structured output. Each model accepts its own parameters, media types, and limits, and the API answers 400 to a request outside them. Images and video can use inline data or validated remote URLs. Audio uses inline data only. Set store to true to retain the completion. Account limits can further restrict output.
Request
- Base URLhttps://api.munito.ai/inference/v1
- URLhttps://api.munito.ai/inference/v1/chat/completions
- Auth
- HTTP bearer
- or API key in header x-api-key
Headers
priority, standard or flex. The response names the tier that is billed; see x-ratelimit-over-limit. See Service tiers.
An opaque token. Send it back with the next request of the conversation, so that the prompt cache can serve it. Without it, the API uses prompt_cache_key, x-session-affinity or user, or metadata.user_id on the Messages API, for the same purpose.
off, model, class or any: what may serve a chat request that its own capacity refuses. The response names the step that served it. Off by default. The request keeps its region, and you pay the price of the model that you asked for. Flex, background and free-tier requests do not overflow.
respond-async: answer 202 at once. Then poll the location until the request finishes.
Request body
Example request
{
"model": "qwen/qwen3.8-27b"
}Response
An OpenAI-compatible chat completion.
Changes
No recorded changes to this operation across all 1 revision of this API.