/responsesCreate a model response
Creates a model response from text, image, or other supported input. Configure model, input, instructions, tools, output formatting, streaming, and token limits to control generation. Set background to true when you need a response that can be cancelled asynchronously.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
Model response request containing input and generation, tool, caching, streaming, and conversation configuration.
One documented failure
slow_downYour request rate increased too quickly. Please reduce the request rate and gradually increase it again.
Traffic increased too quickly
One documented failure
server_is_overloadedThe model is temporarily overloaded. Please retry your request after a brief delay.
The requested model is temporarily overloaded
A 429 is returned when the request exceeds the rate limit; reduce the request rate and increase it gradually. A 503 is returned when the requested model is temporarily overloaded; retry after a brief delay. Use valid input, model, tools, and output configuration values, and use max_output_tokens only with a supported token limit.