Endpoint
This API's models are available only in Singapore (ap-southeast-1) and China North 2 (Beijing). The following uses the Singapore endpoint; for a Beijing-only model, replace ap-southeast-1 with cn-beijing and use an API key from Beijing. See Regions and endpoints.
- HTTP:
POST https://ap-southeast-1.maas.qwencloudapi.com/api/v1/services/embeddings/multimodal-embedding/multimodal-embedding - SDK
base_url:https://ap-southeast-1.maas.qwencloudapi.com/api/v1
Model overview
tongyi-embedding-vision-plus and tongyi-embedding-vision-flash are available only in Singapore (ap-southeast-1). qwen3-vl-embedding and multimodal-embedding-v1 are available only in China North 2 (Beijing): call https://cn-beijing.maas.qwencloudapi.com with an API key created in that region.
- Singapore
- China North 2 (Beijing)
| Model | Modalities | Dimensions | Text limit | Image limit | Video limit |
|---|---|---|---|---|---|
| tongyi-embedding-vision-plus | Text, Image, Video, Multi-images | 1152 (default), 1024, 512, 256, 128, 64 | 1,024 tokens | 3 MB per image, max 8 images | 10 MB |
| tongyi-embedding-vision-flash | Text, Image, Video, Multi-images | 768 (default), 512, 256, 128, 64 | 1,024 tokens | 3 MB per image, max 8 images | 10 MB |
qwen3-vl-embedding supports fused vectors (enable_fusion). qwen3-vl-embedding, tongyi-embedding-vision-plus, and tongyi-embedding-vision-flash accept the dimension parameter. The other models have fixed dimensions and return one independent vector per input item.res_level (0, 1, 2, or 3; default 1) and max_video_frames (default 8, max 64) parameters are supported only by tongyi-embedding-vision-plus-2026-03-06 and tongyi-embedding-vision-flash-2026-03-06. res_level sets the input resolution level (127, 402, 578, or 1026 tokens per image). max_video_frames sets the maximum number of sampled video frames.Notes
- Image input: Public URL or Base64 data URI (
data:image/{format};base64,{data}).tongyi-embedding-vision-*andmultimodal-embedding-v1accept JPG, PNG, and BMP;qwen3-vl-embeddingalso accepts WEBP, TIFF, ICO, DIB, ICNS, and SGI. - Multi-images: Key
multi_images, supported only bytongyi-embedding-vision-plusandtongyi-embedding-vision-flash. Value is a list of image URLs, max 8 images. Each image must be no larger than 3 MB. - Video input: Must be a public URL.
tongyi-embedding-vision-*andmultimodal-embedding-v1accept MP4, MPEG, AVI, MOV, MPG, WEBM, FLV, and MKV;qwen3-vl-embeddingaccepts MP4, AVI, and MOV. Use thefpsparameter inparametersto control frame sampling rate (range [0, 1], default 1.0). Values outside this range do not cause an error. - Items per request:
tongyi-embedding-vision-*has no item count limit (total tokens must stay within the text limit).qwen3-vl-embeddingaccepts up to 20 items, of which at most 5 are images.multimodal-embedding-v1accepts up to 20 items: at most 1 image, 1 video, and 20 text entries.
Authorizations
DashScope API Key. Create one in the QwenCloud console. Alternatively, you can pass the API Key via the X-DashScope-ApiKey request header.
Body
application/jsonModel name for multimodal embedding. tongyi-embedding-vision-plus and tongyi-embedding-vision-flash are available only in Singapore (ap-southeast-1). qwen3-vl-embedding and multimodal-embedding-v1 are available only in China North 2 (Beijing) (cn-beijing). Use the endpoint and an API key from the model's region.
Input data containing the content items.
Parameters for multimodal embedding.
Response
Token usage statistics. Fields vary by model: tongyi-embedding-vision-* models return input_tokens (combined text and image token count), input_tokens_details, output_tokens, and total_tokens; other models may return different fields — see individual field descriptions.
Unique request identifier.