Skip to main content
POST
Create response (OpenAI Responses API)

Ủy quyền

Authorization
string
header
bắt buộc

Authenticate with a Bearer Token. Format: Authorization: Bearer sk-xxxxxx

Nội dung

application/json
model
string
bắt buộc
input

Input content, either a string or an array of messages

instructions
string
max_output_tokens
integer
temperature
number
top_p
number
stream
boolean
tools
object[]
tool_choice
reasoning
object
previous_response_id
string
truncation
enum<string>
Tùy chọn có sẵn:
auto,
disabled

Phản hồi

200 - application/json

Response created successfully

id
string
object
string
Ví dụ:

"response"

created_at
integer
status
enum<string>
Tùy chọn có sẵn:
completed,
failed,
in_progress,
incomplete
model
string
output
object[]
usage
object