Theme
Create Model Response gpt-5 with Thinking Enabled
POST
https://www.kkiai.com/v1/responses
https://platform.openai.com/docs/api-reference/responses/create
Some OpenAI models only support Response format, such as o3-pro, codex-mini-latest
Request Parameters
Authorization
Add the Authorization parameter in the Header, with its value being the Token concatenated after Bearer
Example: Authorization: Bearer ********************
Header Parameters
| Parameter Name | Type | Required | Description | Example |
|---|---|---|---|---|
Content-Type | string | Required | application/json | |
Accept | string | Required | application/json | |
Authorization | string | Optional | Bearer {{YOUR_API_KEY}} |
Body Parameters (application/json)
| Parameter Name | Type | Required | Description |
|---|---|---|---|
model | string | Optional | The ID of the model to use. For detailed information on which models can be used with the Chat API, refer to the model endpoint compatibility table. |
input | array[object] | Optional | Text and images for the model to generate a response. |
└ role | string | Required | |
└ content | array[object] | Required | |
tools | array[string] | Optional | A set of tools that the model can call. Currently, only functions are supported as tools. Use this feature to provide a list of functions for which the model can generate JSON inputs. |
text | object | Optional | Configuration options for the model's text response. Can be plain text or structured JSON data. |
└ format | object | Optional | Specifies the format that the model must output. |
└ verbosity | string | Optional | Limits the verbosity of the model's response. Lower values produce more concise responses, while higher values produce more detailed responses. Currently supported values are low, medium, and high. Default is medium |
reasoning | object | Optional | |
└ effort | string | Optional | Currently supported values are minimal, low, medium, and high. Reducing reasoning effort can speed up responses and reduce tokens used for reasoning in the response. Default is medium |
└ summary | string | Optional | A summary of the reasoning performed by the model. This is useful for debugging and understanding the model's reasoning process. One of auto, concise, or detailed. |
stream | boolean | Optional | Default is false. If set, partial message increments will be sent like in ChatGPT. Tokens will be sent as server-sent events in data-only format, which terminate the stream with a data: [DONE] message when available. Python code example. |
store | boolean | Optional | Whether to store the generated model response for later retrieval via API. Default is true |
Request Example
json
{
"model": "gpt-5-2025-08-07",
"input": [
{
"role": "user",
"content": [
{
"type": "input_text",
"text": "1+2+3+4+5....9985"
}
]
}
],
"tools": [],
"text": {
"format": {
"type": "text"
},
"verbosity": "medium"
},
"reasoning": {
"effort": "medium",
"summary": "auto"
},
"stream": true,
"store": true
}cURL Example
bash
curl --location --request POST 'https://www.kkiai.com/v1/responses' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "gpt-5-2025-08-07",
"input": [
{
"role": "user",
"content": [
{
"type": "input_text",
"text": "1+2+3+4+5....9985"
}
]
}
],
"tools": [],
"text": {
"format": {
"type": "text"
},
"verbosity": "medium"
},
"reasoning": {
"effort": "medium",
"summary": "auto"
},
"stream": true,
"store": true
}'Response
🟢 200 OK
Response Body
| Parameter Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | |
object | string | Required | |
created | integer | Required | |
choices | array[object] | Required | |
└ index | integer | Optional | |
└ message | object | Optional | |
└ finish_reason | string | Optional | |
usage | object | Required | |
└ prompt_tokens | integer | Required | |
└ completion_tokens | integer | Required | |
└ total_tokens | integer | Required |
Response Example
json
{
"id": "chatcmpl-123",
"object": "chat.completion",
"created": 1677652288,
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "\n\nHello there, how may I assist you today?"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 9,
"completion_tokens": 12,
"total_tokens": 21
}
}