Text output configuration, including format ({"type": "json_schema", ...} for structured output) and verbosity.
Responses
Create response
Create a model response in the OpenAI Responses API format
/v1/responsesUse the OpenAI Responses API format with any model Inworld Inference serves. Choose a provider/model ID, auto, or a saved router (inworld/<router-id>). You can also set fallback models, sort, and web search. To use the OpenAI SDKs, set the base URL to https://api.inworld.ai/v1 and use a Basic Authorization header.
Every response includes a routing object listing the models tried. Stored responses and previous_response_id work only on OpenAI and Azure OpenAI models. The store default is false. See the Responses API guide for supported parameters, routing options, streaming, and stored responses.
A provider/model id (for example openai/gpt-5.4), auto for automatic selection, a saved router (inworld/<router-id>), or an Inworld-hosted model (inworld/models/<name>).
A string (sent as one user message) or a non-empty array of input items (messages, function call outputs, reasoning items). item_reference items are not supported.
Tools the model may call: function tools, and hosted tools such as {"type": "web_search"} where the provider supports them.
Dropped, with a warning in routing.attempts[].warnings, for models that do not support it.
Reasoning configuration. effort is dropped, with a warning, for models that do not support it.
Store the response so it can be continued (OpenAI and Azure OpenAI) or retrieved (OpenAI). With Inworld-managed credentials, defaults to false, unlike OpenAI's API; with your own provider key, the provider's default applies. background: true also stores the response. Refused under zero data retention.
Run the response asynchronously. OpenAI models only. With Inworld-managed credentials, background mode must be enabled for your workspace; contact support. Refused under zero data retention.
Continue from a response this workspace stored with store: true. Name one model on the provider that stored it (OpenAI or Azure OpenAI), without fallback models. Refused under zero data retention.
OpenAI's prompt cache key. What it does depends on the model generation: on earlier OpenAI models it helps route requests that share a prefix to the same cache, and on newer ones it keeps cache accounting separate, for example per customer; see OpenAI's prompt caching guide. Passed to OpenAI and Azure OpenAI models only; other providers do not receive it. See Prompt caching.
OpenAI's prompt cache retention policy, such as in_memory or 24h, passed to OpenAI models. Accepted values depend on the model; see OpenAI's prompt caching guide.
Inworld: fallback models, tried in order when the primary fails. auto is not allowed here.
Inworld: provider preferences.
Inworld: {"ttft_timeout": ...} falls back to the next model when the first token is slow.
Inworld: an optional session id for grouping the requests of one conversation. Printable ASCII; default is reserved.
Web search configuration, at the top level or in extra_body. With a router-run engine, the model calls a search tool in a loop and the router returns a grounded answer; native uses the provider's built-in search. See Web search.
The model id the provider reports, for example gpt-5.4. The provider-qualified id is in routing.attempts[].model.
Inworld routing information. Present on responses from POST /v1/responses, not on retrieved responses.
Show child attributes
Show child attributes
The provider/model identifier that was attempted, for example openai/gpt-5.2. The prefix is the provider.