Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
enum<string>
required
Available options:
o1-pro,
o1-pro-2025-03-19,
computer-use-preview,
computer-use-preview-2025-03-11
input
required
metadata
object | null
temperature
number | null
default:1
Required range: 0 <= x <= 2
top_p
number | null
default:1
Required range: 0 <= x <= 1
user
string
previous_response_id
string | null
reasoning
Reasoning · object | null
max_output_tokens
integer | null
instructions
string | null
text
object
tools
(File search · object | Function · object | Computer use · object | Web search · object)[]
tool_choice
Available options:
none,
auto,
required
truncation
enum<string> | null
default:disabled
Available options:
auto,
disabled
include
enum<string>[] | null
Available options:
file_search_call.results,
message.input_image.image_url,
computer_call_output.output.image_url
parallel_tool_calls
boolean | null
default:true
store
boolean | null
default:true
stream
boolean | null
default:false

Response

metadata
object | null
required
temperature
number | null
default:1
required
Required range: 0 <= x <= 2
top_p
number | null
default:1
required
Required range: 0 <= x <= 1
model
enum<string>
required
Available options:
o1-pro,
o1-pro-2025-03-19,
computer-use-preview,
computer-use-preview-2025-03-11
instructions
string | null
required
tools
(File search · object | Function · object | Computer use · object | Web search · object)[]
required
tool_choice
required
Available options:
none,
auto,
required
id
string
required
object
enum<string>
required
Available options:
response
created_at
number
required
error
object | null
required
incomplete_details
object | null
required
output
(Output message · object | File search tool call · object | Function tool call · object | Web search tool call · object | Computer tool call · object | Reasoning · object)[]
required
parallel_tool_calls
boolean
default:true
required
user
string
previous_response_id
string | null
reasoning
Reasoning · object | null
max_output_tokens
integer | null
text
object
truncation
enum<string> | null
default:disabled
Available options:
auto,
disabled
status
enum<string>
Available options:
completed,
failed,
in_progress,
incomplete
output_text
string | null
usage
object
Last modified on September 18, 2026