Models / Qwen3.5 4B

Qwen3.5 4B

Qwen Tier 1Apache-2.0

Compact 4B model for mobile and embedded deployments. Surprisingly capable for its size.

qwen/qwen3.5-4b
Context Window
262K
Max Output
8K
Providers
1
Released
2026-02

Capabilities

chatcodestreaming

Pricing by Provider

ProviderInput $/1MOutput $/1MLatency p50Latency p95Status
alibaba$0.02$0.06100ms250ms

Quick Start

Python
import magicrouter

mr = magicrouter.Client(
    provider_keys={"alibaba": "your-api-key"}
)

response = mr.chat(
    "qwen/qwen3.5-4b",
    "Your prompt here"
)
print(response.choices[0].message.content)
TypeScript
import { MagicRouter } from "magicrouter";

const mr = new MagicRouter({
  providerKeys: { alibaba: "your-api-key" }
});

const response = await mr.chat({
  model: "qwen/qwen3.5-4b",
  messages: [{ role: "user", content: "Your prompt here" }]
});
console.log(response.choices[0].message.content);
cURL
curl https://dashscope-intl.aliyuncs.com/compatible-mode/v1/chat/completions \
  -H "Authorization: Bearer your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen-flash",
    "messages": [{"role": "user", "content": "Your prompt here"}]
  }'

Use this model

Sign up for free and test Qwen3.5 4B in the playground

Get Started
Qwen3.5 4B — MagicRouter