- Text Embeddings
text-embedding-ada-002 is an OpenAI embedding model that converts text into numerical vectors for measuring semantic similarity. It is an improved, more performant successor to earlier Ada-based…
Powered by Qwen
Qwen3 Embedding 4B is a 4-billion-parameter multilingual text embedding model from Qwen that produces 2560-dimensional vector representations over a context window of around 32K tokens. It is designed to balance strong retrieval quality with moderate hardware and cost requirements.
Output tokens per second · Higher is better
Seconds · Lower is better
USD per 1M tokens (blended) · Lower is better
About the model
Qwen3 Embedding 4B is a mid-size 4B-parameter text embedding model from Qwen that generates 2560-dimensional embeddings for long-context inputs of roughly 32K tokens. It is mainly used for semantic search and dense retrieval, where it encodes documents and queries into the same vector space for efficient similarity-based ranking. It is also applied to downstream tasks such as clustering, classification, recommendation, and code or multilingual text retrieval in large-scale RAG and search systems. It belongs to the Qwen3-Embedding model family, which includes smaller (0.6B) and larger (8B) variants built on the same architecture and training recipe.
Model capabilities
Generates dense vector representations for text inputs, enabling similarity search, retrieval, recommendation, and other embedding-based applications.
Supports semantic retrieval by embedding queries and documents into a shared vector space for relevance-based nearest-neighbor search.
Enables grouping of related documents or sentences by comparing embedding distances, useful for topic discovery and organization.
Produces embeddings for text in multiple languages, allowing cross-lingual similarity, retrieval, and alignment tasks.
Converts OCR-extracted text into embeddings, making scanned or image-derived documents searchable and comparable via vector search.
Use cases
Transparent pricing
LLM API offers the lowest embedding costs and fastest global latency for Qwen3-class models.
| Provider | Region | Latency | Throughput | Uptime | Input ($/1M) | Output ($/1M) | Context |
|---|---|---|---|---|---|---|---|
| LLM API BEST | Global | 80ms | 120K tps | 99.99% | $0.02 | $0.00 | 8192 tokens |
| Qwen | Global | ~140ms | ~60K tps | 99.9% | ~$0.05 | $0.00 | ~8192 tokens |
| Alibaba Cloud | APAC East | ~160ms | ~45K tps | 99.9% | ~$0.06 | $0.00 | ~8192 tokens |
| Fireworks AI | US East | ~150ms | ~50K tps | 99.9% | ~$0.055 | $0.00 | ~8192 tokens |
| Together AI | US West | ~170ms | ~40K tps | 99.9% | ~$0.058 | $0.00 | ~8192 tokens |
Performance benchmarks
| Metric | Qwen3 Embedding 4B | text-embedding-3-large (OpenAI) | text-embedding-ada-002 (OpenAI) |
|---|---|---|---|
| Dimensions | ~1024 | 3072 | 1536 |
| Max Input Tokens | ~8K | 8192 | 8192 |
| Price per 1M Tokens | ~$0.05 | $0.13 | $0.10 |
| Avg Latency | ~120ms | ~150ms | ~160ms |
| Throughput | ~1,200 tps | ~1,000 tps | ~900 tps |
| Uptime | ~99.9% | 99.9% | 99.9% |
30-day usage via LLM API
Architecture & Integration
One unified API. Every major model. Built-in reliability, cost control, and observability.
Dynamically route each request to the best model across providers based on performance, domain, or rules—without changing your integration or redeploying code.
One endpoint, every modelAutomatically steer traffic to cheaper equivalents, set hard budgets, and mix premium and economy models so you control spend without sacrificing quality.
Max performance, minimal costConfigure multi-provider failover so if a model, region, or vendor is down, requests transparently retry elsewhere—no lost traffic, no manual intervention.
Stay up when vendors failGet per-request traces, latencies, costs, and model metrics across all vendors in one place, with logs ready for debugging, tuning, and compliance.
See every token, everywhereCall high-level tasks—chat, tools, RAG—while LLM.API handles prompt wiring, tool invocation, and vendor quirks, so your code stays simple and portable.
Code to tasks, not modelsRun millions of inferences as efficient batches with automatic throttling, retries, and provider parallelism, turning slow backfills into predictable pipelines.
Scale from 10 to 10M callsDecision guide
FAQ
Qwen3 Embedding 4B is a 4B-parameter text embedding model from Qwen designed to generate dense vector representations for text retrieval and semantic search.
Qwen3 Embedding 4B is a text-only model that converts textual inputs into numerical embedding vectors; it does not process images, audio, or video.
Qwen3 Embedding 4B is best for semantic search, retrieval-augmented generation, clustering, recommendation, and other applications needing high-quality text similarity embeddings.
LLM.API uses its own unified usage-based pricing for Qwen3 Embedding 4B; check the LLM.API pricing page for current per-token embedding rates.
Qwen3 Embedding 4B supports long text inputs, but the exact maximum token context window depends on the configuration exposed by LLM.API.
Qwen3 Embedding 4B is optimized for low-latency embedding generation, with actual end-to-end speed depending on LLM.API infrastructure and request volume.
You select the Qwen3 Embedding 4B model name in LLM.API requests and send text input through the embeddings endpoint as described in the LLM.API docs.
Qwen3 Embedding 4B generally offers lower cost and latency than larger Qwen embedding models, with potentially slightly lower embedding quality and capacity.
Qwen3 Embedding 4B supports multilingual text to varying degrees, but coverage and quality differ by language and should be validated for your target locales.
Qwen3 Embedding 4B cannot generate text, understand non-text modalities, or exceed its maximum input length, and embedding quality may degrade on very noisy inputs.
Compare
text-embedding-ada-002 is an OpenAI embedding model that converts text into numerical vectors for measuring semantic similarity. It is an improved, more performant successor to earlier Ada-based…
E5-Base-v2 is an English sentence and paragraph embedding model from Intfloat that encodes text into a 768-dimensional dense vector space, optimized for high-quality semantic similarity tasks.
Text Embedding 3 Small is an OpenAI embedding model optimized for low-latency, low-cost vector representations of text. It offers strong semantic performance while being suitable for…