Skip to content

Commit ba4cfdf

Browse files
author
kimi-code/FI-008
committed
docs(aaa): qwen free-quota routing reference
Terminal runtime state (broadcast/holds/mission/orders/todays-law/sessions) and snapshots/ stay untracked by design — session artifacts, not source. DITEMPA BUKAN DIBERI
1 parent bfa7958 commit ba4cfdf

1 file changed

Lines changed: 308 additions & 0 deletions

File tree

docs/qwen-free-quota-routing.md

Lines changed: 308 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,308 @@
1+
# Qwen Cloud Free Quota — Federation Routing Guide
2+
3+
> **SOT for model routing. Every agent that touches Qwen models loads this.**
4+
> **Forged:** 2026-08-20 · **Authority:** F13 · **Provider:** dashscope-payg (Singapore PAYG)
5+
> **Endpoint:** `https://dashscope-intl.aliyuncs.com/compatible-mode/v1`
6+
> **API key:** `DASHSCOPE_API_KEY` (PAYG `sk-ws-H.*` — NEVER Token Plan `sk-sp-H.*`)
7+
8+
---
9+
10+
## Free Quota Rules (binding)
11+
12+
| Rule | Detail |
13+
|---|---|
14+
| **Per-model** | 1M tokens (input+output combined), independent per model |
15+
| **Validity** | 90 days from activation or model release (whichever later) |
16+
| **Key rule** | PAYG keys (`sk-ws-H.*`) consume free quota. Token Plan keys (`sk-sp-H.*`) bypass it |
17+
| **Free Quota Only** | ENABLE in console — blocks calls when exhausted, no surprise charges |
18+
| **Non-transferable** | Model A quota ≠ Model B quota. Exhausted = exhausted |
19+
| **Expiry** | Hard expiry. Unused quota = void. No pause, no extension |
20+
21+
---
22+
23+
## Decision Flow
24+
25+
```
26+
USER REQUEST
27+
28+
├─ Text / Reasoning / Code ──────────→ TEXT RANKING (§1)
29+
│ └─ FED routes, FLAME fallbacks, FRAME observes
30+
31+
├─ Image Understanding / OCR ────────→ VISION INPUT RANKING (§2)
32+
33+
├─ Image Generation ─────────────────→ IMAGE OUTPUT RANKING (§3)
34+
35+
├─ Video Generation ─────────────────→ VIDEO RANKING (§4)
36+
37+
├─ TTS / Voice Synthesis ────────────→ TTS RANKING (§5)
38+
39+
├─ ASR / Transcription ──────────────→ ASR RANKING (§6)
40+
41+
└─ Voice Clone / Design ─────────────→ VOICE IDENTITY RANKING (§7)
42+
```
43+
44+
**Rule:** Always pick the HIGHEST quality model that has remaining free quota.
45+
If exhausted → fall to next tier. If all free quota gone → PAYG billing.
46+
47+
---
48+
49+
## §1 — Text / Reasoning / Code (Quality Rank)
50+
51+
| Rank | Model | Input $/M | Output $/M | Context | Max Out | Use When |
52+
|---|---|---|---|---|---|---|
53+
| **Q1** | `qwen3.8-max` | $2.00 | $6.00 | 1M | 131K | Frontier reasoning, complex code, BM Penang fidelity, constitutional work |
54+
| **Q2** | `qwen3.7-max` | $1.25 | $3.75 | 1M | 131K | General high-quality, good balance of cost/quality |
55+
| **Q3** | `deepseek-v4-pro` | $0.66 | $1.98 | 1M | 393K | Long output tasks (reports, analysis), best cost/quality |
56+
| **Q4** | `qwen3.7-plus` | $0.32-0.96 | $1.28-3.84 | 1M | 131K | Mid-tier, structured output, tool calling |
57+
| **Q5** | `qwen3.7-flash` | $0.03-0.20 | $0.13-0.80 | 1M | 131K | High-volume, simple tasks, classification, routing |
58+
| **Q6** | `qwen3.6-flash` | $0.25-1.00 | $1.50-4.00 | 1M | 65K | Fallback, longer context needed |
59+
60+
### Federation Role Mapping
61+
62+
| Federation System | Primary Model | Fallback | Why |
63+
|---|---|---|---|
64+
| **FED** (routing/LLM) | `qwen3.8-max` | `qwen3.7-max``deepseek-v4-pro` | FED needs frontier for accurate routing |
65+
| **FLAME** (health/fallback) | `qwen3.7-flash` | `qwen3.6-flash` | FLAME does monitoring, not reasoning — speed over quality |
66+
| **FRAME** (observer) | `qwen3.7-plus` | `qwen3.7-flash` | FRAME observes and reports — needs accuracy, not frontier |
67+
| **666 JUDGE** | `qwen3.8-max` | `qwen3.7-max` | Constitutional verdicts demand highest quality |
68+
| **999 SEAL** | `qwen3.8-max` || Irreversible — never cheap out |
69+
| **i-ARIF** (persona) | `qwen3.8-max` | `MiniMax-M3` | BM Penang fidelity needs Qwen3.8 |
70+
| **Hermes** (daily ops) | `qwen3.7-plus` | `qwen3.7-flash` | Telegram bot — balance quality vs latency |
71+
| **OpenClaw** (edge) | `qwen3.7-flash` | `glm-5.3` | Edge agent — low latency critical |
72+
73+
### Reasoning / Thinking Models
74+
75+
| Rank | Model | Input $/M | Output $/M | Context | Use When |
76+
|---|---|---|---|---|---|
77+
| **Q1** | `qwq-plus` | $0.80 | $2.40 | 131K | Deep reasoning chains, math, logic |
78+
| **Q2** | `qvq-max` | $1.20 | $4.80 | 131K | Visual reasoning (image + text chains) |
79+
80+
---
81+
82+
## §2 — Vision Input (Image Understanding) — Quality Rank
83+
84+
| Rank | Model | Input $/M | Output $/M | Context | Max Out | Use When |
85+
|---|---|---|---|---|---|---|
86+
| **Q1** | `qwen-vl-max` | $0.80 | $3.20 | 131K | 32K | Complex image analysis, document understanding, charts |
87+
| **Q2** | `qwen3.5-omni-plus` | $1.40 | $8.30 | 262K | 65K | Multi-image + audio + video understanding (omni) |
88+
| **Q3** | `qwen3-vl-plus` | $0.20-0.60 | $1.60-4.80 | 262K | 32K | Good vision, lower cost |
89+
| **Q4** | `qwen-vl-ocr` | $0.07 | $0.16 | 38K | 8K | OCR specialist — documents, tables, receipts |
90+
| **Q5** | `qwen3-vl-flash` | $0.05-0.12 | $0.40-0.96 | 262K | 32K | Fast vision, simple classification |
91+
| **Q6** | `qwen3.5-omni-flash` | $0.43 | $1.66 | 262K || Quick omni (image+audio), lower cost |
92+
93+
### Vision Routing
94+
95+
| Task | Primary | Fallback |
96+
|---|---|---|
97+
| Complex image analysis | `qwen-vl-max` | `qwen3-vl-plus` |
98+
| Document/OCR extraction | `qwen-vl-ocr` | `qwen3-omni-flash` |
99+
| Face identification | `deterministic-face-id` (local dlib) | `qwen-vl-max` |
100+
| Multi-modal (image+audio) | `qwen3.5-omni-plus` | `qwen3.5-omni-flash` |
101+
| Quick classification | `qwen3-vl-flash` | `qwen3-vl-plus` |
102+
103+
---
104+
105+
## §3 — Image Generation — Quality Rank
106+
107+
| Rank | Model | Cost/Image | RPM | Use When |
108+
|---|---|---|---|---|
109+
| **Q1** | `qwen-image-3.0-pro` | $0.003-0.075 | 5 | Dense layouts, newspapers, menus, storyboards — highest fidelity |
110+
| **Q2** | `qwen-image-max` | $0.075 | 2 | Flagship realism, photorealistic |
111+
| **Q3** | `qwen-image-3.0` | $0.003-0.075 | 5 | Latest gen, 12-language text render, 4.5K tokens |
112+
| **Q4** | `qwen-image-2.0-pro` | $0.075 | 2 | Full-feature accelerated |
113+
| **Q5** | `z-image-turbo` | $0.015 | 120 | 6B params, 8-step, fastest — #1 on Artificial Analysis |
114+
| **Q6** | `qwen-image-2.0` | $0.035 | 120 | Quick gen, 1000-token prompts |
115+
| **Q7** | `wan2.7-image-pro` | $0.075 | 300 | Image editing via natural language |
116+
| **Q8** | `wan2.6-t2i` | $0.03 | 300 | Older T2I, fast |
117+
118+
### Image Editing
119+
120+
| Rank | Model | Cost/Image | RPM | Use When |
121+
|---|---|---|---|---|
122+
| **Q1** | `qwen-image-edit-max` | $0.075 | 2 | Flagship editing, LoRA support |
123+
| **Q2** | `qwen-image-edit-plus` | $0.03 | 120 | Lighter editing, faster |
124+
125+
### Image Routing
126+
127+
| Task | Primary | Fallback |
128+
|---|---|---|
129+
| High-fidelity generation | `qwen-image-3.0-pro` | `qwen-image-max` |
130+
| Photorealistic | `qwen-image-max` | `qwen-image-3.0-pro` |
131+
| Fast/cheap generation | `z-image-turbo` | `qwen-image-2.0` |
132+
| Image editing | `qwen-image-edit-max` | `wan2.7-image-pro` |
133+
| Text-in-image (multilingual) | `qwen-image-3.0` | `qwen-image-3.0-pro` |
134+
135+
---
136+
137+
## §4 — Video Generation — Quality Rank
138+
139+
| Rank | Model | Cost/Second | RPM | Max Duration | Use When |
140+
|---|---|---|---|---|---|
141+
| **Q1** | `wan3.0-video` | $0.05-0.20 | 50 | ~10s | **NEWEST** — dynamic transitions, best quality |
142+
| **Q2** | `happyhorse-1.1-t2v` | $0.042-0.108 | 300 | ~10s | Realistic dynamic, fast RPM |
143+
| **Q3** | `wan2.7-t2v-2026-06-12` | $0.10-0.15 | 300 | ~10s | Smooth motion, cinematic |
144+
| **Q4** | `wan2.7-i2v-2026-04-25` | $0.10-0.15 | 300 | ~10s | Subject/text preservation from image |
145+
| **Q5** | `wan2.7-r2v-2026-06-12` | $0.10-0.15 | 300 | ~10s | Multi-reference, preserves voice/look |
146+
| **Q6** | `happyhorse-1.1-i2v` | $0.042-0.108 | 300 | ~10s | Fast i2v |
147+
148+
### Video Editing
149+
150+
| Rank | Model | Cost/Second | RPM | Use When |
151+
|---|---|---|---|---|
152+
| **Q1** | `wan2.7-videoedit` | $0.10-0.15 | 300 | Local/global editing, video reshaping |
153+
| **Q2** | `happyhorse-1.0-video-edit` | $0.112-0.192 | 300 | Natural instruction video editing |
154+
| **Q3** | `wan2.1-vace-plus` | $0.10 | 120 | Unified video editing |
155+
156+
### Video Routing
157+
158+
| Task | Primary | Fallback |
159+
|---|---|---|
160+
| Text-to-video (quality) | `wan3.0-video` | `wan2.7-t2v` |
161+
| Text-to-video (speed) | `happyhorse-1.1-t2v` | `wan2.7-t2v` |
162+
| Image-to-video | `wan2.7-i2v` | `happyhorse-1.1-i2v` |
163+
| Reference-to-video | `wan2.7-r2v` | `happyhorse-1.1-r2v` |
164+
| Video editing | `wan2.7-videoedit` | `happyhorse-1.0-video-edit` |
165+
166+
---
167+
168+
## §5 — TTS (Text-to-Speech) — Quality Rank
169+
170+
| Rank | Model | Cost/10K chars | RPM | Use When |
171+
|---|---|---|---|---|
172+
| **Q1** | `qwen-audio-3.0-realtime-plus` | $0.80/M input, $6.40/M output || **BEST** — full-duplex, top global evals, natural prosody |
173+
| **Q2** | `qwen-audio-3.0-tts-flash` | $0.15/10K chars | 180 | Multilingual TTS, free-style instruction, production workhorse |
174+
| **Q3** | `cosyvoice-v3-plus` | $0.26/10K chars | 180 | Generative TTS with text understanding |
175+
| **Q4** | `qwen-audio-3.0-realtime-flash` | $0.45/M input, $4.50/M output || Fast realtime, lower quality than plus |
176+
| **Q5** | `qwen3-tts-flash` | $0.10/10K chars | 180 | Budget TTS |
177+
178+
### TTS Routing
179+
180+
| Task | Primary | Fallback |
181+
|---|---|---|
182+
| i-ARIF voice output | `qwen-audio-3.0-realtime-plus` | `qwen-audio-3.0-tts-flash` |
183+
| Telegram voice reply | `qwen-audio-3.0-tts-flash` | `edge ms-MY-OsmanNeural` (free) |
184+
| High-fidelity narration | `qwen-audio-3.0-realtime-plus` | `cosyvoice-v3-plus` |
185+
| Quick read-aloud | `qwen-audio-3.0-tts-flash` | `qwen3-tts-flash` |
186+
| Voice cloning target | `qwen-audio-3.0-realtime-plus` ||
187+
188+
---
189+
190+
## §6 — ASR (Speech-to-Text) — Quality Rank
191+
192+
| Rank | Model | Cost/Second | RPM | Use When |
193+
|---|---|---|---|---|
194+
| **Q1** | `qwen-audio-3.0-asr-flash-streaming` | $0.00009 | 1200 | Real-time ASR, live meetings, streaming |
195+
| **Q2** | `qwen-audio-3.0-asr-flash` | $0.000035 | 600 | Short audio (<5min), high-quality transcription |
196+
| **Q3** | `qwen-audio-3.0-asr-flash-filetrans` | $0.000035 | 600 | Long audio offline, meetings/calls, batch |
197+
| **Q4** | `fun-asr-flash` | free | 600 | 7 major Chinese dialects, free |
198+
199+
### ASR Routing
200+
201+
| Task | Primary | Fallback |
202+
|---|---|---|
203+
| Live/streaming ASR | `qwen-audio-3.0-asr-flash-streaming` | `qwen-audio-3.0-asr-flash` |
204+
| Short voice note (<5min) | `qwen-audio-3.0-asr-flash` | `fun-asr-flash` |
205+
| Long audio/batch | `qwen-audio-3.0-asr-flash-filetrans` | `qwen-audio-3.0-asr-flash` |
206+
| Chinese dialect audio | `fun-asr-flash` | `qwen-audio-3.0-asr-flash` |
207+
208+
**Note:** ASR models require per-model access enablement in workspace before first invocation.
209+
210+
---
211+
212+
## §7 — Voice Identity — Quality Rank
213+
214+
| Rank | Model | Cost | RPM | Use When |
215+
|---|---|---|---|---|
216+
| **Q1** | `voice-enrollment` | $0.01/voice | 180 | Zero-shot voice cloning from 10-20s sample |
217+
| **Q2** | `qwen-voice-design` | $0.20/voice | 180 | Design voice from text description |
218+
219+
### Voice Identity Routing
220+
221+
| Task | Primary | Gate |
222+
|---|---|---|
223+
| i-ARIF voice clone | `voice-enrollment` | **F13 SOVEREIGN** — never auto-execute |
224+
| New voice design | `qwen-voice-design` | F13 approval required |
225+
| Voice clone + TTS pipeline | `voice-enrollment``qwen-audio-3.0-realtime-plus` | F13 |
226+
227+
---
228+
229+
## Free Quota Budget Planner
230+
231+
**Estimated free quota consumption per use case (1M tokens/model):**
232+
233+
| Use Case | Model | Est. Tokens/Use | Uses Before Exhaustion |
234+
|---|---|---|---|
235+
| LLM chat turn (complex) | `qwen3.8-max` | ~2K in + 1K out = 3K | ~333 turns |
236+
| LLM chat turn (simple) | `qwen3.7-flash` | ~500 in + 200 out = 700 | ~1,428 turns |
237+
| Image understanding | `qwen-vl-max` | ~1K in + 500 out = 1.5K | ~666 analyses |
238+
| OCR extraction | `qwen-vl-ocr` | ~1K in + 1K out = 2K | ~500 extractions |
239+
| Image generation | `qwen-image-3.0-pro` | ~4.5K tokens | ~222 images |
240+
| TTS (1000 chars) | `qwen-audio-3.0-tts-flash` | $0.15/10K chars | ~6,666 pages |
241+
| ASR (1 min audio) | `qwen-audio-3.0-asr-flash` | 60s × $0.000035 | ~476 minutes |
242+
243+
**Priority allocation for free quota:**
244+
1. **qwen3.8-max** — highest value, consume first (constitutional work, i-ARIF)
245+
2. **qwen-vl-max** — vision understanding, second priority
246+
3. **qwen-image-3.0-pro** — image generation, third
247+
4. **qwen-audio-3.0-tts-flash** — TTS, moderate use
248+
5. **qwen-audio-3.0-asr-flash** — ASR, moderate use
249+
6. **qwen3.7-flash** — high volume, low cost, stretch the quota
250+
251+
---
252+
253+
## Quick Reference Card (print this)
254+
255+
```
256+
┌─────────────────────────────────────────────────────────────┐
257+
│ QWEN FREE QUOTA ROUTING — AGENT QUICK REFERENCE │
258+
├──────────────────┬──────────────────────────────────────────┤
259+
│ TEXT (best) │ qwen3.8-max → FED, JUDGE, SEAL │
260+
│ TEXT (mid) │ qwen3.7-plus → FRAME, Hermes │
261+
│ TEXT (cheap) │ qwen3.7-flash → FLAME, OpenClaw │
262+
│ TEXT (long out) │ deepseek-v4-pro → reports, analysis │
263+
├──────────────────┼──────────────────────────────────────────┤
264+
│ VISION (best) │ qwen-vl-max → complex analysis │
265+
│ VISION (omni) │ qwen3.5-omni-plus → image+audio+video │
266+
│ OCR │ qwen-vl-ocr → documents, tables │
267+
│ VISION (fast) │ qwen3-vl-flash → classification │
268+
├──────────────────┼──────────────────────────────────────────┤
269+
│ IMAGE GEN (best) │ qwen-image-3.0-pro → dense layouts │
270+
│ IMAGE GEN (photo)│ qwen-image-max → photorealistic │
271+
│ IMAGE GEN (fast) │ z-image-turbo → 8-step, 120 RPM │
272+
│ IMAGE EDIT │ qwen-image-edit-max → LoRA, flagship │
273+
├──────────────────┼──────────────────────────────────────────┤
274+
│ VIDEO (best) │ wan3.0-video → dynamic transitions │
275+
│ VIDEO (fast) │ happyhorse-1.1-t2v → 300 RPM │
276+
│ VIDEO (i2v) │ wan2.7-i2v → subject preservation │
277+
│ VIDEO EDIT │ wan2.7-videoedit → local/global edit │
278+
├──────────────────┼──────────────────────────────────────────┤
279+
│ TTS (best) │ qwen-audio-3.0-realtime-plus → natural │
280+
│ TTS (workhorse) │ qwen-audio-3.0-tts-flash → multilingual│
281+
│ TTS (free) │ edge ms-MY-OsmanNeural → Telegram │
282+
├──────────────────┼──────────────────────────────────────────┤
283+
│ ASR (live) │ qwen-audio-3.0-asr-flash-streaming │
284+
│ ASR (short) │ qwen-audio-3.0-asr-flash │
285+
│ ASR (long) │ qwen-audio-3.0-asr-flash-filetrans │
286+
├──────────────────┼──────────────────────────────────────────┤
287+
│ VOICE CLONE │ voice-enrollment (F13 SOVEREIGN gate) │
288+
│ VOICE DESIGN │ qwen-voice-design (F13 gate) │
289+
└──────────────────┴──────────────────────────────────────────┘
290+
```
291+
292+
---
293+
294+
## Constitutional Gates
295+
296+
| Modality | Gate | Rule |
297+
|---|---|---|
298+
| Text (constitutional) | 666 JUDGE | `qwen3.8-max` only — no downgrade |
299+
| Text (seal) | 999 SEAL | `qwen3.8-max` only — irreversible |
300+
| Voice clone creation | F13 SOVEREIGN | Manual approval required |
301+
| Video generation (public) | F13 | Review before publish |
302+
| Image generation (public) | F2 TRUTH | No fabrication, no deepfake |
303+
304+
---
305+
306+
*Forged: 2026-08-20 · F13 directive: "optimize it for the FED FLAME FRAME, rank by output quality"*
307+
*Source pricing: Qwen Cloud pricing page (2026-08-20)*
308+
*DITEMPA BUKAN DIBERI*

0 commit comments

Comments
 (0)