图片理解
用法
把 content 从字符串换数组,图片传 URL 或 base64。
请求
{
"model": "deepseek-v4.1-flash",
"messages": [{
"role": "user",
"content": [
{"type": "text", "text": "这张图里有什么"},
{"type": "image_url", "image_url": {"url": "https://example.com/a.jpg"}}
]
}]
}base64 写法
base64
{"type":"image_url","image_url":{"url":"data:image/png;base64,iVBORw0..."}}限制
- 仅支持带「视觉」标签的模型
- 图片建议不超过 5MB,分辨率不超过 4096
- 支持 jpg / png / webp