Skip to main content
POST
Create Response

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

The model to use.

Available options:
doubao-seed-2.0-pro,
doubao-seed-2.0-code,
doubao-seed-2.0-lite,
doubao-seed-2.0-mini,
doubao-seed-1-8-251228,
doubao-seed-1-6-flash-250828,
doubao-seed-1-6-251015,
doubao-seed-1-6-lite-251015,
doubao-seed-1-6-vision-250815,
glm-4.7
Example:

"doubao-seed-1-6-251015"

input
object[]
required

Input messages. Each item has role and content. For simple text you can also pass a plain string.

Content array item types:

  • input_text: {"type": "input_text", "text": "..."}
  • input_image: {"type": "input_image", "image_url": "https://..."}
  • input_video: {"type": "input_video", "video_url": "https://...", "fps": 1}
  • input_file: {"type": "input_file", "file_url": "https://..."}
Example:
stream
boolean
default:false

If true, stream partial response deltas using SSE.

temperature
number
default:1

Sampling temperature.

Required range: 0 <= x <= 2
Example:

1

top_p
number

Nucleus sampling threshold.

Required range: 0 <= x <= 1
max_output_tokens
integer

Maximum number of output tokens.

Required range: x >= 1
reasoning
object

Configuration for reasoning. Example: {"effort": "high"}.

Response

Response generated successfully

id
string
Example:

"resp_021774236829912"

object
string
Example:

"response"

created_at
integer
completed_at
integer
model
string
Example:

"doubao-seed-1-6-251015"

status
enum<string>
Available options:
completed,
failed,
in_progress,
incomplete
Example:

"completed"

output
object[]
usage
object