Qwen Text Embedding v4 API

alibaba/text-embedding-v4
Qwen Text Embedding v4 is the latest iteration in Alibaba Cloud’s high-performance embedding model series, engineered to transform textual inputs into dense, semantically rich vector representations.
Context
8K tokens
Input
$0.091 / 1M tokens
Output
$0.074 / 1M tokens
Released
Dec 13, 2025

How to use Qwen Text Embedding v4 API

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

r = requests.post(
    "https://api.aimlapi.com/v1/embeddings",
    headers={"Authorization": "Bearer " + AIMLAPI_KEY},
    json={
      "model": "alibaba/text-embedding-v4",
      "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-v4",
    "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-v4","input":"The quick brown fox"}'

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

Qwen Text Embedding v4 API Pricing

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

Qwen Text Embedding v4 vs other models

ModelInputOutputContextBest for
$0.091 / 1M tokens
$0.074 / 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.13 / 1M tokens
4K tokens
Semantic search + RAG

Frequently asked questions

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

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

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

Qwen Text Embedding v4 was built by Alibaba Cloud.

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

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

Qwen Text Embedding v4 supports custom embedding dimensions ranging from 64 to 2048.

Qwen Text Embedding v4 supports over 100 languages.

Yes, it belongs to the Qwen3-Embedding series from Alibaba Cloud.

It is designed for semantic search, clustering, and classification tasks.

Start building with Qwen Text Embedding v4

Get API Key
1000+ models, one API.