API Free WeekHundreds of APIs are free to call this week.Browse free APIs

Qwen: Qwen3 8B

alibaba/qwen3-8b

Qwen3 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
Context window
131.1K
Max output
8.2K
Production route

Try the model

Playground

Open playground
Input⌘ / Ctrl + Enter

Try a prompt

131.1K context8.2K max output
Input$0.18/MOutput$0.70/MCache read$0.18/M
OutputReady

Your response will appear here

Choose an example or write a prompt, then click Run.

Model card

Specifications

Pricing

Input
$0.18 / 1M tokens
Output
$0.70 / 1M tokens
Cache read
$0.18 / 1M tokens

Context & modalities

Context window
131,072 tokens
Max output
8,192 tokens
Input
Text
Output
Text

Capabilities

Chat
Supported
Vision
Not supported
Reasoning
Supported
Structured output
Supported
Function calling
Supported
Audio input
Not supported

Access

Provider
Alibaba
Model ID
alibaba/qwen3-8b
Execution
sync
Base URL
https://api.sandbase.ai
API
Chat Completions API
Endpoint
/v1/chat/completions

Independent evaluations

Benchmarks

Scores on standardized evaluations, compared with other models on SandBase.

Metrics sourced from Artificial Analysis · Intelligence Index v4.3

Start building

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

Production API
Chat Completions API endpoint
https://api.sandbase.ai/v1/chat/completions
Model ID
alibaba/qwen3-8b
# 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"

Choose your model

Compare models

All language models
ModelContextInput / 1MOutput / 1MReleased
Qwen3 8BThis model
Alibaba
128K$0.18$0.70Apr 28, 2025
Alibaba1M$4.00$12.00Sep 23, 2026
Alibaba1M$0.15$0.47Sep 18, 2026
Alibaba1M$2.00$6.00Sep 3, 2026
Alibaba1M$0.50$3.00Aug 14, 2026
Alibaba1M$2.00$6.00Aug 12, 2026

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.

How does Alibaba Qwen3 8B score on benchmarks?

Alibaba Qwen3 8B scores 7.3 on the Artificial Analysis Intelligence Index (v4.3), ranking #85 of 87 models on SandBase; Coding Index 9.0, Agentic Index 0.8. Source: Artificial Analysis, measured as Qwen3 8B (Reasoning).

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.