Multimodal embedding models convert text, images, and videos into embeddings in a shared semantic space to enable cross-modal retrieval, content classification, and similarity search.
Core capabilities
- Cross-modal retrieval: Perform semantic searches across different content types, such as text-to-image, image-to-video, or image-to-image.
- Semantic similarity: Measure the semantic similarity between different content types in a unified embedding space.
- Content classification and clustering: Group, label, and cluster content based on semantic embeddings.
Key feature: Embeddings for all modalities (text, images, and video) share the same semantic space, enabling direct cross-modal matching and comparison using methods such as cosine similarity. See text and multimodal embedding for details on model selection and usage.
Embedding types
The multimodal embedding model supports two methods for generating embeddings:
- Multimodal independent vectors: an independent vector is generated for each input (text, image, video, multiple images) in contents. For example, if you input 1 piece of text and 1 image, 2 independent vectors are returned. This is suitable for scenarios that compare different contents item by item, such as image-to-image search and text-to-image search.
-
Multimodal fused vectors: all inputs in contents are fused into 1 vector to achieve cross-modal comprehensive semantic representation. This is suitable for scenarios that require holistic understanding of multimodal content, such as fusing product images and description text into a unified representation for retrieval.
qwen3-vl-embeddingenables fusion mode by settingenable_fusion=true;tongyi-embedding-vision-plus-2026-03-06andtongyi-embedding-vision-flash-2026-03-06achieve fusion by placing text, image, and video in the same content object. Fused vectors support the following combinations:- Text + image fusion
- Text + video fusion
- Multiple images + text fusion (multiple image entries passed in)
- Image + video + text mixed fusion
For model introductions, selection guidance, and usage instructions, see Text and multimodal embedding.qwen2.5-vl-embeddingsupports only fused embeddings, not independent embeddings.tongyi-embedding-vision-plusandtongyi-embedding-vision-flashsupport only independent embeddings.tongyi-embedding-vision-plus-2026-03-06andtongyi-embedding-vision-flash-2026-03-06support both independent embeddings and fused embeddings. You create fused embeddings by placing text, image, and video in the same content object.
Model overview
- China (Beijing)
- Singapore
Model | Embedding dimensions | Text length limit | Image size limit | Video size limit | Price (per 1,000 tokens) | Free quota(Note) |
|---|---|---|---|---|---|---|
qwen3-vl-embedding | 2560 (default), 2048, 1536, 1024, 768, 512, 256 | 32,000 Token | Up to 10 MB per image | Up to 50 MB per video file | Image/Video: CNY 0.0018 Text: CNY 0.0007 | 1 million token This free quota is valid for 90 days from the date of Model Studio activation, model release, or application approval, whichever is later. |
qwen2.5-vl-embedding | 2048, 1024 (default), 768, 512 | Up to 5 MB per image | No free quota | |||
tongyi-embedding-vision-plus-2026-03-06 | 1152 (default), 1024, 512, 256, 128, 64 | 1,024 Token | Recommended: up to 5 MB per image; maximum: 10 MB. Supports up to 64 images. | Up to 50 MB per video file Video encoding must be H.264 or H.265. | CNY 0.0005 | No free quota |
tongyi-embedding-vision-flash-2026-03-06 | 768 (default), 512, 256, 128, 64 | CNY 0.00015 | No free quota | |||
tongyi-embedding-vision-plus | 1152 (default), 1024, 512, 256, 128, 64 | Up to 3 MB per image. Supports up to 8 images. | Up to 10 MB per video file | CNY 0.0005 | 1 million token This free quota is valid for 90 days from the date of Model Studio activation, model release, or application approval, whichever is later. | |
tongyi-embedding-vision-flash | 768 (default), 512, 256, 128, 64 | CNY 0.00015 | 1 million token This free quota is valid for 90 days from the date of Model Studio activation, model release, or application approval, whichever is later. | |||
multimodal-embedding-v1 | 1,024 | 512 Token | Up to 3 MB per image | Up to 10 MB per video file | Image/Video: CNY 0.0009 Text: CNY 0.0007 | No free quota |
Input formats and usage limits
| Fused multimodal models | ||||
|---|---|---|---|---|
| Model | Text | Image | Video | Request limit |
| qwen3-vl-embedding | Supports 33 major languages, such as Chinese, English, Japanese, Korean, French, and German.
All supported languages Chinese, Japanese, Korean, Indonesian, Vietnamese, Thai, English, French, German, Russian, Portuguese, Spanish, Italian, Swedish, Danish, Czech, Norwegian, Dutch, Finnish, Turkish, Polish, Swahili, Romanian, Serbian, Greek, Kazakh, Uzbek, Cebuano, Arabic, Urdu, Persian, Hindi / Devanagari, and Hebrew. | JPEG, PNG, WEBP, BMP, TIFF, ICO, DIB, ICNS, and SGI (URL or Base64 supported) | MP4, AVI, and MOV (URL only) | A single request can contain up to 20 content elements. This includes a maximum of 10 images and 1 video. |
| qwen2.5-vl-embedding | Supports 11 major languages, such as Chinese, English, Japanese, Korean, French, and German.
All supported languages Chinese, English, Japanese, Korean, French, German, Russian, Portuguese, Spanish, Italian, and Indonesian. | A single request can contain a maximum of one of each content type: image, text, video, and fused object. | ||
| Multimodal embedding models | ||||
| Model | Text | Image | Video | Request limit |
| tongyi-embedding-vision-plus-2026-03-06 | Supports over 30 major languages, such as Chinese, English, Japanese, and Korean.
All supported languages Chinese, Japanese, Korean, Indonesian, Vietnamese, Thai, English, French, German, Russian, Portuguese, Spanish, Italian, Swedish, Danish, Czech, Norwegian, Dutch, Finnish, Turkish, Polish, Swahili, Romanian, Serbian, Greek, Kazakh, Uzbek, Cebuano, Arabic, Urdu, Persian, Hindi / Devanagari, and Hebrew. | JPEG, PNG, WEBP, BMP, TIFF, ICO, DIB, ICNS, and SGI (URL or Base64 supported) | MP4, MPEG, MOV, MPG, WEBM, AVI, FLV, and MKV (URL only) | A single request can contain up to 20 content elements in total, with a maximum of 64 images and 8 videos. |
| tongyi-embedding-vision-flash-2026-03-06 | ||||
| tongyi-embedding-vision-plus | Chinese and English | JPG, PNG, and BMP (URL or Base64 supported) | MP4, MPEG, MOV, MPG, WEBM, AVI, FLV, and MKV (URL only) | No limit on the number of content elements. The total number of input tokens must not exceed the batch processing limit. |
| tongyi-embedding-vision-flash | ||||
| multimodal-embedding-v1 | Chinese and English | JPG, PNG, and BMP (URL or Base64 supported) | A single request is limited to 20 content elements. This limit is shared among a maximum of 1 image, 1 video, and 20 text elements. | |
All models accept text, image, and video inputs, individually or in combination.tongyi-embedding-vision-plus,tongyi-embedding-vision-flash,tongyi-embedding-vision-plus-2026-03-06, andtongyi-embedding-vision-flash-2026-03-06models also supportmulti_imagesfor image sequences.
Model capabilities
Model | Default dimension | Vector type | Supported inputs | Description |
qwen3-vl-embedding | 2560 | Independent / Fusion | text, image, video, multiple images | Fusion mode, enabled with the |
qwen2.5-vl-embedding | 1024 | Fusion only | text、image、video | Always returns a single fused vector. Independent vectors and multi-image inputs are not supported. |
tongyi-embedding-vision-plus-2026-03-06 | 1152 | Independent / Fusion | text、image、video、multi_images | Based on the Qwen3 foundation model. Supports multiple resolutions, 30+ languages, and fused vectors. |
tongyi-embedding-vision-flash-2026-03-06 | 768 | |||
tongyi-embedding-vision-plus | 1152 | Independent only | Supports the multi_images multi-image sequence (up to 8 images) | |
tongyi-embedding-vision-flash | 768 | |||
multimodal-embedding-v1 | 1024 | text、image、video | The vector dimension is fixed at 1,024 and cannot be configured. |
Prerequisites
Obtain an API key and export the API key as an environment variable. If you use an SDK to make calls, install the DashScope SDK.
HTTP call
POST https://dashscope.aliyuncs.com/api/v1/services/embeddings/multimodal-embedding/multimodal-embedding
Request |
The following example uses the |
Request headers | |
Content-Type string (Required)The content type of the request. Must be application/json. | |
Authorization string (Required)Authenticates the request with a Model Studio API key. Example: Bearer sk-xxxx. | |
Request body | |
model string(required)The model name. Select a model from the Model overview. | |
input object(required)The input content.
Properties contents array (required)The list of contents to process. Each element is a dictionary or string that specifies the type and value of the content. The format is {"modal type": "input string or image/video url"}. Four modal types are supported: text, image, video, and multi_images.
object (optional)Embedding processing parameters. For HTTP calls, you must wrap these parameters in the parameters object. For SDK calls, you can use these parameters directly.
Properties output_type string (optional)The format for the output embedding representation. Currently, only dense is supported. Other values are ignored without an error, and dense is returned.dimension integer (optional)The output embedding dimension. Supported values vary by model:
float (optional)The video frame sampling rate. A smaller value extracts fewer frames. The valid range is [0, 1], and the default is 1.0. Values outside this range do not cause an error.instruct string (optional)A custom task description to help the model understand the query's intent. English instructions are recommended and can improve performance by 1% to 5%.enable_fusion bool (optional)Specifies whether to generate a fused embedding. This parameter is supported only by the qwen3-vl-embedding model. When set to true, all multimodal content in the contents array is fused into a single embedding. The default value is false, which generates an independent embedding for each modality. Fused embeddings support combinations such as text and image, text and video, multiple images and text (by passing multiple image items), and a mix of image, video, and text. This is suitable for retrieval scenarios that require a comprehensive understanding of multimodal content.Theres_level integer (optional)Specifies the input resolution level. You can set this to 0, 1, 2, or 3, which correspond to single-image token costs of 127, 402, 578, and 1,026, respectively. The default value is 1 (402 tokens). This parameter is supported only by the tongyi-embedding-vision-plus-2026-03-06 and tongyi-embedding-vision-flash-2026-03-06 models. For use cases sensitive to image resolution, such as IPC, autonomous driving, or visual text recognition, a high resolution (res_level=3) can improve performance by 5% to 10%.max_video_frames integer (optional)Controls the maximum number of frames sampled from a video. The value cannot exceed 64. The default value is 8. This parameter is supported only by the tongyi-embedding-vision-plus-2026-03-06 and tongyi-embedding-vision-flash-2026-03-06 models. |
Response |
The usage field varies by model. See the following descriptions:
|
outputobjectTask output.
Properties embeddings arrayA list of the resulting embeddings, where each object corresponds to an input element.
Properties index intThe index of the result in the input list.embeddingarrayThe generated embedding array. The dimension depends on the model and the dimension parameter setting.typestringThe input type for this result. text, image, video, and multi_images correspond to text, image, video, and multi-image inputs, respectively. Special types include: fused is the fused embedding type returned by the tongyi-embedding-vision-plus-2026-03-06 and tongyi-embedding-vision-flash-2026-03-06 models; fusion is the type returned by the qwen3-vl-embedding or qwen2.5-vl-embedding model in fused embedding mode; vl is the type returned by the qwen3-vl-embedding model in independent embedding mode. | |
request_idstringUnique request identifier for tracing and troubleshooting. | |
codestringError code. Returned only for failed requests. See Error codes. | |
messagestringDetailed error message. Returned only for failed requests. See Error codes. | |
usageobjectStatistics about token usage.
Properties input_tokens intThe number of tokens in the input content for the current request. For the qwen3-vl-embedding and qwen2.5-vl-embedding models, this value includes only text tokens (including system template tokens) and does not include image or video tokens. For the tongyi-embedding-vision-* series models, this value includes the total number of text, image, and video tokens.input_tokens_detailsobjectA detailed breakdown of input tokens. This field is returned only by the tongyi-embedding-vision-* series models. It is not returned by the qwen3-vl-embedding, qwen2.5-vl-embedding, or multimodal-embedding-v1 models.
Properties image_tokens intThe number of Tokens consumed by the visual parts such as images or videos in the input content, excluding text (for the text part, see text_tokens). The number of Tokens consumed by an image depends on the resolution of the input image; the higher the resolution, the more Tokens are consumed. If the input is a video, the system first extracts frames from the video and then calculates Tokens based on the frame extraction results.text_tokensintThe number of tokens consumed by the text portion of the input (excluding visual portions such as images or videos).intThe number of tokens in the output for the current request. This field is returned only by the tongyi-embedding-vision-* series models.total_tokensintThe total number of input and output tokens. This field is returned by the qwen3-vl-embedding and tongyi-embedding-vision-* models, but not by the qwen2.5-vl-embedding or multimodal-embedding-v1 models. For the qwen3-vl-embedding model, total_tokens = input_tokens + image_tokens.image_tokensintThe number of Tokens consumed by the visual parts such as images or videos in the input of this request (excluding text). The number of Tokens consumed by an image depends on the resolution of the input image; the system performs frame extraction on input videos, with the frame count limit controlled by system configuration, and then calculates Tokens based on the processing results. Only qwen3-vl-embedding, qwen2.5-vl-embedding, and multimodal-embedding-v1 return this field (as a top-level field); for the tongyi-embedding-vision-* series models, image Tokens are included in input_tokens_details.image_tokens.image_countintThe number of images in the input for the current request. This field is returned only by the multimodal-embedding-v1 model.durationintThe duration of the input video in seconds. This field is returned only by the multimodal-embedding-v1 model. |
SDK usage
The input parameter of the SDK corresponds to input.contents in the HTTP request body, and the two have inconsistent structures.
Code examples
- Image embedding
- Video embedding
- Text embedding
- Fused embedding
- Multi-image fused embedding
- 2026-03-06 snapshot example
- dashscope CLI
- Image URL
- Local image