Back to models
Qwen3-VL-Embedding-2B
Alibaba Qwen's 2B multimodal embedding model supporting 30+ languages and a 32K context window, mapping text, images, visual documents, and videos into a unified Matryoshka vector space.
What you can do
- Cross-modal image, text, and video search
- Visually rich document page retrieval
- Multilingual multimodal clustering
Input & output
- Input
- Text, images, visual document pages, and video clips (up to 32K tokens)
- Output
- Dense multimodal semantic vectors supporting flexible Matryoshka dimensions
Example input
Instruct: Retrieve product manual pages or demonstration videos that explain how to calibrate the hydraulic pressure valve. Query: hydraulic valve calibration steps
Things to know
Apache 2.0 licensed and fits in ~5GB VRAM in BF16; high-resolution video or multi-page document encoding increases token count, and top-K candidates benefit from a second-stage reranker.
All listed models publish open weights for self-hosted deployment; check each repository's license before commercial use.
Call it through the API
The platform exposes an OpenAI-compatible API. Use an official SDK or any HTTP client, then set the gateway URL, API key, and model ID.
- Endpoint
POST/v1/embeddings- Model repo ID
Qwen/Qwen3-VL-Embedding-2B
import os
from openai import OpenAI
client = OpenAI(
base_url=os.environ["API_BASE_URL"],
api_key=os.environ["API_KEY"],
)
result = client.embeddings.create(
model="Qwen/Qwen3-VL-Embedding-2B",
input=["Instruct: Retrieve product manual pages or demonstration videos that explain how to calibrate the hydraulic pressure valve.\nQuery: hydraulic valve calibration steps"],
)
print(len(result.data[0].embedding))Before running a sample, set the API_BASE_URL (gateway URL) and API_KEY environment variables.
Read the full API guide