Skip to content

Responses

Responses подходит для клиентов и coding agents, которые используют протокол OpenAI Responses.

POST /v1/responses
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 RouteAPI"}'
FieldTypeОбяз.Описание
modelstringДаModel ID
inputstring/arrayДаInput content
instructionsstringНетSystem instruction
streambooleanНетStreaming output
toolsarrayНетTool definitions
tool_choicestring/objectНетTool selection policy
temperaturenumberНетSampling temperature
max_output_tokensnumberНетMaximum output tokens
ItemChat CompletionsResponses
Inputmessagesinput + instructions
ClientsTraditional SDKsNew protocol clients
Tool callsSupported, depends on modelSupported, usually more expressive
ScenarioGeneral chatCoding agents and complex tasks
  • Use /v1/responses when the client requires Responses.
  • Use /v1/chat/completions for traditional chat clients.
  • Support depends on model capability.