Skip to main content
Docs · API reference

Responses

POST /responses. The OpenAI Responses shape, for the OpenAI Agents SDK and Pydantic AI, over the same router.

Browse docs · API referenceResponses
On this page
  1. Request
  2. Example
  3. Response
  4. Errors
Method and pathPOST /responses
PurposeThe same router in the OpenAI Responses dialect, the default transport for the OpenAI Agents SDK and Pydantic AI.
AuthenticationAPI key or session
LimitsAs 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.

FieldBehavior
storeAccepted and ignored. The response reads back store: false.
previous_response_idRefused 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, mcpRefused 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.