Models Hub
API ReferenceChat

Responses format.

OpenAI Responses API-compatible endpoint, supporting single-turn/multi-turn input, tool calls, and reasoning parameters.

Edit this page
POST
/v1/responses

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/responses" \  -H "Content-Type: application/json" \  -d '{    "model": "gpt-5.4-nano",    "input": "Hello"  }'
{
  "id": "resp_123",
  "object": "response",
  "status": "string",
  "model": "string",
  "output": [
    {}
  ],
  "output_text": "string",
  "usage": {
    "prompt_tokens": 0,
    "completion_tokens": 0,
    "total_tokens": 0,
    "input_tokens": 0,
    "output_tokens": 0
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "string"
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "string"
  }
}