Grounded Responses
Generate grounded Responses API outputs with retrieval-augmented generation (RAG).
Error Reference: Grounded Responses
Authorizations
Headers
Body
Responses API request body extended with retrieval-augmented generation: retrieved publisher content is injected into the prompt before the model is called. Takes the same grounding parameters as the grounded Chat Completions endpoint.
String prompt or array of input items
Minimum vector-similarity certainty (0-1) a retrieved source must meet to be attached. Omit to use the server default.
0 <= x <= 1Image generation options (quality, size) mapped onto OpenAI's image_generation tool; ignored by providers without quality controls.
Publisher whose content is searched for grounding sources. Omit the field to use the default publisher (GlooGrounded); send an empty string or null to disable retrieval and answer from the model alone.
Maximum number of sources to retrieve and inject.
1 <= x <= 10Response
Successful grounded Responses API result. If stream is false or omitted, the response is JSON and includes sources_returned. If stream=true, the response is a named Server-Sent Events stream and X-Sources-Returned reports whether retrieval returned sources.
A non-streaming grounded Responses API result.
"response"Unix timestamp when the response was created.
completed, failed, in_progress, incomplete Items generated by the model, such as assistant messages, images, function calls, or reasoning summaries.
An assistant message produced by the model.
- Message
- Image Generation
- Function Call
- Reasoning
Whether retrieval returned sources used to ground the request.
Token usage for the response.
Sampling parameters ignored because the selected model does not support them.

