Qwen2.5-Coder-32B-Instruct

AlibabaMCP Tool Call
alibaba/qwen2.5-coder-32b-instructOpen Weights

Open coding-focused Qwen model for code generation, repair, and repository reasoning

Benchmark Pricing$0.20 / 1M in$0.20 / 1M out$0.10 cache read
Context: 131,072 tokens•Max Output: 8,192 tokens•Released: 2024-11-12

TECHNICAL SPECIFICATIONS

Context Window131,072131.1K tokens
Max Output8,1928.2K tokens
LicenseOpen SourceSelf-hostable
Input Modalities
Text
Function / Tool CallingSupported (MCP Ready)
Structured OutputsGuaranteed Schema

MODEL CONTEXT PROTOCOL (MCP) READINESS

✓ Qwen2.5-Coder-32B-Instruct 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 131,072 tokens, this model can handle moderately large MCP tool definitions and multi-turn conversation logs comfortably.

API CALL INVOCATION EXAMPLE

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

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

PRICING BY PROVIDER

5 providers
NanoGPTqwen/qwen2.5-coder-32b-instruct
$0.20 / $0.20$0.10 cache
Eden AIcloudflare/@cf/qwen/qwen2.5-coder-32b-instruct
$0.66 / $1.00
Hugging FaceQwen/Qwen2.5-Coder-32B-Instruct
$0.06 / $0.20
Cloudflare Workers AI@cf/qwen/qwen2.5-coder-32b-instruct
$0.66 / $1.00
OpenRouterqwen/qwen-2.5-coder-32b-instruct
$0.66 / $1.00

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

Prompt Caching Active

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