Responses

Openai Responses

Changed on
post/v1/responses

Request

  • Base URL: https://api.deepinfra.com
  • URL: https://api.deepinfra.com/v1/responses
  • Auth: HTTP bearer

Headers

x-deepinfra-sourcestring nullable
x-deepinfra-service-tierstring nullable

Per-request service tier (priority or flex) for clients that cannot set the service_tier body field. The body field wins when both are present; unrecognized values ride the default tier.

xi-api-keystring nullable
x-api-keystring nullable

Request body

service_tier'default' | 'priority' | 'flex'
fail_fastboolean

If true, the request is rejected immediately with HTTP 429 when the model has no spare capacity, instead of waiting in the queue. Opt-in; the default (false) keeps standard queueing behavior.

modelsstring[] nullable

Ordered list of up to 4 fallback models. The request is attempted on each model in order: when a model rejects it for lack of capacity (HTTP 429 model-busy / flex no-capacity), the next model is tried server-side. The first model that accepts serves the request; the response's model field and billing reflect that model, at that model's pricing. Models before the last are attempted without queueing (as if fail_fast were set); the last model honors the request's own fail_fast value. When models is set, the model field is ignored. Entries must be plain model names (no deploy_id:, custom_hostport, or :revision specifiers); duplicate entries are ignored, keeping the first occurrence.

modelstring required
instructionsstring nullable
max_output_tokensinteger nullable
max_tool_callsinteger nullable
temperaturenumber nullable
top_pnumber nullable
top_logprobsinteger nullable
metadataobject nullable
parallel_tool_callsboolean nullable
streamboolean
userstring nullable
storeboolean
previous_response_idstring nullable
backgroundboolean
includestring[] nullable
truncation'auto' | 'disabled' nullable
promptobject nullable
conversationunknown
min_pnumber nullable
top_kinteger nullable
repetition_penaltynumber nullable
stop_token_idsinteger[] nullable
chat_template_kwargsobject nullable
continue_final_messageboolean nullable
ignore_eosboolean nullable
prompt_cache_keystring nullable

Response

Successful Response

unknown required

Changes

    • ○

      added the new optional request property ////

    • ○

      added to the // request property anyOf list

    • ○

      endpoint added