@blockrun/clawrouter 0.12.244 → 0.12.245

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -7,11 +7,11 @@
7
7
  <p>Agents can't sign up for accounts. Agents can't enter credit cards.<br>
8
8
  Agents can only sign transactions.<br><br>
9
9
  <strong>ClawRouter is the only LLM router that lets agents operate independently.</strong><br><br>
10
- <em><!-- br:models.free -->6<!-- /br:models.free --> models free, no crypto required. No signup. No API key. No credit card.</em></p>
10
+ <em><!-- br:models.free -->5<!-- /br:models.free --> models free, no crypto required. No signup. No API key. No credit card.</em></p>
11
11
 
12
12
  <br>
13
13
 
14
- <img src="https://img.shields.io/badge/🆓_6_Free_Models-success?style=for-the-badge" alt="6 free models">&nbsp;
14
+ <img src="https://img.shields.io/badge/🆓_5_Free_Models-success?style=for-the-badge" alt="5 free models">&nbsp;
15
15
  <img src="https://img.shields.io/badge/🤖_Agent--Native-black?style=for-the-badge" alt="Agent native">&nbsp;
16
16
  <img src="https://img.shields.io/badge/🔑_Zero_API_Keys-blue?style=for-the-badge" alt="No API keys">&nbsp;
17
17
  <img src="https://img.shields.io/badge/⚡_Local_Routing-yellow?style=for-the-badge" alt="Local routing">&nbsp;
@@ -34,7 +34,7 @@ Agents can only sign transactions.<br><br>
34
34
 
35
35
  </div>
36
36
 
37
- > **ClawRouter** is an open-source smart LLM router that reduces AI API costs by up to <!-- br:savings.autoVsBaselinePct -->88<!-- /br:savings.autoVsBaselinePct -->%. It analyzes each request across <!-- br:clawrouter.dimensions -->15<!-- /br:clawrouter.dimensions --> dimensions and routes to the cheapest capable model in under 1ms, entirely locally. ClawRouter is the only LLM router built for autonomous AI agents — it uses wallet signatures for authentication (no API keys) and USDC micropayments via the x402 protocol (no credit cards). <!-- br:models.chatVisible -->71<!-- /br:models.chatVisible --> models from OpenAI, Anthropic, Google, xAI, DeepSeek, and more. MIT licensed.
37
+ > **ClawRouter** is an open-source smart LLM router that reduces AI API costs by up to <!-- br:savings.autoVsBaselinePct -->88<!-- /br:savings.autoVsBaselinePct -->%. It analyzes each request across <!-- br:clawrouter.dimensions -->15<!-- /br:clawrouter.dimensions --> dimensions and routes to the cheapest capable model in under 1ms, entirely locally. ClawRouter is the only LLM router built for autonomous AI agents — it uses wallet signatures for authentication (no API keys) and USDC micropayments via the x402 protocol (no credit cards). <!-- br:models.chatVisible -->70<!-- /br:models.chatVisible --> models from OpenAI, Anthropic, Google, xAI, DeepSeek, and more. MIT licensed.
38
38
 
39
39
  ---
40
40
 
@@ -46,7 +46,7 @@ Every other LLM router was built for **human developers** — create an account,
46
46
 
47
47
  ClawRouter is built for the agent-first world:
48
48
 
49
- - **Starts at $0** — <!-- br:models.free -->6<!-- /br:models.free --> NVIDIA models are free forever (incl. 1M-context DeepSeek V4 Flash + a vision-capable Nemotron Omni)
49
+ - **Starts at $0** — <!-- br:models.free -->5<!-- /br:models.free --> NVIDIA models are free forever (incl. 1M-context DeepSeek V4 Flash + a vision-capable Nemotron Omni)
50
50
  - **No accounts** — a wallet is generated locally, no signup
51
51
  - **No API keys** — your wallet signature IS authentication
52
52
  - **No model selection** — <!-- br:clawrouter.dimensions -->15<!-- /br:clawrouter.dimensions -->-dimension scoring picks the right model automatically
@@ -61,8 +61,8 @@ This is the stack that lets agents operate autonomously: **x402 + USDC + local r
61
61
 
62
62
  | | OpenRouter | LiteLLM | Martian | Portkey | **ClawRouter** |
63
63
  | ---------------- | ----------------- | ---------------- | ----------------- | ----------------- | ---------------------------------------------------------------------- |
64
- | **Models** | 200+ | 100+ | Smart routing | Gateway | **<!-- br:models.chatVisible -->71<!-- /br:models.chatVisible -->** |
65
- | **Free tier** | Rate-limited | BYO keys | No | No | **<!-- br:models.free -->6<!-- /br:models.free --> models, no signup** |
64
+ | **Models** | 200+ | 100+ | Smart routing | Gateway | **<!-- br:models.chatVisible -->70<!-- /br:models.chatVisible -->** |
65
+ | **Free tier** | Rate-limited | BYO keys | No | No | **<!-- br:models.free -->5<!-- /br:models.free --> models, no signup** |
66
66
  | **Routing** | Manual selection | Manual selection | Smart (closed) | Observability | **Smart (open source)** |
67
67
  | **Auth** | Account + API key | Your API keys | Account + API key | Account + API key | **Wallet signature** |
68
68
  | **Payment** | Credit card | BYO keys | Credit card | $49-499/mo | **USDC per-request** |
@@ -78,7 +78,7 @@ This is the stack that lets agents operate autonomously: **x402 + USDC + local r
78
78
 
79
79
  ## Quick Start
80
80
 
81
- > **No wallet? <!-- br:models.free -->6<!-- /br:models.free --> models work free out of the box.** Install, run, and pin `free/mistral-nemotron` (or any of the <!-- br:models.free -->6<!-- /br:models.free -->) — no crypto, no signup, no balance required. Add USDC later when you want paid models.
81
+ > **No wallet? <!-- br:models.free -->5<!-- /br:models.free --> models work free out of the box.** Install, run, and pin `free/mistral-nemotron` (or any of the <!-- br:models.free -->5<!-- /br:models.free -->) — no crypto, no signup, no balance required. Add USDC later when you want paid models.
82
82
 
83
83
  ### Option A — OpenClaw Agent
84
84
 
@@ -107,7 +107,7 @@ openclaw gateway restart
107
107
 
