Qwen Text Embedding v3 API

alibaba/text-embedding-v3
Qwen3 Text Embedding V3 delivers state-of-the-art performance in multilingual text embeddings.
Context
8K tokens
Input
$0.091 / 1M tokens
Output
$0.091 / 1M tokens
Released
Dec 13, 2025

Overview

Overview

‍Qwen Text Embedding V3 represents a cutting-edge embedding model optimized for dense vector representations, excelling in semantic search, retrieval-augmented generation (RAG), and multilingual similarity tasks across 100+ languages. It delivers high-dimensional embeddings up to 4096 in length, with dynamic dimensionality reduction for efficiency, enabling precise capture of nuanced meanings in long texts and cross-lingual contexts.

Technical Specifications

  • Architecture: Transformer-based dual-encoder with asymmetric fine-tuning
  • Vector Dimensionality: 1024 (configurable down to 256 via projection layers)
  • Supported Tasks: Semantic similarity, document clustering, cross-lingual retrieval, reranking support
  • Training Data: Multilingual corpus spanning 30+ languages, enriched with technical, academic, and conversational domains

Performance Benchmarks

  • Semantic retrieval (MTEB & BEIR): Top-tier scores in passage ranking and asymmetric search
  • Multilingual tasks: Outperforms prior versions by 5-10% on C-MTEB leaderboard

Output Quality & Semantic Fidelity

Users report marked improvements in vector consistency across paraphrases, domain shifts, and query-document asymmetry. Embeddings exhibit reduced topic drift in iterative retrieval systems and stronger alignment with human-judged relevance rankings. The model excels in distinguishing subtle sentiment and intent variations, critical for customer support routing and compliance filtering.

Quality Improvements

  • Noise resilience: Robust to OCR errors, informal syntax, and mixed-language inputs
  • Temporal stability: Embedding drift minimized over time, ensuring index compatibility in production systems
  • Bias mitigation: Enhanced fairness controls reduce stereotypical associations in gender, profession, and geographic representations

API Pricing

  • $0.091 / 1M tokens

New Features & Technical Upgrades

Qwen Text Embedding v3 introduces several architectural and training innovations to push the boundaries of dense retrieval.

Key Features

  • Multilingual Mastery: Handles 100+ languages in a single embedding space, outperforming priors in cross-lingual retrieval by leveraging Qwen3's reasoning backbone.​
  • Flexible Prompting: Distinct query and document prefixes boost retrieval accuracy without retraining, ideal for RAG pipelines.​
  • Variable Dimensions: Customizable output sizes from 32 to max dims reduce latency while preserving quality.​
  • Task Versatility: Optimized for embedding plus reranking, with SOTA scores in code retrieval and bitext mining

Code Sample

Comparison with Other Models

  • vs text-embedding-3-large: Qwen v3 matches or exceeds OpenAI’s large embedding model on non-English benchmarks while offering 5x lower cost and on-prem deployment options
  • vs Cohere Embed V3: Delivers superior performance in code and technical document embedding, with stronger support for Asian languages
  • vs Qwen Embedding v2: +6.1% average gain on retrieval tasks, 40% lower latency, and native support for 8K context (vs. 4K in v2)

Use cases

  • Semantic Search: Powers RAG systems by embedding queries and docs for precise matching in multilingual corpora.​
  • Recommendation Engines: Clusters user preferences across languages for personalized content delivery.
  • Code Intelligence: Retrieves relevant snippets in polyglot repositories, aiding developers in IDE plugins.
  • Sentiment Analysis: Classifies multilingual reviews with high fidelity for global market insights.

‍

How to use Qwen Text Embedding v3 API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to alibaba/text-embedding-v3.
import requests

r = requests.post(
    "https://api.aimlapi.com/v1/embeddings",
    headers={"Authorization": "Bearer " + AIMLAPI_KEY},
    json={
      "model": "alibaba/text-embedding-v3",
      "input": "The quick brown fox"
    },
)
print(r.json())
const r = await fetch("https://api.aimlapi.com/v1/embeddings", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "alibaba/text-embedding-v3",
    "input": "The quick brown fox"
  }),
});
console.log(await r.json());
curl -X POST https://api.aimlapi.com/v1/embeddings \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"alibaba/text-embedding-v3","input":"The quick brown fox"}'

OpenAI-compatible — swap the base URL and it works with your existing SDK.

Qwen Text Embedding v3 API Pricing

TypePrice
Input
$0.091 / 1M tokens
Output
$0.091 / 1M tokens

Qwen Text Embedding v3 vs other models

ModelInputOutputContextBest for
$0.091 / 1M tokens
$0.091 / 1M tokens
8K tokens
Semantic search + RAG
$0.169 / 1M tokens
8K tokens
Semantic search + RAG
$0.026 / 1M tokens
8K tokens
Semantic search + RAG
$0.091 / 1M tokens
$0.074 / 1M tokens
8K tokens
Semantic search + RAG
$0.13 / 1M tokens
4K tokens
Semantic search + RAG

Frequently asked questions

Qwen Text Embedding v3 takes text as input and returns embedding.

Qwen Text Embedding v3 became available on December 13, 2025.

Qwen Text Embedding v3 is priced at input $0.091 / 1M tokens, output $0.091 / 1M tokens.

Qwen Text Embedding v3 was built by Alibaba Cloud.

Send a request to https://api.aimlapi.com/v1/embeddings with alibaba/text-embedding-v3 as the model id.

Yes. Qwen Text Embedding v3 is served through AI/ML API, so the same key and endpoint format used for other models applies.

You can select a custom embedding dimension between 512 and 1024.

It supports more than 50 languages.

It is built for semantic search, recommendation systems, and text analysis.

Start building with Qwen Text Embedding v3

Get API Key
1000+ models, one API.