Qwen2.5 7B Instruct

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

Small open Qwen2.5 instruction model for chat, structured output, and tool use

Benchmark Pricing$0.17 / 1M in$0.70 / 1M out
Context: 131,072 tokens•Max Output: 8,192 tokens•Released: 2024-09-19

TECHNICAL SPECIFICATIONS

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

MODEL CONTEXT PROTOCOL (MCP) READINESS

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

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

PRICING BY PROVIDER

3 providers
Alibabaqwen2-5-7b-instruct
$0.17 / $0.70
Alibaba (China)qwen2-5-7b-instruct
$0.07 / $0.14
OpenRouterqwen/qwen-2.5-7b-instruct
$0.10 / $0.20

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