Alibaba (Qwen)
Qwen3.7 Max
Alibaba's flagship Qwen — 1M-token context, top-tier reasoning.
$ / 1M input
$2.500
What you pay per million prompt tokens.
$ / 1M output
$7.500
What you pay per million completion tokens.
Blended (70 / 30)
$4.000
Typical chat workload mix.
Context window
1,000,000 tokens
Try in API
Replace $THK_KEY with your Universal Key from /dashboard. Token Harbor speaks the OpenAI Chat Completions wire format — the SDK you already use just points at our base URL.
curl https://tokenharbor.ai/v1/chat/completions \
-H "Authorization: Bearer $THK_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen/qwen3.7-max",
"messages": [{"role": "user", "content": "Hello!"}]
}'from openai import OpenAI
client = OpenAI(
api_key="$THK_KEY",
base_url="https://tokenharbor.ai/v1",
)
resp = client.chat.completions.create(
model="qwen/qwen3.7-max",
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.THK_KEY,
baseURL: "https://tokenharbor.ai/v1",
});
const resp = await client.chat.completions.create({
model: "qwen/qwen3.7-max",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(resp.choices[0].message.content);Smart routing
Don't want to babysit the model id? Pass tokenharbor/auto and our smart router picks the best fit per request — health- scored across 9 upstream vendors, automatically failing over when one slows down.
Pricing footnote. The numbers above match Alibaba (Qwen)'s published rates as of 2026-04-28. We don't add a markup — we make money on the 10% spread between gateway pricing and the discounted rate we pay our preferred provider for this model (recorded in lib/models-catalog.ts as openrouter).