Skip to content

OpenAI Responses API

POST
/v1/responses
curl --request POST \
--url https://api.mirapi.ai/v1/responses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "model": "example", "input": [ {} ], "instructions": "example", "max_output_tokens": 1, "temperature": 1, "top_p": 1, "stream": true, "tools": [ {} ], "tool_choice": {}, "reasoning": { "effort": "low", "summary": "example" }, "previous_response_id": "example", "truncation": "auto" }'

The OpenAI Responses API, used to create model responses. Supports multi-turn conversations, tool calls, reasoning and more.

Media typeapplication/json
object
model
required
string
input
One of:
string
instructions
string
max_output_tokens
integer
temperature
number
top_p
number
stream
boolean
tools
Array<object>
object
tool_choice
One of:
string
reasoning
object
effort
string
Allowed values: low medium high
summary
string
previous_response_id
string
truncation
string
Allowed values: auto disabled

Response created

Media typeapplication/json
object
id
string
object
string
created_at
integer
status
string
Allowed values: completed failed in_progress incomplete
model
string
output
Array<object>
object
type
string
id
string
status
string
role
string
content
Array<object>
object
type
string
text
string
usage
object
prompt_tokens

Prompt tokens

integer
completion_tokens

Completion tokens

integer
total_tokens

Total tokens

integer
prompt_tokens_details
object
cached_tokens
integer
text_tokens
integer
audio_tokens
integer
image_tokens
integer
completion_tokens_details
object
text_tokens
integer
audio_tokens
integer
reasoning_tokens
integer
Example
{
"object": "response",
"status": "completed"
}