Qwen: Qwen3 8B
alibaba/qwen3-8bQwen3 8B is a compact dense model in Alibaba's open-weight Qwen3 family, released in April 2025 with 8.2 billion parameters. Like its siblings, it switches between a thinking mode for math, coding and logical reasoning and a non-thinking mode for efficient dialogue, with tool use in both modes and coverage of more than 100 languages and dialects. Choose it for lightweight text reasoning and chat where Qwen3 32B is more than the task needs.
- Input price
- $0.18USD / 1M tokens
- Output price
- $0.70USD / 1M tokens
- Cache read
- $0.18USD / 1M tokens
- Context window
- 131.1K
- Max output
- 8.2K
Specifications
- Input
- Text
- Output
- Text
Try the model
Playground
Write a prompt to try this model. Usage is billed at the prices shown.
Try a prompt
Your response will appear here
Choose an example or write a prompt, then click Run.
Start building
Send your first request
OpenAI-compatible endpoint with unified authentication and usage tracking.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/chat/completions" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "alibaba/qwen3-8b",
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"max_tokens": 2048
}
SANDBASE_JSON
)
printf '%s\n' "$result"Questions
FAQ
How do I call Alibaba Qwen3 8B through SandBase?
Create a SandBase API key, then send requests with the model ID "alibaba/qwen3-8b" to Chat Completions API (/v1/chat/completions) at https://api.sandbase.ai. The request examples on this page show the exact payload.
How much does Alibaba Qwen3 8B cost?
$0.18 per 1M input tokens and $0.70 per 1M output tokens, billed per request from your SandBase balance. Discounts, when available, are shown in the pricing on this page.
What is the context window of Alibaba Qwen3 8B?
131.1K tokens of context, with up to 8.2K output tokens per response.
Which features does Alibaba Qwen3 8B support?
Alibaba Qwen3 8B supports reasoning, function calling, structured output. See Specifications above for the full list.
Do I need a separate Alibaba account?
No. One SandBase API key and balance gives you access to Alibaba Qwen3 8B and the other models in the catalog; you do not need to sign up with Alibaba separately.
