Qwen3.5 4B

AlibabaMCP Tool CallReasoning
alibaba/qwen3.5-4bOpen Weights

Small Qwen3.5 multimodal model for low-cost chat, reasoning, and tool use

Benchmark Pricing$0.33 / 1M in$1.00 / 1M out$0.07 cache read
Context: 262,144 tokens•Max Output: 81,920 tokens•Released: 2026-03-02

TECHNICAL SPECIFICATIONS

Context Window262,144262.1K tokens
Max Output81,92081.9K tokens
LicenseApache-2.0Self-hostable
Input Modalities
TextVisionVideo
Function / Tool CallingSupported (MCP Ready)
Structured OutputsGuaranteed Schema

MODEL CONTEXT PROTOCOL (MCP) READINESS

✓ Qwen3.5 4B 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 262,144 tokens, this model can handle moderately large MCP tool definitions and multi-turn conversation logs comfortably.

API CALL INVOCATION EXAMPLE

// Example: Calling Qwen3.5 4B 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.5-4b",
  messages: [{ role: "user", content: "Hello! Can you inspect MCP tools?" }],
});

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

PRICING BY PROVIDER

4 providers
QVACqwen3.5-4b
$0.00 / $0.00
Thinking MachinesQwen/Qwen3.5-4B
$0.33 / $1.00$0.07 cache
Merge Gatewayqwen/qwen3.5-4b
$0.04 / $0.07
EmpirioLabs AIqwen3-5-4b
$0.04 / $0.07$0.02 cache

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

Prompt Caching Active

This model supports prompt caching at $0.07 / 1M tokens, saving up to 80% on repetitive MCP tool definitions and system instructions.