Multimodal Understanding
Ling-3.0-flash-VL is a vision-language model that supports multimodal inputs and understands text, images, and video. This guide covers its capabilities, calling patterns, and limits.
- The OpenAI-compatible Chat Completions API accepts text, images, and videos when selecting
Ling-3.0-flash-VL. Useimage_urlcontent blocks for images andvideo_urlcontent blocks for videos. - The Anthropic-compatible Messages API accepts text and images when selecting
Ling-3.0-flash-VL.
Image Understanding
The image understanding model answers based on the image you pass in. Inputs are passed via Base64 encoding only.
- Image format: JPEG, PNG.
- Image size: each image must not exceed
16384 * 784pixels.- Base64 input: each Base64-encoded image string must not exceed 32 MB.
- Number of images: a single request can include up to
40images. - Maximum request body: 32 MB.
Base64 Input
Convert the image into a Base64-encoded string before passing it in. The encoded string must not exceed 32 MB.
OpenAI Chat Completions API
Prefix the encoded data with data:{MIME_TYPE};base64,$BASE64_IMAGE.
{MIME_TYPE}: the MIME type that identifies the image format, for exampleimage/jpegorimage/png.$BASE64_IMAGE: the raw Base64-encoded image data without any prefix.
curl --location --request POST 'https://api.ant-ling.com/v1/chat/completions' \
--header 'Authorization: Bearer sk-studio-xx' \
--header 'content-Type: application/json' \
--data-raw '{
"model": "Ling-3.0-flash-VL",
"stream": true,
"messages": [
{
"role": "user",
"content": [
{
"type": "image_url",
"image_url": {
"url": "data:{MIME_TYPE};base64,$BASE64_IMAGE"
}
},
{
"type": "text",
"text": "please describe the content of the image"
}
]
}
],
"max_completion_tokens": 102400
}'Anthropic Messages API
{MIME_TYPE}: the MIME type that identifies the image format, for exampleimage/jpegorimage/png.$BASE64_IMAGE: the raw Base64-encoded image data without any prefix.
curl --location --request POST 'https://api.ant-ling.com/anthropic/v1/messages' \
--header 'Authorization: Bearer sk-studio-xx' \
--header 'content-type: application/json' \
--data-raw '{
"model": "Ling-3.0-flash-VL",
"stream": true,
"messages": [
{
"role": "user",
"content": [
{
"type": "image",
"source": {
"type": "base64",
"media_type": "{MIME_TYPE}",
"data": "$BASE64_IMAGE"
}
},
{
"type": "text",
"text": "Describe the content of the image."
}
]
}
]
}'Unsupported Properties
OpenAI Chat Completions API
messages.content.image_url.detail: controls the image processing resolution; the inference engine defaults todefault.
Video Understanding
The video understanding model answers based on the video you pass in. Inputs are passed via Base64 encoding only.
- Video format: MP4, MOV, WMV.
- Video size: duration ≤
30s.- Base64 input: each Base64-encoded video string must not exceed 32 MB.
- Number of videos: limited to
1per request. - Frame sampling: fixed 2fps, capped at 32 frames per video.
OpenAI Chat Completions API
curl --location --request POST 'https://api.ant-ling.com/v1/chat/completions' \
--header 'Authorization: Bearer sk-studio-xx' \
--header 'content-Type: application/json' \
--data-raw '{
"model": "Ling-3.0-flash-VL-rc1",
"stream": true,
"messages": [
{
"role": "user",
"content": [
{
"type": "video_url",
"video_url": {
"url": "data:{MIME_TYPE};base64,$BASE64_VIDEO"
}
},
{
"type": "text",
"text": "please describe the content of the image"
}
]
}
],
"max_completion_tokens": 102400
}'Was this page helpful?
Last updated on