使用豆包模型创建响应。input 支持纯文本字符串或消息对象数组(多模态)。
多模态内容类型:input_text、input_image、input_video、input_file。
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
使用的模型。
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-251222 "doubao-seed-1-6-251015"
输入消息,每项包含 role 和 content。简单文本也可直接传字符串。
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://..."}[
{
"role": "user",
"content": [
{
"type": "input_image",
"image_url": "https://ark-project.tos-cn-beijing.volces.com/doc_image/ark_demo_img_1.png"
},
{ "type": "input_text", "text": "图片里有什么?" }
]
}
]
是否通过 SSE 流式返回。
采样温度。
0 <= x <= 2核采样参数。
0 <= x <= 1最大输出 token 数。
x >= 1推理配置。示例:{"effort": "high"}。