import requests r = requests.post( "https://api.aimlapi.com/v1/embeddings", headers={"Authorization": "Bearer " + AIMLAPI_KEY}, json={ "model": "alibaba/qwen-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/qwen-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/qwen-text-embedding-v4","input":"The quick brown fox"}'
OpenAI-compatible — swap the base URL and it works with your existing SDK.
| Type | Price |
|---|---|
| Input | |
| Output | |
Free quota: 1 million tokens, valid for 90 days from Model Studio activation, model release, or application approval, whichever is later.
| Model | Input | Output | Context | Best for |
|---|---|---|---|---|
Qwen Text Embedding v4 This page | Semantic search and RAG | |||
| Semantic search + RAG | ||||
| Semantic search + RAG |
Qwen Text Embedding v4 has a 8,192 tokens context window.
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.
Qwen Text Embedding v4 was built by Alibaba Cloud.
Send a request to https://api.aimlapi.com/v1/embeddings with alibaba/qwen-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 output dimensions from 64 to 2048.
It supports more than 100 languages.
It is designed for semantic search, clustering, and classification tasks.