Qwen3 8B

AlibabaMCP Tool CallReasoning
alibaba/qwen3-8bOpen Weights

Dense 8B Qwen3 model with switchable thinking for chat, reasoning, and tool use

Benchmark Pricing$0.18 / 1M in$0.70 / 1M out
Context: 32,768 tokens•Max Output: 32,768 tokens•Released: 2025-04-29

TECHNICAL SPECIFICATIONS

Context Window32,76832.8K tokens
Max Output32,76832.8K tokens
LicenseApache-2.0Self-hostable
Input Modalities
Text
Function / Tool CallingSupported (MCP Ready)
Structured OutputsGuaranteed Schema

MODEL CONTEXT PROTOCOL (MCP) READINESS

✓ Qwen3 8B natively supports OpenAI / Anthropic format tool calling and is fully compatible with MCP servers and agent loops.

MCP Context Window Recommendations

With a context capacity of 32,768 tokens, this model can handle compact tool sets. Consider keeping MCP server tool manifests minimal to preserve headroom.

API CALL INVOCATION EXAMPLE

// Example: Calling Qwen3 8B via OpenAI SDK
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.ALIBABA_API_KEY,
});

const response = await client.chat.completions.create({
  model: "alibaba/qwen3-8b",
  messages: [{ role: "user", content: "Hello! Can you inspect MCP tools?" }],
});

console.log(response.choices[0].message.content);

PRICING BY PROVIDER

7 providers
Alibabaqwen3-8b
$0.18 / $0.70
NanoGPTqwen/qwen3-8b
$0.47 / $0.47$0.23 cache
Novita AIdeepseek/deepseek-r1-0528-qwen3-8b
$0.06 / $0.09
Thinking MachinesQwen/Qwen3-8B
$0.20 / $0.60$0.04 cache
Hugging FaceQwen/Qwen3-8B
$0.07 / $0.18
PioneerQwen/Qwen3-8B
$0.20 / $0.20$0.20 cache
Alibaba (China)qwen3-8b
$0.07 / $0.29

Rates in USD per 1M tokens. Rates synchronized from models.dev public catalog.