Converge AI Gateway
Converge AI Gateway · Chat

Create a response

POST

Generates a model response in the OpenAI Responses format.

Request

Request line
POST https://models.convergestudios.ai/v1/responses
Authentication

A Converge AI Gateway virtual key, sent as Authorization: Bearer <virtual key>. The key is issued per team and is valid only for the model routes of the gateway.

Request body

JSON, with Content-Type: application/json. A dash in the Required column means that requiredness is not stated.

FieldTypeRequiredDescription
modelstring—Model id from `GET /v1/models`.
inputstring—The input text.
max_output_tokensinteger—Maximum number of output tokens.

Examples

ResponseShow
Request (curl)
curl -sS -X POST https://models.convergestudios.ai/v1/responses \
  -H "Authorization: Bearer $GATEWAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gemini/gemini-3.1-flash-lite",
  "input": "Reply with the single word: pong",
  "max_output_tokens": 16
}'
Response — 200
{
  "id": "resp_example-14",
  "created_at": 1795612353,
  "error": null,
  "incomplete_details": null,
  "instructions": null,
  "metadata": {},
  "model": "gemini/gemini-3.1-flash-lite",
  "object": "response",
  "output": [
    {
      "type": "message",
      "id": "msg_example-15",
      "status": "completed",
      "role": "assistant",
      "content": [
        {
          "type": "output_text",
          "text": "pong",
          "annotations": []
        }
      ],
      "phase": null
    }
  ],
  "parallel_tool_calls": false,
  "temperature": null,
  "tool_choice": "auto",
  "tools": [],
  "top_p": null,
  "max_output_tokens": 16,
  "previous_response_id": null,
  "reasoning": null,
  "status": "completed",
  "text": {},
  "truncation": null,
  "usage": {
    "input_tokens": 8,
    "input_tokens_details": {
      "audio_tokens": null,
      "cached_tokens": 0,
      "cached_tokens_details": null,
      "image_tokens": null,
      "text_tokens": 8,
      "video_tokens": null
    },
    "output_tokens": 1,
    "output_tokens_details": {
      "audio_tokens": null,
      "reasoning_tokens": 0,
      "text_tokens": 1
    },
    "total_tokens": 9,
    "cost": null
  },
  "user": null,
  "store": null
}

Response

200. A response object. The text is in output[0].content[0].text and token counts are in usage.

FieldTypeDescription
idstring—
created_atinteger—
errornull—
incomplete_detailsnull—
instructionsnull—
metadataobject—
modelstring—
objectstring—
output[]array—
output[].typestring—
output[].idstring—
output[].statusstring—
output[].rolestring—
output[].content[]array—
output[].content[].typestring—
output[].content[].textstring—
output[].content[].annotations[]array—
output[].phasenull—
parallel_tool_callsboolean—
temperaturenull—
tool_choicestring—
tools[]array—
top_pnull—
max_output_tokensinteger—
previous_response_idnull—
reasoningnull—
statusstring—
textobject—
truncationnull—
usageobject—
usage.input_tokensinteger—
usage.input_tokens_detailsobject—
usage.input_tokens_details.audio_tokensnull—
usage.input_tokens_details.cached_tokensinteger—
usage.input_tokens_details.cached_tokens_detailsnull—
usage.input_tokens_details.image_tokensnull—
usage.input_tokens_details.text_tokensinteger—
usage.input_tokens_details.video_tokensnull—
usage.output_tokensinteger—
usage.output_tokens_detailsobject—
usage.output_tokens_details.audio_tokensnull—
usage.output_tokens_details.reasoning_tokensinteger—
usage.output_tokens_details.text_tokensinteger—
usage.total_tokensinteger—
usage.costnull—
usernull—
storenull—

Response headers

HeaderDescriptionExample
x-litellm-call-idIdentifier of this call on the gateway. Quote it in a support request.—
x-litellm-model-groupThe model id that served the call, as sent in model.gemini/gemini-3.1-flash-lite
x-litellm-response-costSpend of this call, as a decimal number in the unit of the team budget. Some responses do not carry this header, for example streamed responses.—
x-litellm-key-spendApproximate spend of the key, as a decimal number in the unit of the team budget. The value is the spend cached on the gateway replica that served the call, plus the spend of this call. The cached part lags behind the real total and can differ between replicas. Do not use it as an exact balance.—
x-ratelimit-limit-requestsRequest limit per minute of the deployment that served the call.15
x-ratelimit-remaining-requestsRequests that remain in the current minute on the deployment that served the call.10
x-ratelimit-limit-tokensToken limit per minute of the deployment that served the call.250000
x-ratelimit-remaining-tokensTokens that remain in the current minute on the deployment that served the call.248621