Qwen3 Embedding 4B

Alibaba Qwen chattool_usecode

API ID: qwen/qwen3-embedding-4b

Input Price
$0.02
/1M tokens
Output Price
Free
/1M tokens

About Qwen3 Embedding 4B

The Qwen3 Embedding model series is the latest proprietary model of the Qwen family, specifically designed for text embedding and ranking tasks. This series inherits the exceptional multilingual capabilities, long-text understanding, and reasoning skills of its foundational model. The Qwen3 Embedding series represents significant advancements in multiple text embedding and ranking tasks, including text retrieval, code retrieval, text classification, text clustering, and bitext mining.

๐Ÿ“Š
Price Ranking
#583 lowest price among 1240 Chat models

Model Specifications

Context Length
33k
Max Output
โ€”
Release Date
2025-10-28
Capabilities
chat tool_use code
Input Modalities
text
Output Modalities
embeddings

Best For

  • Code generation, debugging, code review, refactoring
  • Conversations, content writing, general assistance

Consider Alternatives For

  • Image understanding (needs vision capability)

๐Ÿ’ฐ Real-World Cost Examples

Estimated monthly costs for common use cases

Personal AI Assistant
$0.01
/month
50 conversations/day, ~500 tokens each
Code Copilot
$0.10
/month
200 completions/day, ~1k tokens each
Customer Service Bot
$0.30
/month
1000 tickets/day, ~800 tokens each
Data Analysis Pipeline
$0.45
/month
500 analyses/day, ~2k tokens each

Alibaba Qwen Model Lineup

Compare all models from Alibaba Qwen to find the best fit

Model Input Output Context Capabilities
Qwen3 Embedding 4B Current Free Free 33k chat tool_use code
Qwen2.5-VL 7B Instruct Free Free 33k chat vision tool_use
Qwen3 Embedding 0.6B Free Free 8k chat code
Qwen3 Embedding 0.6B Free Free 8k chat code
Qwen2.5 VL 3B Instruct Free Free 64k chat vision code
Qwen2.5 VL 3B Instruct Free Free 64k chat vision code

Similar Models from Other Providers

Cross-brand alternatives with similar capabilities

OpenAI Text Embedding 3 Small
Input: $0.02
Output: Free
Context: 8k
Other LiquidAI/LFM2-8B-A1B
Input: $0.01
Output: $0.02
Context: 33k
Other LiquidAI/LFM2-2.6B
Input: $0.01
Output: $0.02
Context: 33k
Other GTE-Large
Input: $0.01
Output: Free
Context: 512

๐Ÿš€ Quick Start

Get started with Qwen3 Embedding 4B API

OpenAI-compatible SDK
from openai import OpenAI

client = OpenAI(
    base_url="https://api.provider.com/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="qwen/qwen3-embedding-4b",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)
print(response.choices[0].message.content)