108
108
  > **Using Claude Code?** Check out [BRCC](https://blockrun.ai/brcc.md) — it's purpose-built for Claude Code with the same smart routing and x402 payments.
109
109
  >
110
- > **Using NousResearch Hermes?** See [ClawRouter-Hermes](https://github.com/BlockRunAI/ClawRouter-Hermes) — a Python plugin that wires Hermes into the ClawRouter proxy. Same wallet, same <!-- br:models.chatVisible -->71<!-- /br:models.chatVisible --> models, same x402 USDC settlement on Base & Solana.
110
+ > **Using NousResearch Hermes?** See [ClawRouter-Hermes](https://github.com/BlockRunAI/ClawRouter-Hermes) — a Python plugin that wires Hermes into the ClawRouter proxy. Same wallet, same <!-- br:models.chatVisible -->70<!-- /br:models.chatVisible --> models, same x402 USDC settlement on Base & Solana.
111
111
 
112
112
  No OpenClaw required. ClawRouter runs as a local proxy on port 8402.
113
113
 
@@ -118,7 +118,7 @@ npx @blockrun/clawrouter
118
118
  ```
119
119
 
120
120
  **2. Fund your wallet** — optional, skip for free tier
121
- Your wallet address is printed on first run. For paid models, send a few USDC on Base or Solana — $5 covers thousands of requests. To stay at $0, pin any of the <!-- br:models.free -->6<!-- /br:models.free --> free models (e.g. `free/mistral-nemotron`) or use `/model free` inside OpenClaw.
121
+ Your wallet address is printed on first run. For paid models, send a few USDC on Base or Solana — $5 covers thousands of requests. To stay at $0, pin any of the <!-- br:models.free -->5<!-- /br:models.free --> free models (e.g. `free/mistral-nemotron`) or use `/model free` inside OpenClaw.
122
122
 
123
123
  **3. Point your client at `http://localhost:8402`**
124
124
 
@@ -393,7 +393,7 @@ No Surf account, no API key — settles directly to Surf's Base treasury in USDC
393
393
 
394
394
  ## Models & Pricing
395
395
 
396
- <!-- br:models.chatVisible -->71<!-- /br:models.chatVisible --> models across 9 providers, one wallet. **<!-- br:models.free -->6<!-- /br:models.free --> models are $0 — paid models start at fractions of a cent.**
396
+ <!-- br:models.chatVisible -->70<!-- /br:models.chatVisible --> models across 9 providers, one wallet. **<!-- br:models.free -->5<!-- /br:models.free --> models are $0 — paid models start at fractions of a cent.**
397
397
 
398
398
  > **💡 "Cost per request"** = estimated cost for a typical chat message (~500 input + 500 output tokens). Paid requests also carry a flat **$0.001/tx settlement fee** (covers on-chain gas; already included in the price the gateway quotes). Free models never pay it.
399
399
 
@@ -401,31 +401,35 @@ No Surf account, no API key — settles directly to Surf's Base treasury in USDC
401
401
 
402
402
  | Model | Input $/M | Output $/M | ~$/request | Context | Features |
403
403
  | ------------------------------------------- | --------: | ---------: | ---------: | ------- | -------------------------------------------- |
404
- | free/deepseek-v4-flash | **FREE** | **FREE** | **$0** | 1M | reasoning + coding, huge context |
405
404
  | free/nemotron-3-nano-omni-30b-a3b-reasoning | **FREE** | **FREE** | **$0** | 256K | reasoning, **vision** (text+img+video+audio) |
406
405
  | free/mistral-nemotron | **FREE** | **FREE** | **$0** | 131K | instruction following |
407
406
  | free/step-3.7-flash | **FREE** | **FREE** | **$0** | 131K | reasoning |
408
407
  | free/nemotron-nano-9b-v2 | **FREE** | **FREE** | **$0** | 131K | fast lightweight generalist |
409
408
  | free/nemotron-nano-12b-v2-vl | **FREE** | **FREE** | **$0** | 131K | vision (text + image) |
409
+ | qwen/qwen3.7-flash | $0.03 | $0.13 | $0.0001 | 1M | reasoning, tools (fastest Qwen tier) |
410
410
  | openai/gpt-5-nano | $0.05 | $0.40 | $0.0002 | 128K | tools |
411
+ | openai/gpt-5.6-luna-pro | $0.10 | $0.60 | $0.0004 | 1M | reasoning, vision, agentic, tools |
411
412
  | openai/gpt-4.1-nano | $0.10 | $0.40 | $0.0003 | 128K | tools |
412
413
  | google/gemini-2.5-flash-lite | $0.10 | $0.40 | $0.0003 | 1M | tools |
413
414
  | openai/gpt-4o-mini | $0.15 | $0.60 | $0.0004 | 128K | tools |
415
+ | tencent/hy3 | $0.132 | $0.528 | $0.0003 | 262K | reasoning (Tencent Hy3) |
414
416
  | xai/grok-4-fast | $0.20 | $0.50 | $0.0004 | 131K | tools |
417
+ | openai/gpt-5.6-luna | $0.20 | $1.20 | $0.0007 | 1M | vision, agentic, tools |
415
418
  | xai/grok-4-fast-reasoning | $0.20 | $0.50 | $0.0004 | 131K | reasoning, tools |
416
419
  | xai/grok-4-1-fast | $0.20 | $0.50 | $0.0004 | 131K | tools |
417
420
  | openai/gpt-5-mini | $0.25 | $2.00 | $0.0011 | 200K | tools |
418
- | deepseek/deepseek-chat | $0.20 | $0.40 | $0.0003 | 1M | tools (V4 Flash chat) |
419
- | deepseek/deepseek-reasoner | $0.20 | $0.40 | $0.0003 | 1M | reasoning, tools (V4 Flash thinking) |
421
+ | qwen/qwen3.7-plus | $0.32 | $1.28 | $0.0008 | 1M | reasoning, agentic, tools (balanced Qwen) |
422
+ | deepseek/deepseek-chat | $0.14 | $0.28 | $0.0002 | 1M | tools (V4 Flash chat) |
423
+ | deepseek/deepseek-reasoner | $0.14 | $0.28 | $0.0002 | 1M | reasoning, tools (V4 Flash thinking) |
420
424
  | deepseek/deepseek-v4-pro | $0.435 | $0.87 | $0.0007 | 1M | reasoning, agentic, tools (V4 flagship) |
421
- | zai/glm-5 | $0.60 | $1.92 | $0.0013 | 200K | tools |
425
+ | xiaomi/mimo-v2.5-pro | $0.435 | $0.87 | $0.0007 | 1M | reasoning (Xiaomi MiMo-V2.5 Pro) |
422
426
  | zai/glm-5-turbo | $1.20 | $4.00 | $0.0026 | 200K | tools |
423
427
  | minimax/minimax-m3 | $0.30 | $1.20 | $0.0008 | 1M | reasoning, agentic, tools |
424
428
  | minimax/minimax-m2.7 | $0.30 | $1.20 | $0.0008 | 205K | reasoning, agentic, tools |
425
429
  | minimax/minimax-m2.5 | $0.30 | $1.20 | $0.0008 | 205K | reasoning, agentic, tools |
426
430
  | google/gemini-2.5-flash | $0.30 | $2.50 | $0.0014 | 1M | vision, tools |
431
+ | google/gemini-3.5-flash-lite | $0.30 | $2.50 | $0.0014 | 1M | reasoning, tools (thinking built-in) |
427
432
  | openai/gpt-4.1-mini | $0.40 | $1.60 | $0.0010 | 128K | tools |
428
- | google/gemini-3.5-flash | $0.50 | $3.00 | $0.0018 | 1M | reasoning, vision, tools (thinking built-in) |
429
433
  | google/gemini-3-flash-preview | $0.50 | $3.00 | $0.0018 | 1M | vision |
430
434
  | moonshot/kimi-k2.5 | $0.60 | $3.00 | $0.0018 | 262K | reasoning, vision, agentic, tools |
431
435
  | moonshot/kimi-k2.7 | $0.95 | $4.00 | $0.0025 | 262K | reasoning, vision, agentic, tools |
@@ -436,7 +440,8 @@ No Surf account, no API key — settles directly to Surf's Base treasury in USDC
436
440
  | Model | Input $/M | Output $/M | ~$/request | Context | Features |
437
441
  | --------------------------- | --------: | ---------: | ---------: | ------- | ----------------------------------------- |
438
442
  | anthropic/claude-haiku-4.5 | $1.00 | $5.00 | $0.0030 | 200K | vision, agentic, tools |
439
- | openai/gpt-5.6-luna | $1.00 | $6.00 | $0.0035 | 1M | vision, agentic, tools |
443
+ | zai/glm-5 | $1.00 | $3.20 | $0.0021 | 200K | reasoning, tools |
444
+ | openai/gpt-5.6-terra-pro | $1.00 | $6.00 | $0.0035 | 1M | reasoning, vision, agentic, tools |
440
445
  | openai/o1-mini | $1.10 | $4.40 | $0.0028 | 128K | reasoning, tools |
441
446
  | openai/o3-mini | $1.10 | $4.40 | $0.0028 | 128K | reasoning, tools |
442
447
  | openai/o4-mini | $1.10 | $4.40 | $0.0028 | 128K | reasoning, tools |
@@ -445,6 +450,8 @@ No Surf account, no API key — settles directly to Surf's Base treasury in USDC
445
450
  | zai/glm-5.1 | $1.40 | $4.40 | $0.0029 | 200K | reasoning, tools (promo ended 2026-06-05) |
446
451
  | qwen/qwen3.7-max | $1.475 | $4.425 | $0.0030 | 1M | reasoning, agentic, tools (Qwen flagship) |
447
452
  | xai/grok-4.3 | $1.50 | $4.00 | $0.0028 | 1M | reasoning, vision, agentic, tools |
453
+ | google/gemini-3.6-flash | $1.50 | $7.50 | $0.0045 | 1M | reasoning, vision, tools (newest Flash) |
454
+ | google/gemini-3.5-flash | $1.50 | $9.00 | $0.0053 | 1M | reasoning, vision, tools (thinking) |
448
455
  | xai/grok-4.5 | $2.50 | $9.00 | $0.0058 | 500K | reasoning, vision, agentic, tools |
449
456
  | xai/grok-build-0.1 | $1.50 | $3.00 | $0.0023 | 256K | agentic coding, tools |
450
457
  | openai/gpt-5.2 | $1.75 | $14.00 | $0.0079 | 400K | reasoning, vision, agentic, tools |
@@ -457,7 +464,7 @@ No Surf account, no API key — settles directly to Surf's Base treasury in USDC
457
464
  | xai/grok-2-vision | $2.00 | $10.00 | $0.0060 | 131K | vision, tools |
458
465
  | openai/gpt-4o | $2.50 | $10.00 | $0.0063 | 128K | vision, agentic, tools |
459
466
  | openai/gpt-5.4 | $2.50 | $15.00 | $0.0088 | 400K | reasoning, vision, agentic, tools |
460
- | openai/gpt-5.6-terra | $2.50 | $15.00 | $0.0088 | 1M | reasoning, vision, agentic, tools |
467
+ | openai/gpt-5.6-terra | $2.00 | $12.00 | $0.0070 | 1M | reasoning, vision, agentic, tools |
461
468
 
462
469
  ### Premium Models ($0.01+/request)
463
470
 
@@ -468,6 +475,7 @@ No Surf account, no API key — settles directly to Surf's Base treasury in USDC
468
475
  | anthropic/claude-opus-5 | $5.00 | $25.00 | $0.0150 | 1M | reasoning, vision, agentic, tools |
469
476
  | anthropic/claude-opus-4.8 | $5.00 | $25.00 | $0.0150 | 1M | reasoning, vision, agentic, tools |
470
477
  | openai/gpt-5.6-sol | $5.00 | $30.00 | $0.0175 | 1M | reasoning, vision, agentic, tools |
478
+ | openai/gpt-5.6-sol-pro | $5.00 | $30.00 | $0.0175 | 1M | reasoning, vision, agentic, tools |
471
479
  | openai/gpt-5.5 | $5.00 | $30.00 | $0.0175 | 1M | reasoning, vision, agentic, tools |
472
480
  | openai/chat-latest | $5.00 | $30.00 | $0.0175 | 128K | vision, tools |
473
481
  | openai/o1 | $15.00 | $60.00 | $0.0375 | 200K | reasoning, tools |
@@ -475,7 +483,7 @@ No Surf account, no API key — settles directly to Surf's Base treasury in USDC
475
483
  | openai/gpt-5.4-pro | $30.00 | $180.00 | $0.1050 | 400K | reasoning, tools |
476
484
  | openai/gpt-5.5-pro | $30.00 | $180.00 | $0.1050 | 1M | reasoning, vision, tools |
477
485
 
478
- > **Free tier:** several NVIDIA-hosted models cost nothing — `/model free` smart-routes across them, or pick one directly (e.g., `/model nemotron-omni` for vision, `/model v4-flash` for 1M-context reasoning, `/model mistral-large` for the 675B flagship).
486
+ > **Free tier:** several NVIDIA-hosted models cost nothing — `/model free` smart-routes across them, or pick one directly (e.g., `/model nemotron-omni` for vision, `/model step-flash` for reasoning, `/model mistral-nemotron` for instruction following).
479
487
  > **Best value:** `gpt-5-nano` and `gemini-2.5-flash-lite` deliver strong results at ~$0.0003/request.
480
488
 
481
489
  ---
@@ -552,7 +560,7 @@ For basic usage, no configuration needed. For advanced options:
552
560
  Block specific models from being routed to. Useful if a model doesn't follow your agent instructions or you want to control costs.
553
561
 
554
562
  ```bash
555
- /exclude add free/deepseek-v4-flash # Block a free model (e.g. too slow for you)
563
+ /exclude add free/step-3.7-flash # Block a free model (e.g. not for your workload)
556
564
  /exclude add grok-4 # Aliases work — blocks all grok-4 variants
557
565
  /exclude add gpt-5.4 # Skip expensive models
558
566
  /exclude # Show current exclusions
@@ -646,7 +654,7 @@ npm test
646
654
 
647
655
  **The LLM router built for autonomous agents**
648
656
 
649
- You're here. <!-- br:models.chatVisible -->71<!-- /br:models.chatVisible --> models, local smart routing, x402 USDC payments — the only stack that lets agents operate independently.
657
+ You're here. <!-- br:models.chatVisible -->70<!-- /br:models.chatVisible --> models, local smart routing, x402 USDC payments — the only stack that lets agents operate independently.
650
658
 
651
659
  `curl -fsSL https://blockrun.ai/ClawRouter-update | bash`
652
660
 
@@ -657,7 +665,7 @@ You're here. <!-- br:models.chatVisible -->71<!-- /br:models.chatVisible --> mod
657
665
 
658
666
  **BlockRun for Claude Code**
659
667
 
660
- Run Claude Code with <!-- br:models.chatVisible -->71<!-- /br:models.chatVisible --> models, no rate limits, no Anthropic account, no phone verification. Pay per request with USDC — your wallet is your identity.
668
+ Run Claude Code with <!-- br:models.chatVisible -->70<!-- /br:models.chatVisible --> models, no rate limits, no Anthropic account, no phone verification. Pay per request with USDC — your wallet is your identity.
661
669
 
662
670
  `curl -fsSL https://blockrun.ai/brcc-install | bash`
663
671
 
@@ -670,7 +678,7 @@ Run Claude Code with <!-- br:models.chatVisible -->71<!-- /br:models.chatVisible
670
678
 
671
679
  **ClawRouter for NousResearch Hermes**
672
680
 
673
- Python plugin that wraps the ClawRouter proxy for `hermes-agent`. Same <!-- br:models.chatVisible -->71<!-- /br:models.chatVisible --> models, same x402 USDC payments on Base & Solana, native Hermes ergonomics.
681
+ Python plugin that wraps the ClawRouter proxy for `hermes-agent`. Same <!-- br:models.chatVisible -->70<!-- /br:models.chatVisible --> models, same x402 USDC payments on Base & Solana, native Hermes ergonomics.
674
682
 
675
683
  `pip install hermes-plugin-clawrouter`
676
684
 
@@ -734,7 +742,7 @@ ClawRouter works with any tool that makes OpenAI-compatible API calls — point
734
742
 
735
743
  ### Is ClawRouter free?
736
744
 
737
- ClawRouter itself is free and MIT licensed. You pay only for the LLM API calls routed through it — and several NVIDIA-hosted models (`deepseek-v4-flash`, `nemotron-3-nano-omni-30b-a3b-reasoning`, `mistral-nemotron`, `step-3.7-flash`, `nemotron-nano-9b-v2`, `nemotron-nano-12b-v2-vl`) are completely free. Use `/model free` to smart-route across them, or pick any by name.
745
+ ClawRouter itself is free and MIT licensed. You pay only for the LLM API calls routed through it — and several NVIDIA-hosted models (`nemotron-3-nano-omni-30b-a3b-reasoning`, `mistral-nemotron`, `step-3.7-flash`, `nemotron-nano-9b-v2`, `nemotron-nano-12b-v2-vl`) are completely free. Use `/model free` to smart-route across them, or pick any by name.
738
746
 
739
747
  ---
740
748
 
package/dist/cli.js CHANGED
@@ -36252,10 +36252,9 @@ ${value.slice(-(scanLimit - prefixLength))}`;
36252
36252
  fallback: [
36253
36253
  "free/gpt-oss-20b",
36254
36254
  // FREE — smaller, faster
36255
- "free/deepseek-v4-flash",
36256
- // FREE — 1M ctx; slow (~10 tok/s, 07-28 probe) but completes
36257
- // seed-oss-36b sat here as the free coder until it EOL'd 2026-08-03 (HTTP 410).
36258
- // gpt-oss-120b/20b already head this chain, so the rung is dropped, not retargeted.
36255
+ // deepseek-v4-flash and seed-oss-36b sat here until NVIDIA EOL'd them
36256
+ // (410; 2026-08-12 and 2026-08-03 respectively). gpt-oss-120b/20b already
36257
+ // head this chain, so the rungs are dropped, not retargeted.
36259
36258
  "google/gemini-3.1-flash-lite",
36260
36259
  // $0.25/$1.50 — newest flash-lite
36261
36260
  "openai/gpt-5.4-nano",
@@ -36564,7 +36563,6 @@ var init_top_models = __esm({
36564
36563
  "deepseek/deepseek-v4-pro",
36565
36564
  "deepseek/deepseek-chat",
36566
36565
  "deepseek/deepseek-reasoner",
36567
- "free/deepseek-v4-flash",
36568
36566
  "free/nemotron-3-nano-omni-30b-a3b-reasoning",
36569
36567
  "free/mistral-nemotron",
36570
36568
  "free/step-3.7-flash",
@@ -36764,6 +36762,14 @@ var init_models = __esm({
36764
36762
  "gpt-5.6-sol": "openai/gpt-5.6-sol",
36765
36763
  "gpt-5.6-terra": "openai/gpt-5.6-terra",
36766
36764
  "gpt-5.6-luna": "openai/gpt-5.6-luna",
36765
+ // Pro reasoning tiers (2026-08-03). Explicit pins only — the generic
36766
+ // shorthands above stay on standard Terra.
36767
+ "gpt-5.6-sol-pro": "openai/gpt-5.6-sol-pro",
36768
+ "gpt-5.6-terra-pro": "openai/gpt-5.6-terra-pro",
36769
+ "gpt-5.6-luna-pro": "openai/gpt-5.6-luna-pro",
36770
+ "sol-pro": "openai/gpt-5.6-sol-pro",
36771
+ "terra-pro": "openai/gpt-5.6-terra-pro",
36772
+ "luna-pro": "openai/gpt-5.6-luna-pro",
36767
36773
  "gpt-5.5": "openai/gpt-5.5",
36768
36774
  "gpt-5.5-pro": "openai/gpt-5.5-pro",
36769
36775
  // ChatGPT Instant. `chat-latest` is a rolling upstream id — pinning it means
@@ -36815,6 +36821,20 @@ var init_models = __esm({
36815
36821
  "qwen3.7-max": "qwen/qwen3.7-max",
36816
36822
  "qwen-3.7-max": "qwen/qwen3.7-max",
36817
36823
  "qwen3-7-max": "qwen/qwen3.7-max",
36824
+ // Plus/Flash tiers (2026-08-03) — explicit pins, same rule as Max.
36825
+ "qwen3.7-plus": "qwen/qwen3.7-plus",
36826
+ "qwen-3.7-plus": "qwen/qwen3.7-plus",
36827
+ "qwen3.7-flash": "qwen/qwen3.7-flash",
36828
+ "qwen-3.7-flash": "qwen/qwen3.7-flash",
36829
+ // Tencent + Xiaomi (2026-07-25) — each maker has exactly one model, so the
36830
+ // bare maker names are safe to bind.
36831
+ hy3: "tencent/hy3",
36832
+ tencent: "tencent/hy3",
36833
+ hunyuan: "tencent/hy3",
36834
+ mimo: "xiaomi/mimo-v2.5-pro",
36835
+ "mimo-v2.5-pro": "xiaomi/mimo-v2.5-pro",
36836
+ "mimo-v2.5": "xiaomi/mimo-v2.5-pro",
36837
+ xiaomi: "xiaomi/mimo-v2.5-pro",
36818
36838
  // Google
36819
36839
  // gemini-3-pro-preview delisted by Google 2026-06-06 — mirror the gateway
36820
36840
  // redirect to its successor so pinned callers land on 3.1-pro, not an error.
@@ -36830,7 +36850,10 @@ var init_models = __esm({
36830
36850
  flash: "google/gemini-2.5-flash",
36831
36851
  "gemini-3.1-pro-preview": "google/gemini-3.1-pro",
36832
36852
  "google/gemini-3.1-pro-preview": "google/gemini-3.1-pro",
36853
+ "gemini-3.6-flash": "google/gemini-3.6-flash",
36854
+ "gemini-3.6": "google/gemini-3.6-flash",
36833
36855
  "gemini-3.5-flash": "google/gemini-3.5-flash",
36856
+ "gemini-3.5-flash-lite": "google/gemini-3.5-flash-lite",
36834
36857
  "gemini-3.1-flash-lite": "google/gemini-3.1-flash-lite",
36835
36858
  "gemini-2.5-flash-lite": "google/gemini-2.5-flash-lite",
36836
36859
  // xAI — grok-4.3 is the public flagship since 2026-06-04 (grok-3 and the
@@ -36866,12 +36889,17 @@ var init_models = __esm({
36866
36889
  "gpt-20b": "free/gpt-oss-20b",
36867
36890
  "nvidia/gpt-oss-120b": "free/gpt-oss-120b",
36868
36891
  "nvidia/gpt-oss-20b": "free/gpt-oss-20b",
36869
- // deepseek family → v4-flash, matching blockrun's 2026-07-17 redirect map
36870
- // (v4-flash recovered in the live re-probe; v3.2/v4-pro stay dead upstream).
36871
- "nvidia/deepseek-v3.2": "free/deepseek-v4-flash",
36872
- "free/deepseek-v3.2": "free/deepseek-v4-flash",
36873
- "nvidia/deepseek-v4-pro": "free/deepseek-v4-flash",
36874
- "free/deepseek-v4-pro": "free/deepseek-v4-flash",
36892
+ // deepseek free family: v4-flash EOL'd 2026-08-12 (HTTP 410 from NVIDIA on both
36893
+ // probe passes; prod gate fired [ALERT][free-model-dead] kind=gone twice that
36894
+ // morning). The whole nvidia/deepseek-* family is now dead upstream — blockrun
36895
+ // hid flash and retargeted v3.2/v4-pro (whose redirects chained through flash)
36896
+ // straight to gpt-oss-120b. Ids naming v4-flash itself keep the real id (the
36897
+ // gateway redirects them); the v3.2/v4-pro ids follow blockrun's retarget
36898
+ // rather than chaining through a second dead model.
36899
+ "nvidia/deepseek-v3.2": "free/gpt-oss-120b",
36900
+ "free/deepseek-v3.2": "free/gpt-oss-120b",
36901
+ "nvidia/deepseek-v4-pro": "free/gpt-oss-120b",
36902
+ "free/deepseek-v4-pro": "free/gpt-oss-120b",
36875
36903
  "nvidia/deepseek-v4-flash": "free/deepseek-v4-flash",
36876
36904
  "nvidia/nemotron-3-nano-omni-30b-a3b-reasoning": "free/nemotron-3-nano-omni-30b-a3b-reasoning",
36877
36905
  // qwen3-coder-480b retired (NVIDIA EOL 2026-06-14). Its server-side redirect used
@@ -36913,13 +36941,16 @@ var init_models = __esm({
36913
36941
  "mistral-large-3-675b": "free/mistral-large-3-675b",
36914
36942
  "qwen3.5-122b": "free/qwen3.5-122b-a10b",
36915
36943
  "qwen3-122b": "free/qwen3.5-122b-a10b",
36916
- // Free model shorthand aliases (v4-flash recovered 2026-07-17 — live again)
36917
- "deepseek-free": "free/deepseek-v4-flash",
36918
- "deepseek-v4-pro": "free/deepseek-v4-flash",
36919
- // free shorthand → flash (pro still hung)
36944
+ // Free model shorthand aliases. v4-flash EOL'd 2026-08-12 — no free DeepSeek
36945
+ // is left anywhere, so the generic "a free deepseek" shorthand follows the
36946
+ // gateway's retarget (blockrun's /free-deepseek page points at gpt-oss-120b
36947
+ // too). Shorthands naming v4-flash itself stay on the real id — the gateway
36948
+ // redirects them, same treatment as seed-oss/mistral-large pins.
36949
+ "deepseek-free": "free/gpt-oss-120b",
36950
+ "deepseek-v4-pro": "free/gpt-oss-120b",
36951
+ // free shorthand; pro dead upstream (410)
36920
36952
  "deepseek-v4-flash": "free/deepseek-v4-flash",
36921
- "v4-pro": "free/deepseek-v4-flash",
36922
- // V4 Pro NVIDIA hung → flash
36953
+ "v4-pro": "free/gpt-oss-120b",
36923
36954
  "v4-flash": "free/deepseek-v4-flash",
36924
36955
  "mistral-free": "free/mistral-nemotron",
36925
36956
  // mistral-large-3-675b EOL'd 2026-07-28 → last live free Mistral (blockrun demoted its /free-mistral primary the same way)
@@ -36999,6 +37030,10 @@ var init_models = __esm({
36999
37030
  banana: "google/nano-banana",
37000
37031
  "banana-pro": "google/nano-banana-pro",
37001
37032
  "nano-banana-pro": "google/nano-banana-pro",
37033
+ // Nano Banana 2 (Gemini 3.1 Flash imagegen, 2026-08-03). Explicit pins —
37034
+ // bare `nano-banana`/`banana` stay on the original.
37035
+ "nano-banana-2": "google/nano-banana-2",
37036
+ "banana-2": "google/nano-banana-2",
37002
37037
  seedream: "bytedance/seedream-5-pro",
37003
37038
  "grok-imagine": "xai/grok-imagine-image",
37004
37039
  "grok-imagine-pro": "xai/grok-imagine-image-pro",
@@ -37015,7 +37050,12 @@ var init_models = __esm({
37015
37050
  "seedance-2-fast": "bytedance/seedance-2.0-fast",
37016
37051
  "seedance-2": "bytedance/seedance-2.0",
37017
37052
  "seedance-2.5": "bytedance/seedance-2.5",
37018
- "seedance-2-5": "bytedance/seedance-2.5"
37053
+ "seedance-2-5": "bytedance/seedance-2.5",
37054
+ // Seedance 2.0 Mini (2026-08-12): 720p + synced audio at half the flagship
37055
+ // rate. Note it is NOT cheaper than 1.5-pro, so bare `seedance` stays put.
37056
+ "seedance-2-mini": "bytedance/seedance-2.0-mini",
37057
+ "seedance-2.0-mini": "bytedance/seedance-2.0-mini",
37058
+ "seedance-mini": "bytedance/seedance-2.0-mini"
37019
37059
  };
37020
37060
  BLOCKRUN_MODELS = [
37021
37061
  // Smart routing meta-models — proxy replaces with actual model
@@ -37123,11 +37163,12 @@ var init_models = __esm({
37123
37163
  toolCalling: true
37124
37164
  },
37125
37165
  {
37166
+ // Terra/Luna repriced 2026-07-30 (OpenAI price cut, blockrun #326).
37126
37167
  id: "openai/gpt-5.6-terra",
37127
37168
  name: "GPT-5.6 Terra",
37128
37169
  version: "5.6",
37129
- inputPrice: 2.5,
37130
- outputPrice: 15,
37170
+ inputPrice: 2,
37171
+ outputPrice: 12,
37131
37172
  contextWindow: 105e4,
37132
37173
  maxOutput: 128e3,
37133
37174
  reasoning: true,
@@ -37139,10 +37180,52 @@ var init_models = __esm({
37139
37180
  id: "openai/gpt-5.6-luna",
37140
37181
  name: "GPT-5.6 Luna",
37141
37182
  version: "5.6",
37183
+ inputPrice: 0.2,
37184
+ outputPrice: 1.2,
37185
+ contextWindow: 105e4,
37186
+ maxOutput: 128e3,
37187
+ vision: true,
37188
+ agentic: true,
37189
+ toolCalling: true
37190
+ },
37191
+ // GPT-5.6 Pro tiers (blockrun #329, 2026-08-03): each base tier with pro
37192
+ // reasoning mode. Terra Pro lands at half the standard Terra rate; Luna Pro
37193
+ // is the budget deep-reasoning tier.
37194
+ {
37195
+ id: "openai/gpt-5.6-sol-pro",
37196
+ name: "GPT-5.6 Sol Pro",
37197
+ version: "5.6",
37198
+ inputPrice: 5,
37199
+ outputPrice: 30,
37200
+ contextWindow: 105e4,
37201
+ maxOutput: 128e3,
37202
+ reasoning: true,
37203
+ vision: true,
37204
+ agentic: true,
37205
+ toolCalling: true
37206
+ },
37207
+ {
37208
+ id: "openai/gpt-5.6-terra-pro",
37209
+ name: "GPT-5.6 Terra Pro",
37210
+ version: "5.6",
37142
37211
  inputPrice: 1,
37143
37212
  outputPrice: 6,
37144
37213
  contextWindow: 105e4,
37145
37214
  maxOutput: 128e3,
37215
+ reasoning: true,
37216
+ vision: true,
37217
+ agentic: true,
37218
+ toolCalling: true
37219
+ },
37220
+ {
37221
+ id: "openai/gpt-5.6-luna-pro",
37222
+ name: "GPT-5.6 Luna Pro",
37223
+ version: "5.6",
37224
+ inputPrice: 0.1,
37225
+ outputPrice: 0.6,
37226
+ contextWindow: 105e4,
37227
+ maxOutput: 128e3,
37228
+ reasoning: true,
37146
37229
  vision: true,
37147
37230
  agentic: true,
37148
37231
  toolCalling: true
@@ -37546,19 +37629,45 @@ var init_models = __esm({
37546
37629
  toolCalling: true
37547
37630
  },
37548
37631
  {
37549
- // Latest-generation Flash with built-in thinking mode (backend
37550
- // 2026-05-19) — frontier-class quality at Flash pricing.
37632
+ // Newest-generation Flash with built-in thinking mode (blockrun #329,
37633
+ // 2026-08-03). 17% cheaper output than 3.5 Flash.
37634
+ id: "google/gemini-3.6-flash",
37635
+ name: "Gemini 3.6 Flash",
37636
+ version: "3.6",
37637
+ inputPrice: 1.5,
37638
+ outputPrice: 7.5,
37639
+ contextWindow: 1048576,
37640
+ maxOutput: 65536,
37641
+ reasoning: true,
37642
+ vision: true,
37643
+ toolCalling: true
37644
+ },
37645
+ {
37646
+ // Repriced 0.5/3.0 → 1.5/9.0 (blockrun #304: it was billed at 1/3 of
37647
+ // Google's real rate).
37551
37648
  id: "google/gemini-3.5-flash",
37552
37649
  name: "Gemini 3.5 Flash",
37553
37650
  version: "3.5",
37554
- inputPrice: 0.5,
37555
- outputPrice: 3,
37651
+ inputPrice: 1.5,
37652
+ outputPrice: 9,
37556
37653
  contextWindow: 1048576,
37557
37654
  maxOutput: 65536,
37558
37655
  reasoning: true,
37559
37656
  vision: true,
37560
37657
  toolCalling: true
37561
37658
  },
37659
+ {
37660
+ // Ultra-fast lightweight tier with thinking mode (blockrun #329).
37661
+ id: "google/gemini-3.5-flash-lite",
37662
+ name: "Gemini 3.5 Flash Lite",
37663
+ version: "3.5",
37664
+ inputPrice: 0.3,
37665
+ outputPrice: 2.5,
37666
+ contextWindow: 1048576,
37667
+ maxOutput: 65536,
37668
+ reasoning: true,
37669
+ toolCalling: true
37670
+ },
37562
37671
  {
37563
37672
  id: "google/gemini-3-flash-preview",
37564
37673
  name: "Gemini 3 Flash Preview",
@@ -37615,12 +37724,14 @@ var init_models = __esm({
37615
37724
  },
37616
37725
  // DeepSeek — V4 family (2026-04-24). The legacy deepseek-chat/reasoner
37617
37726
  // aliases are served upstream as V4 Flash non-thinking / thinking modes.
37727
+ // Repriced 0.20/0.40 → 0.14/0.28 (blockrun #354: DeepSeek's published
37728
+ // deepseek-v4-flash rate; the old numbers were 1.43x the real rate).
37618
37729
  {
37619
37730
  id: "deepseek/deepseek-chat",
37620
37731
  name: "DeepSeek V4 Flash Chat",
37621
37732
  version: "4-flash",
37622
- inputPrice: 0.2,
37623
- outputPrice: 0.4,
37733
+ inputPrice: 0.14,
37734
+ outputPrice: 0.28,
37624
37735
  contextWindow: 1e6,
37625
37736
  maxOutput: 8192,
37626
37737
  toolCalling: true
@@ -37629,8 +37740,8 @@ var init_models = __esm({
37629
37740
  id: "deepseek/deepseek-reasoner",
37630
37741
  name: "DeepSeek V4 Flash Reasoner",
37631
37742
  version: "4-flash",
37632
- inputPrice: 0.2,
37633
- outputPrice: 0.4,
37743
+ inputPrice: 0.14,
37744
+ outputPrice: 0.28,
37634
37745
  contextWindow: 1e6,
37635
37746
  maxOutput: 8192,
37636
37747
  reasoning: true,
@@ -37709,6 +37820,32 @@ var init_models = __esm({
37709
37820
  agentic: true,
37710
37821
  toolCalling: true
37711
37822
  },
37823
+ // Qwen3.7 Plus/Flash (blockrun #329, 2026-08-03): the balanced and
37824
+ // latency tiers under Max. Plus genuinely caps output at 131072 while
37825
+ // Flash and Max cap at 65536 (endpoint-probed upstream).
37826
+ {
37827
+ id: "qwen/qwen3.7-plus",
37828
+ name: "Qwen3.7 Plus",
37829
+ version: "3.7-plus",
37830
+ inputPrice: 0.32,
37831
+ outputPrice: 1.28,
37832
+ contextWindow: 1e6,
37833
+ maxOutput: 131072,
37834
+ reasoning: true,
37835
+ agentic: true,
37836
+ toolCalling: true
37837
+ },
37838
+ {
37839
+ id: "qwen/qwen3.7-flash",
37840
+ name: "Qwen3.7 Flash",
37841
+ version: "3.7-flash",
37842
+ inputPrice: 0.03,
37843
+ outputPrice: 0.13,
37844
+ contextWindow: 1e6,
37845
+ maxOutput: 65536,
37846
+ reasoning: true,
37847
+ toolCalling: true
37848
+ },
37712
37849
  // Kimi K2.6 — superseded by K2.7 (2026-06-13), hidden on BlockRun but still routable.
37713
37850
  {
37714
37851
  id: "moonshot/kimi-k2.6",
@@ -37920,6 +38057,34 @@ var init_models = __esm({
37920
38057
  agentic: true,
37921
38058
  toolCalling: true
37922
38059
  },
38060
+ // Tencent + Xiaomi (blockrun 2026-07-25): the two largest real demand gaps
38061
+ // in the catalog — Hy3 held the #1 usage slot on the biggest public
38062
+ // aggregator for 19 days; MiMo ran ~22% weekly share in April. Both are
38063
+ // reasoning models resold via blockrun's OpenRouter pool. toolCalling
38064
+ // LIVE-VERIFIED 2026-08-12: both returned a structured tool_calls array
38065
+ // (name + valid JSON args, finish_reason "tool_calls") through the gateway.
38066
+ {
38067
+ id: "tencent/hy3",
38068
+ name: "Tencent Hy3",
38069
+ version: "hy3",
38070
+ inputPrice: 0.132,
38071
+ outputPrice: 0.528,
38072
+ contextWindow: 262144,
38073
+ maxOutput: 128e3,
38074
+ reasoning: true,
38075
+ toolCalling: true
38076
+ },
38077
+ {
38078
+ id: "xiaomi/mimo-v2.5-pro",
38079
+ name: "Xiaomi MiMo-V2.5 Pro",
38080
+ version: "v2.5-pro",
38081
+ inputPrice: 0.435,
38082
+ outputPrice: 0.87,
38083
+ contextWindow: 1048576,
38084
+ maxOutput: 131072,
38085
+ reasoning: true,
38086
+ toolCalling: true
38087
+ },
37923
38088
  // MiniMax
37924
38089
  {
37925
38090
  id: "minimax/minimax-m3",
@@ -37993,11 +38158,13 @@ var init_models = __esm({
37993
38158
  maxOutput: 16384
37994
38159
  },
37995
38160
  {
37996
- // V4 Flash: 284B / 13B active MoE, 1M context. ~5x faster than V4 Pro.
37997
- // Strong on chat/summarization (MMLU-Pro 86.2). Caveat: weaker factual
37998
- // recall (SimpleQA 34% vs Pro's 58%) — pick V4 Pro for fact-heavy loops.
37999
- // Recovered in blockrun's 2026-07-17 live re-probe (3.2s both passes) —
38000
- // un-hidden upstream and back in the advertised free 8.
38161
+ // V4 Flash: 284B / 13B active MoE, 1M context. EOL'd 2026-08-12 — NVIDIA
38162
+ // published 410 Gone ("has reached its end of life") on both probe passes
38163
+ // and blockrun's prod gate fired [ALERT][free-model-dead] kind=gone twice
38164
+ // that morning. The whole nvidia/deepseek-* family is dead upstream; there
38165
+ // is no free DeepSeek left anywhere. Blockrun hid it and redirects calls to
38166
+ // gpt-oss-120b. Entry kept so explicit pins stay routable; off the picker,
38167
+ // the FREE_MODELS cascade, and the router fallback chains.
38001
38168
  id: "free/deepseek-v4-flash",
38002
38169
  name: "[Free] DeepSeek V4 Flash",
38003
38170
  version: "v4-flash",
@@ -38081,7 +38248,8 @@ var init_models = __esm({
38081
38248
  // 2026-06-16: BlockRun's 2026-06-14 free-tier refresh (self-healing health gate
38082
38249
  // + probe-verified lineup, blockrun commit 5817ecd) added these live NVIDIA free
38083
38250
  // models. Status per blockrun's 2026-07-17 live re-probe: qwen3-coder-480b and
38084
- // glm-4.7 stay dead (server-redirected); deepseek-v4-flash recovered (see above).
38251
+ // glm-4.7 stay dead (server-redirected); deepseek-v4-flash recovered then
38252
+ // EOL'd for good 2026-08-12 (see above).
38085
38253
  {
38086
38254
  // Qwen3-Next 80B (A3B active MoE): 262K context. DIED in the 2026-07-17
38087
38255
  // re-probe (">60s / DEGRADED") — hidden upstream, gateway redirects pinned
@@ -38186,11 +38354,12 @@ var init_models = __esm({
38186
38354
  },
38187
38355
  {
38188
38356
  // Flat-rate launch promo ended 2026-06-06 — backend bills per-token now.
38357
+ // Repriced 0.60/1.92 → 1.00/3.20 (blockrun #354 correction).
38189
38358
  id: "zai/glm-5",
38190
38359
  name: "GLM-5",
38191
38360
  version: "5",
38192
- inputPrice: 0.6,
38193
- outputPrice: 1.92,
38361
+ inputPrice: 1,
38362
+ outputPrice: 3.2,
38194
38363
  contextWindow: 2e5,
38195
38364
  maxOutput: 128e3,
38196
38365
  reasoning: true,
@@ -92587,8 +92756,6 @@ var init_proxy = __esm({
92587
92756
  FREE_MODELS = /* @__PURE__ */ new Set([
92588
92757
  "free/gpt-oss-120b",
92589
92758
  "free/gpt-oss-20b",
92590
- "free/deepseek-v4-flash",
92591
- // 1M ctx; slow (~10 tok/s, 07-28 probe) but completes
92592
92759
  "free/mistral-nemotron",
92593
92760
  // strong instruction following
92594
92761
  "free/step-3.7-flash",
@@ -92685,6 +92852,8 @@ var init_proxy = __esm({
92685
92852
  sizes: { "1024x1024": 0.045, "2048x1024": 0.045, "2048x2048": 0.09 }
92686
92853
  },
92687
92854
  "google/nano-banana": { default: 0.05 },
92855
+ // Nano Banana 2 (Gemini 3.1 Flash imagegen, blockrun #329): $0.09/image at 1K.
92856
+ "google/nano-banana-2": { default: 0.09, sizes: { "1024x1024": 0.09 } },
92688
92857
  "google/nano-banana-pro": {
92689
92858
  default: 0.1,
92690
92859
  sizes: { "1024x1024": 0.1, "2048x2048": 0.1, "4096x4096": 0.15 }
@@ -92718,6 +92887,13 @@ var init_proxy = __esm({
92718
92887
  pricePerSecond: 0.227,
92719
92888
  defaultDurationSeconds: 5
92720
92889
  },
92890
+ // Seedance 2.0 Mini (blockrun #366/#368, 2026-08-12): 720p + synced audio at
92891
+ // half the flagship rate, 480p/720p only, 4–15s. blockrun signs the 3dp-floored
92892
+ // per-second value (0.079, not the raw 0.0797) — mirror the signed number.
92893
+ "bytedance/seedance-2.0-mini": {
92894
+ pricePerSecond: 0.079,
92895
+ defaultDurationSeconds: 5
92896
+ },
92721
92897
  // Seedance 2.5: 720p with synced audio, up to 30s. Not a replacement for 2.0
92722
92898
  // Pro — that is still the one for 1080p/4K. No OpenRouter failover exists for
92723
92899
  // 2.5, so a token360 outage surfaces as an error instead of quietly rendering
@@ -226066,6 +226242,7 @@ function buildVideoGenerationProvider() {
226066
226242
  "bytedance/seedance-1.5-pro",
226067
226243
  "bytedance/seedance-2.0-fast",
226068
226244
  "bytedance/seedance-2.0",
226245
+ "bytedance/seedance-2.0-mini",
226069
226246
  "bytedance/seedance-2.5"
226070
226247
  ],
226071
226248
  capabilities: {
@@ -226567,7 +226744,7 @@ var init_index = __esm({
226567
226744
  const parsed = parseGenArgs(ctx.args ?? "");
226568
226745
  if (!parsed.prompt) {
226569
226746
  return {
226570
- text: "Usage: `/cr-imagegen <prompt> [--model=<alias>] [--size=1024x1024] [--n=1]`\n\nAliases: `nano-banana` (default), `banana-pro`, `dalle`, `gpt-image`, `flux`, `grok-imagine`, `grok-imagine-pro`, `cogview`."
226747
+ text: "Usage: `/cr-imagegen <prompt> [--model=<alias>] [--size=1024x1024] [--n=1]`\n\nAliases: `nano-banana` (default), `banana-2` (Gemini 3.1 Flash quality), `banana-pro`, `dalle`, `gpt-image`, `flux`, `grok-imagine`, `grok-imagine-pro`, `cogview`."
226571
226748
  };
226572
226749
  }
226573
226750
  const model = resolveModelAlias(parsed.model ?? "nano-banana");
@@ -226619,7 +226796,7 @@ ${errText}`
226619
226796
  const parsed = parseGenArgs(ctx.args ?? "");
226620
226797
  if (!parsed.prompt) {
226621
226798
  return {
226622
- text: "Usage: `/videogen <prompt> [--model=<alias>] [--duration=5|8|10]`\n\nAliases: `seedance` (1.5-pro, default \u2014 cheapest), `seedance-2-fast`, `seedance-2`, `seedance-2.5` (720p + synced audio, long-form), `grok-video`.\n\n\u23F1\uFE0F Generation takes 60\u2013180 seconds. Payment settles only on success."
226799
+ text: "Usage: `/videogen <prompt> [--model=<alias>] [--duration=5|8|10]`\n\nAliases: `seedance` (1.5-pro, default \u2014 cheapest), `seedance-2-fast`, `seedance-2`, `seedance-2-mini` (720p + audio, half the flagship rate), `seedance-2.5` (720p + synced audio, long-form), `grok-video`.\n\n\u23F1\uFE0F Generation takes 60\u2013180 seconds. Payment settles only on success."
226623
226800
  };
226624
226801
  }
226625
226802
  const model = resolveModelAlias(parsed.model ?? "seedance");
package/dist/index.js CHANGED
@@ -92,7 +92,6 @@ var init_top_models = __esm({
92
92
  "deepseek/deepseek-v4-pro",
93
93
  "deepseek/deepseek-chat",
94
94
  "deepseek/deepseek-reasoner",
95
- "free/deepseek-v4-flash",
96
95
  "free/nemotron-3-nano-omni-30b-a3b-reasoning",
97
96
  "free/mistral-nemotron",
98
97
  "free/step-3.7-flash",
@@ -292,6 +291,14 @@ var init_models = __esm({
292
291
  "gpt-5.6-sol": "openai/gpt-5.6-sol",
293
292
  "gpt-5.6-terra": "openai/gpt-5.6-terra",
294
293
  "gpt-5.6-luna": "openai/gpt-5.6-luna",
294
+ // Pro reasoning tiers (2026-08-03). Explicit pins only — the generic
295
+ // shorthands above stay on standard Terra.
296
+ "gpt-5.6-sol-pro": "openai/gpt-5.6-sol-pro",
297
+ "gpt-5.6-terra-pro": "openai/gpt-5.6-terra-pro",
298
+ "gpt-5.6-luna-pro": "openai/gpt-5.6-luna-pro",
299
+ "sol-pro": "openai/gpt-5.6-sol-pro",
300
+ "terra-pro": "openai/gpt-5.6-terra-pro",
301
+ "luna-pro": "openai/gpt-5.6-luna-pro",
295
302
  "gpt-5.5": "openai/gpt-5.5",
296
303
  "gpt-5.5-pro": "openai/gpt-5.5-pro",
297
304
  // ChatGPT Instant. `chat-latest` is a rolling upstream id — pinning it means
@@ -343,6 +350,20 @@ var init_models = __esm({
343
350
  "qwen3.7-max": "qwen/qwen3.7-max",
344
351
  "qwen-3.7-max": "qwen/qwen3.7-max",
345
352
  "qwen3-7-max": "qwen/qwen3.7-max",
353
+ // Plus/Flash tiers (2026-08-03) — explicit pins, same rule as Max.
354
+ "qwen3.7-plus": "qwen/qwen3.7-plus",
355
+ "qwen-3.7-plus": "qwen/qwen3.7-plus",
356
+ "qwen3.7-flash": "qwen/qwen3.7-flash",
357
+ "qwen-3.7-flash": "qwen/qwen3.7-flash",
358
+ // Tencent + Xiaomi (2026-07-25) — each maker has exactly one model, so the
359
+ // bare maker names are safe to bind.
360
+ hy3: "tencent/hy3",
361
+ tencent: "tencent/hy3",
362
+ hunyuan: "tencent/hy3",
363
+ mimo: "xiaomi/mimo-v2.5-pro",
364
+ "mimo-v2.5-pro": "xiaomi/mimo-v2.5-pro",
365
+ "mimo-v2.5": "xiaomi/mimo-v2.5-pro",
366
+ xiaomi: "xiaomi/mimo-v2.5-pro",
346
367
  // Google
347
368
  // gemini-3-pro-preview delisted by Google 2026-06-06 — mirror the gateway
348
369
  // redirect to its successor so pinned callers land on 3.1-pro, not an error.
@@ -358,7 +379,10 @@ var init_models = __esm({
358
379
  flash: "google/gemini-2.5-flash",
359
380
  "gemini-3.1-pro-preview": "google/gemini-3.1-pro",
360
381
  "google/gemini-3.1-pro-preview": "google/gemini-3.1-pro",
382
+ "gemini-3.6-flash": "google/gemini-3.6-flash",
383
+ "gemini-3.6": "google/gemini-3.6-flash",
361
384
  "gemini-3.5-flash": "google/gemini-3.5-flash",
385
+ "gemini-3.5-flash-lite": "google/gemini-3.5-flash-lite",
362
386
  "gemini-3.1-flash-lite": "google/gemini-3.1-flash-lite",
363
387
  "gemini-2.5-flash-lite": "google/gemini-2.5-flash-lite",
364
388
  // xAI — grok-4.3 is the public flagship since 2026-06-04 (grok-3 and the
@@ -394,12 +418,17 @@ var init_models = __esm({
394
418
  "gpt-20b": "free/gpt-oss-20b",
395
419
  "nvidia/gpt-oss-120b": "free/gpt-oss-120b",
396
420
  "nvidia/gpt-oss-20b": "free/gpt-oss-20b",
397
- // deepseek family → v4-flash, matching blockrun's 2026-07-17 redirect map
398
- // (v4-flash recovered in the live re-probe; v3.2/v4-pro stay dead upstream).
399
- "nvidia/deepseek-v3.2": "free/deepseek-v4-flash",
400
- "free/deepseek-v3.2": "free/deepseek-v4-flash",
401
- "nvidia/deepseek-v4-pro": "free/deepseek-v4-flash",
402
- "free/deepseek-v4-pro": "free/deepseek-v4-flash",
421
+ // deepseek free family: v4-flash EOL'd 2026-08-12 (HTTP 410 from NVIDIA on both
422
+ // probe passes; prod gate fired [ALERT][free-model-dead] kind=gone twice that
423
+ // morning). The whole nvidia/deepseek-* family is now dead upstream — blockrun
424
+ // hid flash and retargeted v3.2/v4-pro (whose redirects chained through flash)
425
+ // straight to gpt-oss-120b. Ids naming v4-flash itself keep the real id (the
426
+ // gateway redirects them); the v3.2/v4-pro ids follow blockrun's retarget
427
+ // rather than chaining through a second dead model.
428
+ "nvidia/deepseek-v3.2": "free/gpt-oss-120b",
429
+ "free/deepseek-v3.2": "free/gpt-oss-120b",
430
+ "nvidia/deepseek-v4-pro": "free/gpt-oss-120b",
431
+ "free/deepseek-v4-pro": "free/gpt-oss-120b",
403
432
  "nvidia/deepseek-v4-flash": "free/deepseek-v4-flash",
404
433
  "nvidia/nemotron-3-nano-omni-30b-a3b-reasoning": "free/nemotron-3-nano-omni-30b-a3b-reasoning",
405
434
  // qwen3-coder-480b retired (NVIDIA EOL 2026-06-14). Its server-side redirect used
@@ -441,13 +470,16 @@ var init_models = __esm({
441
470
  "mistral-large-3-675b": "free/mistral-large-3-675b",
442
471
  "qwen3.5-122b": "free/qwen3.5-122b-a10b",
443
472
  "qwen3-122b": "free/qwen3.5-122b-a10b",
444
- // Free model shorthand aliases (v4-flash recovered 2026-07-17 — live again)
445
- "deepseek-free": "free/deepseek-v4-flash",
446
- "deepseek-v4-pro": "free/deepseek-v4-flash",
447
- // free shorthand → flash (pro still hung)
473
+ // Free model shorthand aliases. v4-flash EOL'd 2026-08-12 — no free DeepSeek
474
+ // is left anywhere, so the generic "a free deepseek" shorthand follows the
475
+ // gateway's retarget (blockrun's /free-deepseek page points at gpt-oss-120b
476
+ // too). Shorthands naming v4-flash itself stay on the real id — the gateway
477
+ // redirects them, same treatment as seed-oss/mistral-large pins.
478
+ "deepseek-free": "free/gpt-oss-120b",
479
+ "deepseek-v4-pro": "free/gpt-oss-120b",
480
+ // free shorthand; pro dead upstream (410)
448
481
  "deepseek-v4-flash": "free/deepseek-v4-flash",
449
- "v4-pro": "free/deepseek-v4-flash",
450
- // V4 Pro NVIDIA hung → flash
482
+ "v4-pro": "free/gpt-oss-120b",
451
483
  "v4-flash": "free/deepseek-v4-flash",
452
484
  "mistral-free": "free/mistral-nemotron",
453
485
  // mistral-large-3-675b EOL'd 2026-07-28 → last live free Mistral (blockrun demoted its /free-mistral primary the same way)
@@ -527,6 +559,10 @@ var init_models = __esm({
527
559
  banana: "google/nano-banana",
528
560
  "banana-pro": "google/nano-banana-pro",
529
561
  "nano-banana-pro": "google/nano-banana-pro",
562
+ // Nano Banana 2 (Gemini 3.1 Flash imagegen, 2026-08-03). Explicit pins —
563
+ // bare `nano-banana`/`banana` stay on the original.
564
+ "nano-banana-2": "google/nano-banana-2",
565
+ "banana-2": "google/nano-banana-2",
530
566
  seedream: "bytedance/seedream-5-pro",
531
567
  "grok-imagine": "xai/grok-imagine-image",
532
568
  "grok-imagine-pro": "xai/grok-imagine-image-pro",
@@ -543,7 +579,12 @@ var init_models = __esm({
543
579
  "seedance-2-fast": "bytedance/seedance-2.0-fast",
544
580
  "seedance-2": "bytedance/seedance-2.0",
545
581
  "seedance-2.5": "bytedance/seedance-2.5",
546
- "seedance-2-5": "bytedance/seedance-2.5"
582
+ "seedance-2-5": "bytedance/seedance-2.5",
583
+ // Seedance 2.0 Mini (2026-08-12): 720p + synced audio at half the flagship
584
+ // rate. Note it is NOT cheaper than 1.5-pro, so bare `seedance` stays put.
585
+ "seedance-2-mini": "bytedance/seedance-2.0-mini",
586
+ "seedance-2.0-mini": "bytedance/seedance-2.0-mini",
587
+ "seedance-mini": "bytedance/seedance-2.0-mini"
547
588
  };
548
589
  BLOCKRUN_MODELS = [
549
590
  // Smart routing meta-models — proxy replaces with actual model
@@ -651,11 +692,12 @@ var init_models = __esm({
651
692
  toolCalling: true
652
693
  },
653
694
  {
695
+ // Terra/Luna repriced 2026-07-30 (OpenAI price cut, blockrun #326).
654
696
  id: "openai/gpt-5.6-terra",
655
697
  name: "GPT-5.6 Terra",
656
698
  version: "5.6",
657
- inputPrice: 2.5,
658
- outputPrice: 15,
699
+ inputPrice: 2,
700
+ outputPrice: 12,
659
701
  contextWindow: 105e4,
660
702
  maxOutput: 128e3,
661
703
  reasoning: true,
@@ -667,10 +709,52 @@ var init_models = __esm({
667
709
  id: "openai/gpt-5.6-luna",
668
710
  name: "GPT-5.6 Luna",
669
711
  version: "5.6",
712
+ inputPrice: 0.2,
713
+ outputPrice: 1.2,
714
+ contextWindow: 105e4,
715
+ maxOutput: 128e3,
716
+ vision: true,
717
+ agentic: true,
718
+ toolCalling: true
719
+ },
720
+ // GPT-5.6 Pro tiers (blockrun #329, 2026-08-03): each base tier with pro
721
+ // reasoning mode. Terra Pro lands at half the standard Terra rate; Luna Pro
722
+ // is the budget deep-reasoning tier.
723
+ {
724
+ id: "openai/gpt-5.6-sol-pro",
725
+ name: "GPT-5.6 Sol Pro",
726
+ version: "5.6",
727
+ inputPrice: 5,
728
+ outputPrice: 30,
729
+ contextWindow: 105e4,
730
+ maxOutput: 128e3,
731
+ reasoning: true,
732
+ vision: true,
733
+ agentic: true,
734
+ toolCalling: true
735
+ },
736
+ {
737
+ id: "openai/gpt-5.6-terra-pro",
738
+ name: "GPT-5.6 Terra Pro",
739
+ version: "5.6",
670
740
  inputPrice: 1,
671
741
  outputPrice: 6,
672
742
  contextWindow: 105e4,
673
743
  maxOutput: 128e3,
744
+ reasoning: true,
745
+ vision: true,
746
+ agentic: true,
747
+ toolCalling: true
748
+ },
749
+ {
750
+ id: "openai/gpt-5.6-luna-pro",
751
+ name: "GPT-5.6 Luna Pro",
752
+ version: "5.6",
753
+ inputPrice: 0.1,
754
+ outputPrice: 0.6,
755
+ contextWindow: 105e4,
756
+ maxOutput: 128e3,
757
+ reasoning: true,
674
758
  vision: true,
675
759
  agentic: true,
676
760
  toolCalling: true
@@ -1074,19 +1158,45 @@ var init_models = __esm({
1074
1158
  toolCalling: true
1075
1159
  },
1076
1160
  {
1077
- // Latest-generation Flash with built-in thinking mode (backend
1078
- // 2026-05-19) — frontier-class quality at Flash pricing.
1161
+ // Newest-generation Flash with built-in thinking mode (blockrun #329,
1162
+ // 2026-08-03). 17% cheaper output than 3.5 Flash.
1163
+ id: "google/gemini-3.6-flash",
1164
+ name: "Gemini 3.6 Flash",
1165
+ version: "3.6",
1166
+ inputPrice: 1.5,
1167
+ outputPrice: 7.5,
1168
+ contextWindow: 1048576,
1169
+ maxOutput: 65536,
1170
+ reasoning: true,
1171
+ vision: true,
1172
+ toolCalling: true
1173
+ },
1174
+ {
1175
+ // Repriced 0.5/3.0 → 1.5/9.0 (blockrun #304: it was billed at 1/3 of
1176
+ // Google's real rate).
1079
1177
  id: "google/gemini-3.5-flash",
1080
1178
  name: "Gemini 3.5 Flash",
1081
1179
  version: "3.5",
1082
- inputPrice: 0.5,
1083
- outputPrice: 3,
1180
+ inputPrice: 1.5,
1181
+ outputPrice: 9,
1084
1182
  contextWindow: 1048576,
1085
1183
  maxOutput: 65536,
1086
1184
  reasoning: true,
1087
1185
  vision: true,
1088
1186
  toolCalling: true
1089
1187
  },
1188
+ {
1189
+ // Ultra-fast lightweight tier with thinking mode (blockrun #329).
1190
+ id: "google/gemini-3.5-flash-lite",
1191
+ name: "Gemini 3.5 Flash Lite",
1192
+ version: "3.5",
1193
+ inputPrice: 0.3,
1194
+ outputPrice: 2.5,
1195
+ contextWindow: 1048576,
1196
+ maxOutput: 65536,
1197
+ reasoning: true,
1198
+ toolCalling: true
1199
+ },
1090
1200
  {
1091
1201
  id: "google/gemini-3-flash-preview",
1092
1202
  name: "Gemini 3 Flash Preview",
@@ -1143,12 +1253,14 @@ var init_models = __esm({
1143
1253
  },
1144
1254
  // DeepSeek — V4 family (2026-04-24). The legacy deepseek-chat/reasoner
1145
1255
  // aliases are served upstream as V4 Flash non-thinking / thinking modes.
1256
+ // Repriced 0.20/0.40 → 0.14/0.28 (blockrun #354: DeepSeek's published
1257
+ // deepseek-v4-flash rate; the old numbers were 1.43x the real rate).
1146
1258
  {
1147
1259
  id: "deepseek/deepseek-chat",
1148
1260
  name: "DeepSeek V4 Flash Chat",
1149
1261
  version: "4-flash",
1150
- inputPrice: 0.2,
1151
- outputPrice: 0.4,
1262
+ inputPrice: 0.14,
1263
+ outputPrice: 0.28,
1152
1264
  contextWindow: 1e6,
1153
1265
  maxOutput: 8192,
1154
1266
  toolCalling: true
@@ -1157,8 +1269,8 @@ var init_models = __esm({
1157
1269
  id: "deepseek/deepseek-reasoner",
1158
1270
  name: "DeepSeek V4 Flash Reasoner",
1159
1271
  version: "4-flash",
1160
- inputPrice: 0.2,
1161
- outputPrice: 0.4,
1272
+ inputPrice: 0.14,
1273
+ outputPrice: 0.28,
1162
1274
  contextWindow: 1e6,
1163
1275
  maxOutput: 8192,
1164
1276
  reasoning: true,
@@ -1237,6 +1349,32 @@ var init_models = __esm({
1237
1349
  agentic: true,
1238
1350
  toolCalling: true
1239
1351
  },
1352
+ // Qwen3.7 Plus/Flash (blockrun #329, 2026-08-03): the balanced and
1353
+ // latency tiers under Max. Plus genuinely caps output at 131072 while
1354
+ // Flash and Max cap at 65536 (endpoint-probed upstream).
1355
+ {
1356
+ id: "qwen/qwen3.7-plus",
1357
+ name: "Qwen3.7 Plus",
1358
+ version: "3.7-plus",
1359
+ inputPrice: 0.32,
1360
+ outputPrice: 1.28,
1361
+ contextWindow: 1e6,
1362
+ maxOutput: 131072,
1363
+ reasoning: true,
1364
+ agentic: true,
1365
+ toolCalling: true
1366
+ },
1367
+ {
1368
+ id: "qwen/qwen3.7-flash",
1369
+ name: "Qwen3.7 Flash",
1370
+ version: "3.7-flash",
1371
+ inputPrice: 0.03,
1372
+ outputPrice: 0.13,
1373
+ contextWindow: 1e6,
1374
+ maxOutput: 65536,
1375
+ reasoning: true,
1376
+ toolCalling: true
1377
+ },
1240
1378
  // Kimi K2.6 — superseded by K2.7 (2026-06-13), hidden on BlockRun but still routable.
1241
1379
  {
1242
1380
  id: "moonshot/kimi-k2.6",
@@ -1448,6 +1586,34 @@ var init_models = __esm({
1448
1586
  agentic: true,
1449
1587
  toolCalling: true
1450
1588
  },
1589
+ // Tencent + Xiaomi (blockrun 2026-07-25): the two largest real demand gaps
1590
+ // in the catalog — Hy3 held the #1 usage slot on the biggest public
1591
+ // aggregator for 19 days; MiMo ran ~22% weekly share in April. Both are
1592
+ // reasoning models resold via blockrun's OpenRouter pool. toolCalling
1593
+ // LIVE-VERIFIED 2026-08-12: both returned a structured tool_calls array
1594
+ // (name + valid JSON args, finish_reason "tool_calls") through the gateway.
1595
+ {
1596
+ id: "tencent/hy3",
1597
+ name: "Tencent Hy3",
1598
+ version: "hy3",
1599
+ inputPrice: 0.132,
1600
+ outputPrice: 0.528,
1601
+ contextWindow: 262144,
1602
+ maxOutput: 128e3,
1603
+ reasoning: true,
1604
+ toolCalling: true
1605
+ },
1606
+ {
1607
+ id: "xiaomi/mimo-v2.5-pro",
1608
+ name: "Xiaomi MiMo-V2.5 Pro",
1609
+ version: "v2.5-pro",
1610
+ inputPrice: 0.435,
1611
+ outputPrice: 0.87,
1612
+ contextWindow: 1048576,
1613
+ maxOutput: 131072,
1614
+ reasoning: true,
1615
+ toolCalling: true
1616
+ },
1451
1617
  // MiniMax
1452
1618
  {
1453
1619
  id: "minimax/minimax-m3",
@@ -1521,11 +1687,13 @@ var init_models = __esm({
1521
1687
  maxOutput: 16384
1522
1688
  },
1523
1689
  {
1524
- // V4 Flash: 284B / 13B active MoE, 1M context. ~5x faster than V4 Pro.
1525
- // Strong on chat/summarization (MMLU-Pro 86.2). Caveat: weaker factual
1526
- // recall (SimpleQA 34% vs Pro's 58%) — pick V4 Pro for fact-heavy loops.
1527
- // Recovered in blockrun's 2026-07-17 live re-probe (3.2s both passes) —
1528
- // un-hidden upstream and back in the advertised free 8.
1690
+ // V4 Flash: 284B / 13B active MoE, 1M context. EOL'd 2026-08-12 — NVIDIA
1691
+ // published 410 Gone ("has reached its end of life") on both probe passes
1692
+ // and blockrun's prod gate fired [ALERT][free-model-dead] kind=gone twice
1693
+ // that morning. The whole nvidia/deepseek-* family is dead upstream; there
1694
+ // is no free DeepSeek left anywhere. Blockrun hid it and redirects calls to
1695
+ // gpt-oss-120b. Entry kept so explicit pins stay routable; off the picker,
1696
+ // the FREE_MODELS cascade, and the router fallback chains.
1529
1697
  id: "free/deepseek-v4-flash",
1530
1698
  name: "[Free] DeepSeek V4 Flash",
1531
1699
  version: "v4-flash",
@@ -1609,7 +1777,8 @@ var init_models = __esm({
1609
1777
  // 2026-06-16: BlockRun's 2026-06-14 free-tier refresh (self-healing health gate
1610
1778
  // + probe-verified lineup, blockrun commit 5817ecd) added these live NVIDIA free
1611
1779
  // models. Status per blockrun's 2026-07-17 live re-probe: qwen3-coder-480b and
1612
- // glm-4.7 stay dead (server-redirected); deepseek-v4-flash recovered (see above).
1780
+ // glm-4.7 stay dead (server-redirected); deepseek-v4-flash recovered then
1781
+ // EOL'd for good 2026-08-12 (see above).
1613
1782
  {
1614
1783
  // Qwen3-Next 80B (A3B active MoE): 262K context. DIED in the 2026-07-17
1615
1784
  // re-probe (">60s / DEGRADED") — hidden upstream, gateway redirects pinned
@@ -1714,11 +1883,12 @@ var init_models = __esm({
1714
1883
  },
1715
1884
  {
1716
1885
  // Flat-rate launch promo ended 2026-06-06 — backend bills per-token now.
1886
+ // Repriced 0.60/1.92 → 1.00/3.20 (blockrun #354 correction).
1717
1887
  id: "zai/glm-5",
1718
1888
  name: "GLM-5",
1719
1889
  version: "5",
1720
- inputPrice: 0.6,
1721
- outputPrice: 1.92,
1890
+ inputPrice: 1,
1891
+ outputPrice: 3.2,
1722
1892
  contextWindow: 2e5,
1723
1893
  maxOutput: 128e3,
1724
1894
  reasoning: true,
@@ -37873,10 +38043,9 @@ ${value.slice(-(scanLimit - prefixLength))}`;
37873
38043
  fallback: [
37874
38044
  "free/gpt-oss-20b",
37875
38045
  // FREE — smaller, faster
37876
- "free/deepseek-v4-flash",
37877
- // FREE — 1M ctx; slow (~10 tok/s, 07-28 probe) but completes
37878
- // seed-oss-36b sat here as the free coder until it EOL'd 2026-08-03 (HTTP 410).
37879
- // gpt-oss-120b/20b already head this chain, so the rung is dropped, not retargeted.
38046
+ // deepseek-v4-flash and seed-oss-36b sat here until NVIDIA EOL'd them
38047
+ // (410; 2026-08-12 and 2026-08-03 respectively). gpt-oss-120b/20b already
38048
+ // head this chain, so the rungs are dropped, not retargeted.
37880
38049
  "google/gemini-3.1-flash-lite",
37881
38050
  // $0.25/$1.50 — newest flash-lite
37882
38051
  "openai/gpt-5.4-nano",
@@ -92407,8 +92576,6 @@ var init_proxy = __esm({
92407
92576
  FREE_MODELS = /* @__PURE__ */ new Set([
92408
92577
  "free/gpt-oss-120b",
92409
92578
  "free/gpt-oss-20b",
92410
- "free/deepseek-v4-flash",
92411
- // 1M ctx; slow (~10 tok/s, 07-28 probe) but completes
92412
92579
  "free/mistral-nemotron",
92413
92580
  // strong instruction following
92414
92581
  "free/step-3.7-flash",
@@ -92505,6 +92672,8 @@ var init_proxy = __esm({
92505
92672
  sizes: { "1024x1024": 0.045, "2048x1024": 0.045, "2048x2048": 0.09 }
92506
92673
  },
92507
92674
  "google/nano-banana": { default: 0.05 },
92675
+ // Nano Banana 2 (Gemini 3.1 Flash imagegen, blockrun #329): $0.09/image at 1K.
92676
+ "google/nano-banana-2": { default: 0.09, sizes: { "1024x1024": 0.09 } },
92508
92677
  "google/nano-banana-pro": {
92509
92678
  default: 0.1,
92510
92679
  sizes: { "1024x1024": 0.1, "2048x2048": 0.1, "4096x4096": 0.15 }
@@ -92538,6 +92707,13 @@ var init_proxy = __esm({
92538
92707
  pricePerSecond: 0.227,
92539
92708
  defaultDurationSeconds: 5
92540
92709
  },
92710
+ // Seedance 2.0 Mini (blockrun #366/#368, 2026-08-12): 720p + synced audio at
92711
+ // half the flagship rate, 480p/720p only, 4–15s. blockrun signs the 3dp-floored
92712
+ // per-second value (0.079, not the raw 0.0797) — mirror the signed number.
92713
+ "bytedance/seedance-2.0-mini": {
92714
+ pricePerSecond: 0.079,
92715
+ defaultDurationSeconds: 5
92716
+ },
92541
92717
  // Seedance 2.5: 720p with synced audio, up to 30s. Not a replacement for 2.0
92542
92718
  // Pro — that is still the one for 1080p/4K. No OpenRouter failover exists for
92543
92719
  // 2.5, so a token360 outage surfaces as an error instead of quietly rendering
@@ -225819,6 +225995,7 @@ function buildVideoGenerationProvider() {
225819
225995
  "bytedance/seedance-1.5-pro",
225820
225996
  "bytedance/seedance-2.0-fast",
225821
225997
  "bytedance/seedance-2.0",
225998
+ "bytedance/seedance-2.0-mini",
225822
225999
  "bytedance/seedance-2.5"
225823
226000
  ],
225824
226001
  capabilities: {
@@ -226319,7 +226496,7 @@ var init_index = __esm({
226319
226496
  const parsed = parseGenArgs(ctx.args ?? "");
226320
226497
  if (!parsed.prompt) {
226321
226498
  return {
226322
- text: "Usage: `/cr-imagegen <prompt> [--model=<alias>] [--size=1024x1024] [--n=1]`\n\nAliases: `nano-banana` (default), `banana-pro`, `dalle`, `gpt-image`, `flux`, `grok-imagine`, `grok-imagine-pro`, `cogview`."
226499
+ text: "Usage: `/cr-imagegen <prompt> [--model=<alias>] [--size=1024x1024] [--n=1]`\n\nAliases: `nano-banana` (default), `banana-2` (Gemini 3.1 Flash quality), `banana-pro`, `dalle`, `gpt-image`, `flux`, `grok-imagine`, `grok-imagine-pro`, `cogview`."
226323
226500
  };
226324
226501
  }
226325
226502
  const model = resolveModelAlias(parsed.model ?? "nano-banana");
@@ -226371,7 +226548,7 @@ ${errText}`
226371
226548
  const parsed = parseGenArgs(ctx.args ?? "");
226372
226549
  if (!parsed.prompt) {
226373
226550
  return {
226374
- text: "Usage: `/videogen <prompt> [--model=<alias>] [--duration=5|8|10]`\n\nAliases: `seedance` (1.5-pro, default \u2014 cheapest), `seedance-2-fast`, `seedance-2`, `seedance-2.5` (720p + synced audio, long-form), `grok-video`.\n\n\u23F1\uFE0F Generation takes 60\u2013180 seconds. Payment settles only on success."
226551
+ text: "Usage: `/videogen <prompt> [--model=<alias>] [--duration=5|8|10]`\n\nAliases: `seedance` (1.5-pro, default \u2014 cheapest), `seedance-2-fast`, `seedance-2`, `seedance-2-mini` (720p + audio, half the flagship rate), `seedance-2.5` (720p + synced audio, long-form), `grok-video`.\n\n\u23F1\uFE0F Generation takes 60\u2013180 seconds. Payment settles only on success."
226375
226552
  };
226376
226553
  }
226377
226554
  const model = resolveModelAlias(parsed.model ?? "seedance");
@@ -3008,10 +3008,9 @@ var DEFAULT_ROUTING_CONFIG = {
3008
3008
  fallback: [
3009
3009
  "free/gpt-oss-20b",
3010
3010
  // FREE — smaller, faster
3011
- "free/deepseek-v4-flash",
3012
- // FREE — 1M ctx; slow (~10 tok/s, 07-28 probe) but completes
3013
- // seed-oss-36b sat here as the free coder until it EOL'd 2026-08-03 (HTTP 410).
3014
- // gpt-oss-120b/20b already head this chain, so the rung is dropped, not retargeted.
3011
+ // deepseek-v4-flash and seed-oss-36b sat here until NVIDIA EOL'd them
3012
+ // (410; 2026-08-12 and 2026-08-03 respectively). gpt-oss-120b/20b already
3013
+ // head this chain, so the rungs are dropped, not retargeted.
3015
3014
  "google/gemini-3.1-flash-lite",
3016
3015
  // $0.25/$1.50 — newest flash-lite
3017
3016
  "openai/gpt-5.4-nano",
@@ -50,7 +50,7 @@ This is where you're paying for real value:
50
50
 
51
51
  ## The Solution: ClawRouter
52
52
 
53
- [ClawRouter](https://github.com/BlockRunAI/ClawRouter) is an open-source local proxy that sits between your app and <!-- br:models.chatVisible -->71<!-- /br:models.chatVisible --> AI models. It saves you money in three ways: **smart routing**, **token optimization**, and **response caching**.
53
+ [ClawRouter](https://github.com/BlockRunAI/ClawRouter) is an open-source local proxy that sits between your app and <!-- br:models.chatVisible -->70<!-- /br:models.chatVisible --> AI models. It saves you money in three ways: **smart routing**, **token optimization**, and **response caching**.
54
54
 
55
55
  ```
56
56
  ┌─────────────┐ ┌──────────────────────────────┐ ┌──────────────────┐
@@ -31,7 +31,7 @@ This is exactly the problem [ClawRouter](https://github.com/BlockRunAI/ClawRoute
31
31
 
32
32
  ## ClawRouter: Smart Routing for Agents
33
33
 
34
- ClawRouter is an open-source local proxy that sits between your agent and <!-- br:models.chatVisible -->71<!-- /br:models.chatVisible --> LLM models across 9 providers. It analyzes every request across 15 dimensions and routes it to the cheapest model that can handle it — in under 1ms, entirely locally.
34
+ ClawRouter is an open-source local proxy that sits between your agent and <!-- br:models.chatVisible -->70<!-- /br:models.chatVisible --> LLM models across 9 providers. It analyzes every request across 15 dimensions and routes it to the cheapest model that can handle it — in under 1ms, entirely locally.
35
35
 
36
36
  ```
37
37
  Your Agent → ClawRouter (localhost:8402) → Best model for the job
@@ -74,7 +74,7 @@ Then point your agent at `http://localhost:8402/v1/` with any OpenAI-compatible
74
74
 
75
75
  - **No API keys to manage** — wallet-based cryptographic auth
76
76
  - **No subscriptions** — pay per request in USDC (Base or Solana)
77
- - **No vendor lock-in** — <!-- br:models.chatVisible -->71<!-- /br:models.chatVisible --> models, switch anytime
77
+ - **No vendor lock-in** — <!-- br:models.chatVisible -->70<!-- /br:models.chatVisible --> models, switch anytime
78
78
  - **You control your wallet** — non-custodial, funds never held by a third party
79
79
  - **Budget caps** — set a max spend per session, ClawRouter gracefully downgrades when budget runs low
80
80
  - **Token compression** — 7-layer pipeline reduces token costs by 7–40% before they hit any provider
@@ -135,7 +135,7 @@ Less context repeated = fewer tokens = lower cost. Agents that need to recall ea
135
135
 
136
136
  ### 7. x402 Micropayments — Wallet-Based Budget Control
137
137
 
138
- <p align="center"><img src="assets/blockrun-clawrouter-x402-usdc-micropayment-wallet-budget-control.png" alt="Budget limits enforced by physical construction — wallet loaded via Base/Solana, pay per call across <!-- br:models.chatVisible -->71<!-- /br:models.chatVisible --> models, balance hits zero and the valve shuts cleanly" width="720"></p>
138
+ <p align="center"><img src="assets/blockrun-clawrouter-x402-usdc-micropayment-wallet-budget-control.png" alt="Budget limits enforced by physical construction — wallet loaded via Base/Solana, pay per call across <!-- br:models.chatVisible -->70<!-- /br:models.chatVisible --> models, balance hits zero and the valve shuts cleanly" width="720"></p>
139
139
 
140
140
  ClawRouter pays for inference via [x402](https://x402.org/) USDC micropayments (Base or Solana). You load a wallet. Each inference call costs exactly what it costs. When the wallet runs low, requests stop cleanly.
141
141
 
@@ -222,7 +222,7 @@ OpenRouter doesn't always pass through provider-specific features correctly. Ima
222
222
 
223
223
  **Direct provider routing.** ClawRouter routes through BlockRun's API directly to providers — not through a second aggregator. One hop, not two. Provider-specific features work because there's no middleman translating them.
224
224
 
225
- ![Guaranteed Feature Parity & Direct Connectivity — Three-panel diagram: Vision (image_url auto-detected → vision-capable models only), Tool Calling (toolCalling flag → agentic models only), Catalog (curated <!-- br:models.chatVisible -->71<!-- /br:models.chatVisible --> models with automatic legacy-to-modern redirects). Direct provider routing means no dropped payloads.](./assets/clawrouter-feature-parity-direct-connectivity.png)
225
+ ![Guaranteed Feature Parity & Direct Connectivity — Three-panel diagram: Vision (image_url auto-detected → vision-capable models only), Tool Calling (toolCalling flag → agentic models only), Catalog (curated <!-- br:models.chatVisible -->70<!-- /br:models.chatVisible --> models with automatic legacy-to-modern redirects). Direct provider routing means no dropped payloads.](./assets/clawrouter-feature-parity-direct-connectivity.png)
226
226
 
227
227
  ---
228
228
 
@@ -240,7 +240,7 @@ When new models launch, OpenRouter's catalog lags. Users configure a model that
240
240
 
241
241
  ### How ClawRouter Solves This
242
242
 
243
- ClawRouter maintains a curated catalog of <!-- br:models.chatVisible -->71<!-- /br:models.chatVisible --> models across 9 providers (including 9 free models), updated with each release. Delisted models have automatic redirect aliases:
243
+ ClawRouter maintains a curated catalog of <!-- br:models.chatVisible -->70<!-- /br:models.chatVisible --> models across 9 providers (including 9 free models), updated with each release. Delisted models have automatic redirect aliases:
244
244
 
245
245
  ```typescript
246
246
  // Delisted models redirect automatically
@@ -268,7 +268,7 @@ No silent drops. No stale catalog. Models are benchmarked for speed, quality, an
268
268
  | **Rate limits** | Per-key, shared | Per-wallet, independent |
269
269
  | **Vision support** | Images sometimes dropped | Auto-detected, vision-only fallback |
270
270
  | **Tool calling** | Silent failures with some models | Flag-based filtering, guaranteed support |
271
- | **Model catalog** | Laggy, silent drops | Curated <!-- br:models.chatVisible -->71<!-- /br:models.chatVisible --> models, redirect aliases |
271
+ | **Model catalog** | Laggy, silent drops | Curated <!-- br:models.chatVisible -->70<!-- /br:models.chatVisible --> models, redirect aliases |
272
272
  | **Budget control** | Monthly invoice | Per-session cap (`maxCostPerRun`) |
273
273
  | **Setup** | Create account, paste key | Agent generates wallet, auto-configured |
274
274
  | **Average cost** | $25/M tokens (Opus direct) | auto-routed = **<!-- br:savings.autoVsBaselinePct -->88<!-- /br:savings.autoVsBaselinePct -->% savings** |
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@blockrun/clawrouter",
3
- "version": "0.12.244",
4
- "description": "Smart LLM router — save 88% on inference costs. 71 models (6 free), one wallet, x402 micropayments.",
3
+ "version": "0.12.245",
4
+ "description": "Smart LLM router — save 88% on inference costs. 70 models (5 free), one wallet, x402 micropayments.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -110,7 +110,7 @@
110
110
  }
111
111
  },
112
112
  "devDependencies": {
113
- "@blockrun/router-core": "https://codeload.github.com/BlockRunAI/router-core/tar.gz/6a790ebec60161825bbc8c4093fd221006b4e5fb",
113
+ "@blockrun/router-core": "https://codeload.github.com/BlockRunAI/router-core/tar.gz/18bf4abc7e34599e51595b90703c385f53d4f4a6",
114
114
  "@eslint/js": "^10.0.1",
115
115
  "eslint": "^10.2.0",
116
116
  "openclaw": "^2026.7.2-beta.7",
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: clawrouter
3
- description: Hosted-gateway LLM router — save 88% on inference costs. A local proxy that forwards each request to the blockrun.ai gateway, which routes to the cheapest capable model across 71 models from OpenAI, Anthropic, Google, DeepSeek, xAI, NVIDIA, and more. 6 free NVIDIA models included. Also exposes realtime market data (global stocks, crypto, FX, commodities), Twitter/X intelligence, prediction-market data across Polymarket, Kalshi, Limitless, Opinion, Predict.Fun, dFlow + UMA oracle resolution + wallet identity & clustering, phone-number intelligence (carrier + SIM-swap fraud detection) plus AI-powered outbound voice calls (Twilio + Bland.ai), AND the Surf unified crypto data API (84 endpoints — CEX/DEX, on-chain SQL over 80+ ClickHouse tables, 100M+ labeled wallets, prediction markets, social/CT mindshare, news, VC fund intel) as built-in agent tools. Not a local-inference tool — prompts are sent to the blockrun.ai gateway.
3
+ description: Hosted-gateway LLM router — save 88% on inference costs. A local proxy that forwards each request to the blockrun.ai gateway, which routes to the cheapest capable model across 70 models from OpenAI, Anthropic, Google, DeepSeek, xAI, NVIDIA, and more. 5 free NVIDIA models included. Also exposes realtime market data (global stocks, crypto, FX, commodities), Twitter/X intelligence, prediction-market data across Polymarket, Kalshi, Limitless, Opinion, Predict.Fun, dFlow + UMA oracle resolution + wallet identity & clustering, phone-number intelligence (carrier + SIM-swap fraud detection) plus AI-powered outbound voice calls (Twilio + Bland.ai), AND the Surf unified crypto data API (84 endpoints — CEX/DEX, on-chain SQL over 80+ ClickHouse tables, 100M+ labeled wallets, prediction markets, social/CT mindshare, news, VC fund intel) as built-in agent tools. Not a local-inference tool — prompts are sent to the blockrun.ai gateway.
4
4
  triggers:
5
5
  - "clawrouter"
6
6
  - "claw router"
@@ -53,7 +53,7 @@ metadata:
53
53
 
54
54
  # ClawRouter
55
55
 
56
- Hosted-gateway LLM router that saves <!-- br:savings.autoVsBaselinePct -->88<!-- /br:savings.autoVsBaselinePct -->% on inference costs by forwarding each request to the blockrun.ai gateway, which picks the cheapest model capable of handling it across <!-- br:models.chatVisible -->71<!-- /br:models.chatVisible --> models from 9 providers (<!-- br:models.free -->6<!-- /br:models.free --> free NVIDIA models). All billing flows through one USDC wallet; you do not hold provider API keys.
56
+ Hosted-gateway LLM router that saves <!-- br:savings.autoVsBaselinePct -->88<!-- /br:savings.autoVsBaselinePct -->% on inference costs by forwarding each request to the blockrun.ai gateway, which picks the cheapest model capable of handling it across <!-- br:models.chatVisible -->70<!-- /br:models.chatVisible --> models from 9 providers (<!-- br:models.free -->5<!-- /br:models.free --> free NVIDIA models). All billing flows through one USDC wallet; you do not hold provider API keys.
57
57
 
58
58
  **This is not a local-inference tool.** ClawRouter is a thin local proxy. Your prompts are sent over HTTPS to the blockrun.ai gateway for model execution. If your workload requires inference that never leaves your machine, use a local runtime like Ollama — ClawRouter is not the right tool for that use case.
59
59
 
@@ -141,7 +141,7 @@ Rules handle ~~80% of requests in <1ms. Only ambiguous queries hit the LLM class
141
141
 
142
142
  ## Available Models
143
143
 
144
- <!-- br:models.chatVisible -->71<!-- /br:models.chatVisible --> models including: gpt-5.6-terra [balanced, stable default], gpt-5.6-sol [flagship], gpt-5.6-luna [cost-efficient], gpt-5.5, gpt-5.5-pro [max compute], chat-latest [ChatGPT Instant], gpt-5.4, gpt-4o, o3, claude-fable-5, claude-opus-5 [Anthropic flagship, 1M ctx], claude-opus-4.8, claude-opus-4.7, claude-opus-4.5, claude-sonnet-5, claude-sonnet-4.6, gemini-3.1-pro, gemini-2.5-flash, deepseek-v4-pro, deepseek-chat, grok-4.5, grok-4.3, grok-build-0.1, kimi-k3 [1M ctx flagship], kimi-k2.7, qwen3.7-max [Qwen flagship, 1M ctx], and 6 free NVIDIA models (deepseek-v4-flash [1M context], nemotron-3-nano-omni-30b-a3b-reasoning [vision], mistral-nemotron, step-3.7-flash, nemotron-nano-9b-v2, nemotron-nano-12b-v2-vl [vision]).
144
+ <!-- br:models.chatVisible -->70<!-- /br:models.chatVisible --> models including: gpt-5.6-terra [balanced, stable default], gpt-5.6-sol [flagship], gpt-5.6-luna [cost-efficient], gpt-5.6-sol/terra/luna-pro [pro reasoning tiers], gpt-5.5, gpt-5.5-pro [max compute], chat-latest [ChatGPT Instant], gpt-5.4, gpt-4o, o3, claude-fable-5, claude-opus-5 [Anthropic flagship, 1M ctx], claude-opus-4.8, claude-opus-4.7, claude-opus-4.5, claude-sonnet-5, claude-sonnet-4.6, gemini-3.1-pro, gemini-3.6-flash, gemini-3.5-flash-lite, gemini-2.5-flash, deepseek-v4-pro, deepseek-chat, grok-4.5, grok-4.3, grok-build-0.1, kimi-k3 [1M ctx flagship], kimi-k2.7, qwen3.7-max [Qwen flagship, 1M ctx], qwen3.7-plus, qwen3.7-flash, hy3 [Tencent], mimo [Xiaomi MiMo-V2.5 Pro, 1M ctx], and 5 free NVIDIA models (nemotron-3-nano-omni-30b-a3b-reasoning [vision], mistral-nemotron, step-3.7-flash, nemotron-nano-9b-v2, nemotron-nano-12b-v2-vl [vision]).
145
145
 
146
146
  ## Built-in Agent Tools
147
147
 
@@ -38,7 +38,6 @@
38
38
  "deepseek/deepseek-v4-pro",
39
39
  "deepseek/deepseek-chat",
40
40
  "deepseek/deepseek-reasoner",
41
- "free/deepseek-v4-flash",
42
41
  "free/nemotron-3-nano-omni-30b-a3b-reasoning",
43
42
  "free/mistral-nemotron",
44
43
  "free/step-3.7-flash",