| Method and path | POST /responses |
| Purpose | The same router in the OpenAI Responses dialect, the default transport for the OpenAI Agents SDK and Pydantic AI. |
| Authentication | API key or session |
| Limits | As chat completions. |
Request
input takes the string form or the item-list form, including a full function_call and function_call_output transcript. instructions, tools, tool_choice, text.format, and reasoning.effort map onto the routed request. model takes the same values as chat completions, auto included.
The endpoint is stateless. Nothing is stored between calls.
| Field | Behavior |
|---|---|
store | Accepted and ignored. The response reads back store: false. |
previous_response_id | Refused with a 400. A request that believes ten turns are in context when one was sent is a corrupted loop, and failing loudly is the smaller harm. Send the whole conversation in input, which the Agents SDK does by default. |
Hosted tools: web_search, file_search, code_interpreter, mcp | Refused by name. Inferbase routes and serves models; it does not run OpenAI's hosted tools. |
Example
bash
curl https://api.inferbase.ai/api/v1/inference/responses \
-H "Authorization: Bearer inf_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"model": "auto",
"instructions": "You are a concise assistant.",
"input": "List three uses of a rerank model."
}'Response
The Responses shape. Streaming emits the full typed event sequence. The served model and the request id carry the same meaning as on chat completions.
Errors
As chat completions, plus a 400 for previous_response_id or a hosted tool type. See Errors.
Last updated September 10, 2026.