Convert text, images, and video into numerical vectors in a unified semantic space for cross-modal retrieval, similarity search, and content classification.
Before you begin: get an API key, set it as an environment variable, and install the DashScope SDK if you use the SDK.
Endpoint
- HTTP:
POST https://maas.qwencloudapi.com/api/v1/services/embeddings/multimodal-embedding/multimodal-embedding - SDK
base_http_api_url:https://maas.qwencloudapi.com/api/v1
Model overview
| Model | Modalities | Dimensions | Text limit | Image limit | Video limit |
|---|---|---|---|---|---|
| tongyi-embedding-vision-plus | Text, Image, Video, Multi-images | 1152 (fixed) | 1,024 tokens | 3 MB per image, max 8 images | 10 MB |
| tongyi-embedding-vision-flash | Text, Image, Video, Multi-images | 768 (fixed) | 1,024 tokens | 3 MB per image, max 8 images | 10 MB |
The tongyi-embedding-vision models have fixed dimensions and do not support the
dimension parameter.Notes
- Text limit: 1,024 tokens per request.
- Image input: Public URL or Base64 data URI (
data:image/{format};base64,{data}). Supported formats: JPG, PNG, BMP (URL or Base64 supported). Max 3 MB per image. - Multi-images: Key
multi_images. 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. Supported formats: MP4, MPEG, AVI, MOV, MPG, WEBM, FLV, MKV (URL only). Max 10 MB per video file. Use the
fpsparameter inparametersto control frame sampling rate (range [0, 1], default 1.0).
Authorizations
string
header
required
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/jsonResponse
200-application/json
object
object
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.
string
Unique request identifier.
1fff9502-a6c5-9472-9ee1-73930fdd04c5