Alibaba Qwen

Qwen Text Embedding v3 API

CN Alibaba Qwen | released 2024-09
View embedding docs → Get API key

Qwen Text Embedding v3 is Alibaba TongyiLab multilingual embedding model, producing 1024-dimensional vectors with strong performance on MTEB across 100+ languages. It supports up to 8K input tokens, making it well suited for long-document retrieval and cross-lingual RAG where Western models underperform on Asian languages.

Embedding

Pricing (official list, per 1M tokens)

Input
$0.07/M
Output
$0.00/M

Specifications

Context window8.192K tokens Input modalitiesText StreamingYes APIOpenAI-compatible

How to use Qwen Text Embedding v3

Drop-in OpenAI replacement. Change only the base_url and model.

# Python -pip install openai
from openai import OpenAI

client = OpenAI(
    base_url="https://meshtok.com/v1",
    api_key="sk-your-MeshTok-key",
)

resp = client.chat.completions.create(
    model="ali/text-embedding-v3",
    messages=[{"role":"user","content":"Hello!"}],
)
print(resp.choices[0].message.content)
# cURL
curl https://meshtok.com/v1/chat/completions \
  -H "Authorization: Bearer sk-your-MeshTok-key" \
  -H "Content-Type: application/json" \
  -d '{"model":"ali/text-embedding-v3","messages":[{"role":"user","content":"Hello!"}]}'

Related models

Other models you might consider.