Responses

Create a response

Create a response with the OpenAI Responses API. Send a string or a list of items in input. Set the system prompt with instructions.

  • Continue a conversation with previous_response_id. The server restores its history from responses created with store: true.
  • Set stream: true to receive response events.
  • Set background: true to generate a response asynchronously, then poll or attach later. A background response is stored.
  • Use function tools or text.format with json_schema for structured output.

A response is not stored by default, unlike OpenAI. Send store: true to keep it for 30 days. A max_output_tokens above the output maximum of the model uses that maximum.

post/responses

Request

  • Base URL
    https://api.munito.ai/inference/v1
  • URL
    https://api.munito.ai/inference/v1/responses
  • Auth
    • HTTP bearer
    • or API key in header x-api-key

Headers

munito-service-tier'priority' | 'standard' | 'flex'

priority, standard or flex. The response names the tier that is billed; see x-ratelimit-over-limit. See Service tiers.

munito-affinitystring

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.

munito-overflow'off' | 'model' | 'class' | 'any'

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.

Request body

modelstring required

Model id from GET /models, e.g. qwen/qwen3.8-27b.

instructionsstring

System instructions for this response.

previous_response_idstring

Continue from an earlier response. The server replays that conversation state.

storeboolean

Keep the response for 30 days for later retrieval and for previous_response_id.

streamboolean

Stream semantic events back as server-sent events.

backgroundboolean

Generate server-side and return immediately; poll or attach later. A background response is stored, so store: false with background: true answers 400.

max_output_tokensinteger

Maximum output tokens to generate, capped at the model's output maximum.

temperaturenumber

Sampling temperature (0–2).

toolsobject[]

OpenAI-style function tools the model may call. A namespace tool groups function tools. The API accepts a hosted web search tool, and the model answers without a search.

Example request

{
  "model": "qwen/qwen3.8-27b"
}

Response

The response object: the same shape that the final response.completed stream event carries.

Changes

No recorded changes to this operation across all 1 revision of this API.