Qwen 3 5 4B API
Alibaba's Qwen 3 5 4B, through an OpenAI-compatible API. Providers quote it on an open exchange, and each request goes to the offer with the lowest estimated charge that meets your rules.
- Providers compete for each request. The exchange ranks the offers that meet your rules by estimated charge. It fixes your maximum charge before the first token, and you pay for the tokens that the model uses.
- The OpenAI and Anthropic APIs. Use the OpenAI or Anthropic SDK that you have. Set the base URL and your key, and send qwen3-5-4b as the model.
- Your data rules. Send x-liquid-retention: none and only offers whose provider does not keep your content compete for the request.
Facts
- Model name
- qwen3-5-4b
- Maker
- Alibaba
- Context window
- 262.1K tokens
- Input price
- $0.040 per million tokens
- Output price
- $0.070 per million tokens
- Providers
- 1 independent provider
- Regions
- global
Providers
- EmpirioLabs AI: global, $0.040 input and $0.070 output per million tokens, $0.020 cache read per million tokens, 262.1K tokens of context
Scores
- HLE: 9.9, #164 of 273
- GPQA: 77.1, #119 of 250
- AA-LCR: 63.0, #140 of 237
- Terminal-Bench Hard: 18.2, #97 of 166
- τ²-Bench: 92.1, #31 of 169
- IFBench: 52.0, #85 of 178
- SimpleQA Verified: 20.3, #93 of 126
Scores: Artificial Analysis (https://artificialanalysis.ai/)
Scores: Epoch AI, 'Capabilities & Benchmarking' (https://epoch.ai/benchmarks)
Request
curl https://router.inference.ai.exchange/v1/chat/completions \
-H "Authorization: Bearer $LIQUID_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen3-5-4b",
"messages": [{"role":"user","content":"Say hello."}]
}'Questions
- What is Qwen 3 5 4B?
- Qwen 3 5 4B is a model from Alibaba.
- How much does Qwen 3 5 4B cost?
- Offers now ask $0.040 per million input tokens and $0.070 per million output tokens. A job pays for the tokens it uses. The exchange picks the cheapest eligible offer.
- What is the context length of Qwen 3 5 4B?
- The largest offer takes 262,144 input tokens. One job can generate up to 32,768 tokens. A smaller offer can take less. The exchange skips an offer that cannot take your message.
- What can Qwen 3 5 4B do?
- Its providers list Vision, Video input, Reasoning budget, Reasoning effort, JSON object, JSON schema, Frequency penalty, Logit bias, Log probabilities, Min-p sampling, Presence penalty, Repetition penalty, Seed, Stop sequences, Top-k sampling, Top-p sampling, Text, Tools.
- What inputs and outputs does Qwen 3 5 4B support?
- Text · Images · Video → Text.
- Which providers serve Qwen 3 5 4B?
- 1 independent provider quote it now, with 1 offer. The table above ranks them by the cost of a typical job.
- How do I call Qwen 3 5 4B?
- Send "qwen3-5-4b" as the model in an OpenAI or Anthropic request. The API section links to setup steps for each client.
- When was Qwen 3 5 4B listed?
- The exchange first listed it on 10/17/2026. This is not its release date.