Qwen: Qwen 2.5 Max

qwen-max

Qwen 2.5 Max costs $2.08 per million input tokens and $8.31 per million output tokens, supports 32K context, and is available through the OpenAI-compatible API.

Qwen 2.5 Max is the upgraded version of Qwen Max, beating GPT-4o, Deepseek V3 and Claude 3.5 Sonnet in benchmarks.

Modalities

Text → Text

Input / output price

$2.08 / $8.31 per 1M

Context

32K · max output 8K

Capabilities

—

Pricing

Billed per token actually used and deducted from your credits.

ItemUSD per 1M tokens
Input$2.08
Output$8.31
Cached input$1.04

Calculator

Drag the sliders to estimate what this model will cost.

Per request
$0.0129
Per day
$6.44
Per month (30 days)
$193.30

Qwen 2.5 Max: input $2.0796/M · output $8.3096/M · cached input $1.0398/M

Request with these settings
curl https://api.geniusrelaygpt.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "qwen-max", "max_tokens": 800,
       "messages": [{"role": "user", "content": "…"}]}'

Code samples

OpenAI-compatible. Set the base URL to https://api.geniusrelaygpt.com/v1 and the model to qwen-max.

curl https://api.geniusrelaygpt.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen-max",
    "stream": true,
    "messages": [{"role": "user", "content": "Hello"}]
  }'

Use it in a client: Cursor · Cline · SillyTavern · Codex

Parameters

Common OpenAI parameters can be passed as-is.

temperaturetop_pmax_tokensstreamstoppresence_penaltyfrequency_penaltyseed

FAQ

How is Qwen 2.5 Max billed?
Input is $2.08 and output is $8.31 per million tokens; cached input is $1.04. The charge for every request is listed in Usage Logs in the console.
How long is the context window?
32K tokens. In a long conversation every turn is billed for the full input, so keep the history under control.
Does it support streaming?
Yes. Add "stream": true to the request to receive server-sent events in the OpenAI format.
Qwen 2.5 Max API pricing · GeniusRelay