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/responsesAuthentication
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.
| Field | Type | Required | Description |
|---|---|---|---|
| model | string | — | Model id from `GET /v1/models`. |
| input | string | — | The input text. |
| max_output_tokens | integer | — | 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.
| Field | Type | Description |
|---|---|---|
| id | string | — |
| created_at | integer | — |
| error | null | — |
| incomplete_details | null | — |
| instructions | null | — |
| metadata | object | — |
| model | string | — |
| object | string | — |
| output[] | array | — |
| output[].type | string | — |
| output[].id | string | — |
| output[].status | string | — |
| output[].role | string | — |
| output[].content[] | array | — |
| output[].content[].type | string | — |
| output[].content[].text | string | — |
| output[].content[].annotations[] | array | — |
| output[].phase | null | — |
| parallel_tool_calls | boolean | — |
| temperature | null | — |
| tool_choice | string | — |
| tools[] | array | — |
| top_p | null | — |
| max_output_tokens | integer | — |
| previous_response_id | null | — |
| reasoning | null | — |
| status | string | — |
| text | object | — |
| truncation | null | — |
| usage | object | — |
| usage.input_tokens | integer | — |
| usage.input_tokens_details | object | — |
| usage.input_tokens_details.audio_tokens | null | — |
| usage.input_tokens_details.cached_tokens | integer | — |
| usage.input_tokens_details.cached_tokens_details | null | — |
| usage.input_tokens_details.image_tokens | null | — |
| usage.input_tokens_details.text_tokens | integer | — |
| usage.input_tokens_details.video_tokens | null | — |
| usage.output_tokens | integer | — |
| usage.output_tokens_details | object | — |
| usage.output_tokens_details.audio_tokens | null | — |
| usage.output_tokens_details.reasoning_tokens | integer | — |
| usage.output_tokens_details.text_tokens | integer | — |
| usage.total_tokens | integer | — |
| usage.cost | null | — |
| user | null | — |
| store | null | — |
Response headers
| Header | Description | Example |
|---|---|---|
| x-litellm-call-id | Identifier of this call on the gateway. Quote it in a support request. | — |
| x-litellm-model-group | The model id that served the call, as sent in model. | gemini/gemini-3.1-flash-lite |
| x-litellm-response-cost | Spend 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-spend | Approximate 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-requests | Request limit per minute of the deployment that served the call. | 15 |
| x-ratelimit-remaining-requests | Requests that remain in the current minute on the deployment that served the call. | 10 |
| x-ratelimit-limit-tokens | Token limit per minute of the deployment that served the call. | 250000 |
| x-ratelimit-remaining-tokens | Tokens that remain in the current minute on the deployment that served the call. | 248621 |
