qwen
Qwen: Qwen-Plus
Qwen-Plus, based on the Qwen2.5 foundation model, is a 131K context model with a balanced performance, speed, and cost combination.
Context
1M tokens
Input / 1M tokens
$0.26
Output / 1M tokens
$0.78
Benchmark
—
Pricing
Input tokens$0.26 per 1M tokens
Output tokens$0.78 per 1M tokens
Cache read$0.05 per 1M tokens
Cache write$0.33 per 1M tokens
Technical details
Model IDqwen/qwen-plus
Context window1M tokens
Input modalitiestext
Output modalitiestext
TokenizerQwen
Max output tokens32,768
Use with MegaBrain
import OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://getmegabrain.com/api/gateway/v1',
apiKey: process.env.MEGABRAIN_API_KEY,
})
const response = await client.chat.completions.create({
model: 'qwen/qwen-plus',
messages: [{ role: 'user', content: 'Hello!' }],
})