Skip to main content
POST
创建响应

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:
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

输入消息,每项包含 rolecontent。简单文本也可直接传字符串。

content 数组项类型:

  • 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

是否通过 SSE 流式返回。

temperature
number
default:1

采样温度。

Required range: 0 <= x <= 2
top_p
number

核采样参数。

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

最大输出 token 数。

Required range: x >= 1
reasoning
object

推理配置。示例:{"effort": "high"}

Response

响应创建成功

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