Create a response
Create a model response with text input, tools, reasoning controls, streaming, and multi-turn continuation.
POST
Creates a response from text or structured input. The Responses API represents model output as typed items and is the recommended surface for new agentic workflows.
Endpoint
Headers
API key using the format
Bearer $YELU_API_KEY.Must be
application/json.Request body
A model ID returned by
GET /v1/models.Text input or an array of typed input messages/items. Supply input unless continuing in a provider-supported way.
High-priority instructions for the response.
ID of a prior response to continue a conversation when the selected model/provider supports stored response state.
Maximum output tokens, including model-specific reasoning usage where applicable.
Sampling temperature on models that expose this control.
Nucleus sampling probability on models that expose this control.
Returns typed Server-Sent Events when
true.Tools the model may call, including function definitions supported by the selected model.
Controls whether and which tool the model may select.
Reasoning configuration. Supported fields include
effort (low, medium, or high) and provider-supported summary controls.auto allows context truncation when supported; disabled fails instead of silently removing context.Response
Unique response identifier.
Always
response for the completed response object.Unix timestamp for creation.
completed, failed, in_progress, or incomplete.Model that handled the request.
Typed output items. A message item commonly includes
id, status, role, and a content array with output_text objects. Tool calls appear as separate items.Input, output, total, cached, or reasoning token accounting supplied by the selected model.
Error codes
Last modified on July 13, 2026