The multimodal embedding model converts text, images, and videos into vector representations in the same semantic space, and supports cross-modal retrieval, content classification, and semantic similarity computation.
Core capabilities
- Cross-modal retrieval: cross-modal semantic search such as text-to-image search, image-to-video search, and image-to-image search.
- Semantic similarity computation: measures the semantic similarity between content of different modalities in a unified vector space.
- Content classification and clustering: intelligent grouping, tagging, and cluster analysis based on semantic vectors.
Key feature: Vectors of all modalities (text, images, and videos) are located in the same semantic space, so cross-modal matching and comparison can be performed directly using methods such as cosine similarity. For more information about model selection and usage, see Text and multimodal embeddings.
Vector type description
The multimodal embedding model supports two vector generation methods:
- Independent multimodal vectors: generates an independent vector for each input in contents (text, images, videos, multiple images). For example, if you input one piece of text and one image, two independent vectors are returned. This is suitable for scenarios where different content items are compared one by one, such as image-to-image search and text-to-image search.
-
Fused multimodal vectors: fuses all inputs in contents into one vector to achieve comprehensive cross-modal 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. Fusion 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 descriptions, selection suggestions, and usage, see Text and multimodal embeddings.tongyi-embedding-vision-plusandtongyi-embedding-vision-flashsupport only independent vectors.
Model Overview
- Singapore
- Beijing
Model | Vector dimensions | Text length limit | Image size limit | Video size limit | Unit price (per million input tokens) | Free quota(Note) |
|---|---|---|---|---|---|---|
tongyi-embedding-vision-plus | 1152 (default), 1024, 512, 256, 128, 64 | 1,024 Token | The size of each image must not exceed 3 MB. Multiple images are supported, with up to 8 images | The video file size must not exceed 10 MB | Images/videos: $0.09 Text: $0.09 | 1 million tokens Validity: 90 days from the date of Model Studio activation/model release/application approval (whichever is later) |
tongyi-embedding-vision-flash | 768 (default), 512, 256, 128, 64 | Image/Video: $0.03 Text: $0.09 |
Input formats and language restrictions:
| Multimodal fusion embedding model | ||||
|---|---|---|---|---|
| Model | Text | Image | Video | Number of items per request |
| qwen3-vl-embedding | Supports 33 mainstream languages, including 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, Hebrew. | JPEG, PNG, WEBP, BMP, TIFF, ICO, DIB, ICNS, SGI (URL or Base64 supported) | MP4, AVI, MOV (URL only) | The total number of content elements in a single request must not exceed 20; the number of images must not exceed 5; images, text, and videos share this limit. |
| Multimodal independent embedding model | ||||
| Model | Text | Image | Video | Number of items per request |
| tongyi-embedding-vision-plus | Chinese/English | JPG, PNG, BMP (URL or Base64 supported) | MP4, MPEG, AVI, MOV, MPG, WEBM, FLV, MKV (URL only) | Currently there is no limit on the number of input content elements, as long as the total token count of the input does not exceed the maximum number of tokens. |
| tongyi-embedding-vision-flash | ||||
| multimodal-embedding-v1 | The total number of content elements passed in a single request must not exceed 20; images and videos are each limited to 1, and text is limited to 20, sharing the total limit. | |||
All models support the three input types text, image, and video, as well as their combinations.tongyi-embedding-vision-plusandtongyi-embedding-vision-flashadditionally supportmulti_imagesmulti-image sequence input.
Model capability comparison
Model | Default dimensions | Vector type | Supported inputs | Description |
qwen3-vl-embedding | 2560 | Independent / Fused | text, image, video, multiple image entries | Fusion mode is enabled through the |
tongyi-embedding-vision-plus | 1152 | Independent only | text、image、video、multi_images | Supports multi_images multi-image sequences (up to 8 images) |
tongyi-embedding-vision-flash | 768 | |||
multimodal-embedding-v1 | 1024 | text、image、video | The dimension parameter is not supported; the dimension is fixed at 1024 |
Prerequisites
You must have already obtained and configured an API Key and configured the API Key in environment variables. If you call the API through an SDK, you also need to install the DashScope SDK. Replace DASHSCOPE_API_HOST in the sample code with the obtained API Host.
HTTP invocation
POST https://dashscope.aliyuncs.com/api/v1/services/embeddings/multimodal-embedding/multimodal-embedding
Request |
The following example uses the |
Request headers | |
Content-Typestring(Required)Request content type. This parameter must be set to application/json. | |
Authorizationstring(Required)Request authentication. The API uses an Alibaba Cloud Model Studio API Key for authentication. Sample value: Bearer sk-xxxx. | |
Request body | |
modelstring(Required)Model name. Set it to a model name from Model Overview. | |
inputobject(Required)Input content.
Property contents array(Required)The list of content to be processed. 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, wrap them in the parameters object; for SDK calls, use the following parameters directly.
Property output_type string (Optional)The output embedding representation format specified by the user. Currently only dense is supported. If other values are passed, no error is reported; the parameter is ignored and dense is returned.dimension integer (Optional)Used to specify the output vector dimensions. Different models support different values:
float (Optional)Controls the number of video frames. The smaller the ratio, the fewer frames are actually extracted. The range is [0,1]. The default value is 1.0. Values outside this range do not cause an error.instruct string (Optional)Adds a custom task description, which can guide the model to understand the query intent. It is recommended to write it in English, which typically brings about a 1%–5% performance improvement.enable_fusion bool (Optional)Whether to generate fused embeddings. Only the qwen3-vl-embedding model supports this parameter. When set to true, all multimodal content in contents is fused into one embedding; the default is false, where each modality generates an independent embedding. Fused embeddings support combinations such as text + image, text + video, multiple images + text (passing multiple image items), and image + video + text, making them suitable for retrieval scenarios that require comprehensive understanding of multimodal content. |
Response |
The usage field returned by different models varies. Refer to the following descriptions:
|
outputobjectTask output information.
Property embeddings arrayThe list of vector results, where each object corresponds to one element in the input list.
Property index intThe index of the result in the input list.embeddingarrayThe generated vector array, whose dimensions depend on the model and the dimension parameter setting.typestringThe input type corresponding to the result. text, image, video, and multi_images correspond to text, image, video, and multiple-image inputs respectively. The following are special types: fusion is the type returned by the qwen3-vl-embedding model in fusion vector mode; vl is the type returned by the qwen3-vl-embedding model in separate vector mode. | |
request_idstringThe unique identifier of the request. It can be used for tracing request details and troubleshooting. | |
codestringThe error code of a failed request. This parameter is not returned when the request succeeds. For more information, see Error codes. | |
messagestringThe detailed information of a failed request. This parameter is not returned when the request succeeds. For more information, see Error codes. | |
usageobjectOutput information statistics.
Property input_tokens intThe number of Tokens in the input content of this request. For the qwen3-vl-embedding model, this value only includes text Tokens (including system template Tokens) and excludes image/video Tokens; for the tongyi-embedding-vision-* series models, this value is the sum of text and image/video Tokens.input_tokens_detailsobjectDetailed breakdown of input Tokens. Only the tongyi-embedding-vision-* series models return this field; qwen3-vl-embedding and multimodal-embedding-v1 do not return this field.
Property image_tokens intThe number of Tokens consumed by the visual parts such as images or videos in the input content, excluding text (see text_tokens for the text part). The number of Tokens consumed by an image depends on its resolution: the higher the resolution, the more Tokens 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 part of the input content (excluding visual parts such as images or videos).intThe number of Tokens output by this request. Only the tongyi-embedding-vision-* series models return this field; other models do not return this field.total_tokensintThe total number of input and output Tokens. For the qwen3-vl-embedding model, total_tokens = input_tokens + image_tokens. Only qwen3-vl-embedding and tongyi-embedding-vision-* series models return this field; multimodal-embedding-v1 does not return this field.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 its resolution; the system extracts frames from input videos, with the frame count capped by system configuration, and then calculates Tokens based on the processing results. Only qwen3-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 input in this request. Only multimodal-embedding-v1 returns this field.durationintThe duration (in seconds) of the video input in this request. Only multimodal-embedding-v1 returns this field. |
SDK usage
The input parameter of the SDK corresponds to input.contents in the HTTP request body, and their structures are inconsistent.
Sample Code
- Image embedding example
- Video embedding example
- Text embedding example
- Fused embedding example
- Multi-image fused embedding example
- 2026-03-06 snapshot version example
- dashscope CLI
- Use an image URL
- Use a local image