Skip to content

Responses

The Responses API is suitable for clients, coding agents, and new application frameworks that use the OpenAI Responses protocol. It is commonly used when a unified input structure, tool calling, reasoning controls, or more complex response structures are needed.

POST /v1/responses

Full URL:

https://www.routeapi.ai/v1/responses
Terminal window
curl https://www.routeapi.ai/v1/responses \
-H "Authorization: Bearer $ROUTEAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o",
"input": "Explain the main purpose of RouteAPI"
}'
FieldTypeRequiredDescription
modelstringYesModel ID
inputstring/arrayYesInput content
instructionsstringNoSystem-level instructions
streambooleanNoWhether to stream output
toolsarrayNoTool definitions
tool_choicestring/objectNoTool choice strategy
temperaturenumberNoSampling temperature
max_output_tokensnumberNoMaximum output token count
ItemChat CompletionsResponses
Input structuremessagesinput + instructions
Compatibility rangeMost traditional OpenAI SDK compatible clientsMore common in new protocol clients and coding agents
Tool callingSupported, depends on the selected modelSupported, usually more expressive
Recommended scenariosGeneral chat and compatible accessNew projects, coding agents, complex tasks
  • If the client explicitly requires the OpenAI Responses protocol, use /v1/responses.
  • If the client only supports traditional OpenAI Chat Completions, use /v1/chat/completions.
  • Whether the same model supports Responses depends on RouteAPI model configuration and service capabilities.