Back to Models

Qwen Long

qwenqwen/qwen-long

10M-token long-context Qwen β€” built for document-scale analysis.

qwen-long is the long-context specialist of the Qwen family. With a 10M-token context window it ingests entire books, multi-hundred-page legal filings, whole codebases, or weeks of chat history in a single request, then answers, summarises, or extracts across the full input.

This model is deployed only on the mainland Bailian endpoint (bailian-cn). It does not have a Singapore failover β€” if bailian-cn is unavailable the model is unavailable. Plan for that in your retry strategy.

10M token context
Largest commercial context in the Qwen family. No chunking, no map-reduce needed for most document-scale jobs.
Document analysis
Strong at cross-section reasoning, full-text Q&A, contract review, and multi-file code summarisation.
Cheap per token
$0.12 input / $0.45 output per MTok β€” extreme value for the context window size.
CN deployment only
Lives on bailian-cn. No Singapore failover β€” region-pinned to mainland.
When to use
Whole-document analysis, contract / regulation review, repo-wide code summarisation, long transcript Q&A β€” anywhere chunking would lose cross-section context.
When not to use
Latency-critical chat or workloads that require Singapore (bailian-sg) availability β€” qwen-long is CN-only and tuned for throughput on long inputs, not for fast turn-by-turn responses.
Pricing: $0.12 input / $0.45 output per MTok. CN deployment only β€” no Singapore failover.
Context Length
10.5M
Max Output
8K
Input Priceper 1M tokens
$0.144/ 1M tokens
Output Priceper 1M tokens
$0.540/ 1M tokens

Modalities

text→text

Pricing Breakdown

TypeRate
Input$0.144 / 1M tokens
Output$0.540 / 1M tokens

Supported Parameters

temperaturemax_tokenstop_presponse_formatstop

API Usage Examples

Use the global api.therouter.ai endpoint shown below for new integrations; the legacy China accelerated endpoint is retired.

cURL
curl https://api.therouter.ai/v1/chat/completions   -H "Content-Type: application/json"   -H "Authorization: Bearer $THE_ROUTER_API_KEY"   -d '{
    "model": "qwen/qwen-long",
    "messages": [
      {"role": "user", "content": "Summarize the key points from this input."}
    ]
  }'
Customer Support