Create Response
Creates a model response using Doubao models. The input field accepts a plain string for simple text, or an array of message objects for multimodal content.
Multimodal content types: input_text, input_image, input_video, input_file.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
The model to use.
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 "doubao-seed-1-6-251015"
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://..."}
[
{
"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": "What is in this image?"
}
]
}
]If true, stream partial response deltas using SSE.
Sampling temperature.
0 <= x <= 21
Nucleus sampling threshold.
0 <= x <= 1Maximum number of output tokens.
x >= 1Configuration for reasoning. Example: {"effort": "high"}.
Response
Response generated successfully