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

Authorizations

Authorization
string
header
default:YOUR_API_KEY
required

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

Body

application/json
model
string
required
Example:

"glm-5.3-abliterated"

input
any
required

String prompt or array of input items / messages.

instructions
string

System prompt prepended to the input.

max_output_tokens
integer

Output limit. Aliases max_completion_tokens, max_tokens.

max_completion_tokens
integer
max_tokens
integer
stream
boolean
default:false
temperature
number
top_p
number
stop
any

Stop sequences, where supported.

tools
object[]
tool_choice
object
response_format
object
reasoning_effort
enum<string>

Model-card reasoning effort. reasoning.effort is the same field. off disables reasoning. Omitted requests on a model marked thinking-off run with reasoning off. Other models default to low.

Available options:
off,
low,
high,
max

Response

Response object, or event stream when stream=true

id
string
required
Example:

"resp-abc123"

object
string
required
Example:

"response"

created_at
integer
required
model
string
required
status
enum<string>
required
Available options:
completed,
incomplete,
failed
output
object[]
required
usage
object
required