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 whose endpoints in the List models response include /v1/responses; other models are refused with 400. 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 some models; on others, the request returns 400. 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. An input_image image_url or input_file file_url must be an https, http or data URL; any other scheme, or a file_url with none, returns 400 with param naming the field, such as input[0].content[1].file_url.
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.
Upper bound on output tokens, including reasoning tokens. Some models have a minimum output length; a smaller value (including 0 or a negative value) is raised to it, and a warning in routing.attempts[].warnings says so.
Reasoning configuration. effort is dropped, with a warning, for models that do not support it.
Store the response so it can be continued or retrieved. Only some models can store a response: when a model the request can reach cannot, the request returns 400 with param: "store". 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. Only some models can run in the background: when a model the request can reach cannot, the request returns 400 with param: "background". 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, without fallback models; otherwise the request returns 400 with param: "model". 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 only to models that take it; other models do not receive it, without an error. See Prompt caching.
OpenAI's prompt cache retention policy, such as in_memory or 24h. Passed only to models that take it; other models do not receive it, without an error. 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.