输入 | 输出预览 |
支持输入图片的模型系列是哪个? |
|
... model="doubao-seed-2-1-pro-260628", messages=[ { "role": "user", "content": [ { "type": "image_url", "image_url": { "url": f"data:image/png;base64,{base64_image}" } }, { "type": "text", "text": "Which model series supports image input?" } ] } ] ... | ... model="doubao-seed-2-1-pro-260628", input=[ { "role": "user", "content": [ { "type": "input_image", "image_url": f"data:image/png;base64,{base64_image}" }, { "type": "input_text", "text": "Which model series supports image input?" } ] } ] ... |
... model="doubao-seed-2-1-pro-260628", messages=[ { "role": "user", "content": [ { "type": "image_url", "image_url": { "url": "https://ark-project.tos-cn-beijing.volces.com/doc_image/ark_demo_img_1.png" } }, { "type": "text", "text": "Which model series supports image input?" } ] } ] ... | ... model="doubao-seed-2-1-pro-260628", input=[ { "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": "Which model series supports image input?" } ] } ] ... |
detail模式 | doubao-seed-2.0 及以后模型 detail 默认值为 high | |
| 单图token范围 | 图片像素区间 |
low | [1, 1280] | [1764, 2257920] |
high | 1280 | 2257920 |
xhigh | [1280, 5120] | [2257920, 9031680] |
使用限制 | 要求 |
单图大小 | 50 MB |
总请求体大小 | 64 MB |
单请求中图片张数 | 3600 张 |
单个请求中通过 URL 方式传入图片文件的总大小 | 200 MB |
图片格式 | 文件扩展名 | 内容格式 Content Type |
JPEG | .jpg, .jpeg | image/jpeg |
PNG | .png | image/png |
GIF | .gif | image/gif |
WEBP | .webp | image/webp |
BMP | .bmp | image/bmp |
TIFF | .tiff, .tif | image/tiff |
ICO | .ico | image/x-icon |
DIB | .dib | image/bmp |
ICNS | .icns | image/x-icns |
SGI | .sgi | image/sgi |
JPEG2000 | .j2c, .j2k, .jp2, .jpc, .jpf, .jpx | image/jp2 |
HEIC | .heic | image/heic doubao-1.5-vision-pro及以后模型支持 |
HEIF | .heif | image/heic doubao-1.5-vision-pro及以后模型支持 |