Skip to content
Dashboard

Qwen3 Embedding 8B

Qwen3 Embedding 8B is Alibaba Cloud's 8B-tier text embedding model in the Qwen3 Embedding line, producing 4096-dimensional vectors and ranking first on the MTEB multilingual leaderboard at release, built for demanding cross-lingual retrieval and RAG workloads.

Input price
Starting at Input $0.01, Per 1M tokens
import { embed } from 'ai';
const result = await embed({
model: 'alibaba/qwen3-embedding-8b',
value: 'Sunny day at the beach',
})
Read docs

Copy link to headingProviders

Route requests across multiple providers. Copy a provider slug to set your preference. Visit the docs for more info. Using a provider means you agree to their terms, listed under Legal.

Provider
Context
Input
Capabilities
ZDR
No Training
Free Tier
Release Date
33K
$0.05/M
06/05/2025
41K
$0.01/M
06/05/2025
33K
$0.05/M
06/05/2025

Copy link to headingMore models by Alibaba Cloud

Model
Context
Latency
Throughput
Input
Output
Cache
Web Search
Capabilities
Providers
ZDR
No Training
Free Tier
Release Date
991K3.9 s50 tps
$2/M
$6/M
Read$0.25/M
Write$2.50/M
+2
alibaba logo
09/01/2026
991K1.1 s96 tps
$0.16/M
$0.47/M
Read$0.02/M
Write$0.20/M
+2
alibaba logo
08/26/2026
1M0.6 s133 tps
$0.10/M
$0.40/M
Read$0.01/M
Write$0.63/M
+1
alibaba logo
deepinfra logo
morph logo
+3
08/14/2026
1M2.5 s154 tps
$2/M
$6/M
Read$0.25/M
Write$2.50/M
+1
alibaba logo
fireworks logo
08/02/2026
991K2.5 s140 tps
$0.03/M+2 more
$0.13/M+2 more
Read$0.006/M
Write$0.04/M
+2
alibaba logo
07/28/2026
1M2.0 s58 tps
$0.40/M+1 more
$1.60/M+1 more
Read$0.08/M
Write$0.50/M
+2
alibaba logo
06/02/2026

Copy link to headingAbout Qwen3 Embedding 8B

Qwen3 Embedding 8B is purpose-built for retrieval workloads where accuracy is paramount. Qwen3 Embedding 8B ranked first on the MTEB multilingual leaderboard with a score of 70.58 at release. Its 4096-dimensional output space encodes fine-grained semantic distinctions that smaller embedding models flatten.

The architecture employs 36 transformer layers and derives from the Qwen3 foundation model. The resulting embeddings generalize across both in-domain and out-of-domain retrieval scenarios.

Coverage spans more than 100 natural languages and multiple programming languages, enabling truly multilingual vector indexes where documents in French, Japanese, or Python code can be searched using queries in any supported language. Matryoshka Representation Learning lets operators shorten vectors at inference time, helpful for tiered index architectures where a coarse first-pass retrieval uses short vectors and a reranking stage uses full-resolution representations.

Copy link to headingWhat To Consider When Choosing a Provider

  • Configuration: For workloads indexing sensitive documents, confirm that your chosen provider's data-residency region aligns with your compliance requirements before routing production traffic.
  • Zero Data Retention: Zero Data Retention is available for this model. It is offered on a per-provider and model basis. See the documentation for details.
  • Authentication: AI Gateway authenticates requests using an API key or OIDC token. You do not need to manage provider credentials directly.

Copy link to headingWhen to Use Qwen3 Embedding 8B

Best for

  • MTEB-driven production retrieval: Systems where MTEB multilingual scores from the model's release evaluations are the primary criterion
  • Long-document RAG: Pipelines that benefit from context of 41K tokens and 4096-dimensional representations to preserve semantic detail
  • Cross-lingual knowledge bases: Indexes spanning many languages and programming environments
  • Research and evaluation workloads: MTEB-adjacent benchmarks serve as a proxy for real retrieval performance

Consider alternatives when

  • Tight embedding cost budgets: Per-token cost dominates and slightly lower accuracy is acceptable, the 0.6B or 4B variants may provide sufficient quality
  • Memory-constrained deployments: Environments with strict memory limits make a fully loaded 8B model impractical
  • Generative output required: This model produces embeddings only; use a generative model when you need text output

Qwen3 Embedding 8B is the right tool when retrieval accuracy across languages and domains can't be compromised. Its first-place standing on the MTEB multilingual leaderboard at release and its 4096-dimensional output make it a strong foundation for enterprise-grade semantic search and RAG systems willing to invest in embedding quality.

Copy link to headingFrequently Asked Questions

  • What is the MTEB multilingual leaderboard score for Qwen3 Embedding 8B?

    As of June 5, 2025, the model scored 70.58 on the MTEB multilingual leaderboard, placing it first among publicly evaluated embedding models at that date.

  • How large are the vectors this model produces?

    The default output is 4096-dimensional. Using Matryoshka Representation Learning (MRL), you can truncate these vectors to shorter prefix lengths for use cases where storage or query latency is constrained.

  • What distinguishes the 8B from the 4B embedding model in practice?

    Both the 8B and 4B models use 36 transformer layers, but the 8B model has wider layers with more parameters per layer. It produces 4096-dimensional vectors compared to 2560 for the 4B. This additional resolution typically improves performance on dense retrieval and clustering tasks, particularly for technical and multilingual corpora.

  • Does the context window of 41K tokens apply per document being embedded?

    Yes. Each individual text input can be up to 41K tokens. If a document exceeds this limit it must be split into chunks before embedding.

  • How does instruction-based customization work for this model?

    You can prepend a task-specific instruction to your query (e.g., describing the retrieval goal) to shift the embedding space toward that intent. This is particularly effective for asymmetric retrieval where query phrasing differs significantly from document phrasing.

  • Is this model suitable for embedding source code alongside prose?

    Yes. The Qwen3 Embedding training explicitly covers multiple programming languages, so a unified vector index mixing code files and documentation is a supported pattern.

Your use is subject to Alibaba Cloud's Terms & Privacy Policies.