@blockrun/clawrouter 0.12.227 → 0.12.229

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
@@ -207,12 +207,12 @@ Choose your routing strategy with `/model <profile>`:
207
207
  Request → Weighted Scorer (15 dimensions) → Tier → Best Model → Response
208
208
  ```
209
209
 
210
- | Tier | ECO Model | AUTO Model | PREMIUM Model |
211
- | --------- | ------------------------------------- | ------------------------------------- | ---------------------------- |
212
- | SIMPLE | free/mistral-large-3-675b (**FREE**) | gemini-2.5-flash ($0.30/$2.50) | kimi-k2.7 ($0.95/$4.00) |
213
- | MEDIUM | gemini-3.1-flash-lite ($0.25/$1.50) | kimi-k2.7 ($0.95/$4.00) | gpt-5.3-codex ($1.75/$14.00) |
214
- | COMPLEX | gemini-3.1-flash-lite ($0.25/$1.50) | gemini-3.1-pro ($2/$12) | claude-opus-4.8 ($5/$25) |
215
- | REASONING | deepseek-reasoner ($0.20/$0.40) | deepseek-reasoner ($0.20/$0.40) | claude-sonnet-4.6 ($3/$15) |
210
+ | Tier | ECO Model | AUTO Model | PREMIUM Model |
211
+ | --------- | ------------------------------------ | ------------------------------- | ---------------------------- |
212
+ | SIMPLE | free/mistral-large-3-675b (**FREE**) | gemini-2.5-flash ($0.30/$2.50) | kimi-k2.7 ($0.95/$4.00) |
213
+ | MEDIUM | gemini-3.1-flash-lite ($0.25/$1.50) | kimi-k2.7 ($0.95/$4.00) | gpt-5.3-codex ($1.75/$14.00) |
214
+ | COMPLEX | gemini-3.1-flash-lite ($0.25/$1.50) | gemini-3.1-pro ($2/$12) | claude-opus-4.8 ($5/$25) |
215
+ | REASONING | deepseek-reasoner ($0.20/$0.40) | deepseek-reasoner ($0.20/$0.40) | claude-sonnet-4.6 ($3/$15) |
216
216
 
217
217
  **Blended average: $2.05/M** vs $25/M for Claude Opus = **92% savings**
218
218
 
@@ -230,16 +230,16 @@ Generate images directly from chat with `/cr-imagegen`:
230
230
 
231
231
  > The slash command is `/cr-imagegen` to avoid colliding with Telegram channel commands. Typing `/imagegen` in chat still works for backward compatibility.
232
232
 
233
- | Model | Provider | Price | Max Size |
234
- | ---------------------------- | --------------------- | ------------ | --------- |
235
- | `nano-banana` | Google Gemini Flash | $0.05/image | 1024x1024 |
236
- | `banana-pro` | Google Gemini Pro | $0.10/image | 4096x4096 |
237
- | `gpt-image` | OpenAI GPT Image 1 | $0.02/image | 1536x1024 |
238
- | `gpt-image-2` | OpenAI GPT Image 2 | $0.06/image | 1536x1024 |
239
- | `seedream` | ByteDance Seedream 5 | $0.045/image | 2848x1600 |
240
- | `xai/grok-imagine-image` | xAI Grok Imagine | $0.02/image | 1024x1024 |
241
- | `xai/grok-imagine-image-pro` | xAI Grok Imagine Pro | $0.07/image | 1024x1024 |
242
- | `zai/cogview-4` | Zhipu CogView-4 | $0.015/image | 1440x1440 |
233
+ | Model | Provider | Price | Max Size |
234
+ | ---------------------------- | -------------------- | ------------ | --------- |
235
+ | `nano-banana` | Google Gemini Flash | $0.05/image | 1024x1024 |
236
+ | `banana-pro` | Google Gemini Pro | $0.10/image | 4096x4096 |
237
+ | `gpt-image` | OpenAI GPT Image 1 | $0.02/image | 1536x1024 |
238
+ | `gpt-image-2` | OpenAI GPT Image 2 | $0.06/image | 1536x1024 |
239
+ | `seedream` | ByteDance Seedream 5 | $0.045/image | 2848x1600 |
240
+ | `xai/grok-imagine-image` | xAI Grok Imagine | $0.02/image | 1024x1024 |
241
+ | `xai/grok-imagine-image-pro` | xAI Grok Imagine Pro | $0.07/image | 1024x1024 |
242
+ | `zai/cogview-4` | Zhipu CogView-4 | $0.015/image | 1440x1440 |
243
243
 
244
244
  ## Video Generation
245
245
 
@@ -382,44 +382,45 @@ No Surf account, no API key — settles directly to Surf's Base treasury in USDC
382
382
 
383
383
  ## Models & Pricing
384
384
 
385
- 55+ models across 9 providers, one wallet. **Starting at $0.0002/request.**
385
+ 55+ models across 9 providers, one wallet. **8 models are $0 — paid models start at fractions of a cent.**
386
386
 
387
- > **💡 "Cost per request"** = estimated cost for a typical chat message (~500 input + 500 output tokens).
387
+ > **💡 "Cost per request"** = estimated cost for a typical chat message (~500 input + 500 output tokens). Paid requests also carry a flat **$0.002/tx settlement fee** (covers on-chain gas; already included in the price the gateway quotes). Free models never pay it.
388
388
 
389
389
  ### Budget Models (under $0.001/request)
390
390
 
391
- | Model | Input $/M | Output $/M | ~$/request | Context | Features |
392
- | --------------------------------------------- | --------: | ---------: | ---------: | ------- | -------------------------------------------- |
393
- | free/mistral-large-3-675b | **FREE** | **FREE** | **$0** | 131K | 675B general flagship, default free model |
394
- | free/qwen3-next-80b-a3b-instruct | **FREE** | **FREE** | **$0** | 262K | reasoning + coding |
395
- | free/seed-oss-36b | **FREE** | **FREE** | **$0** | 131K | coding |
396
- | free/nemotron-3-nano-omni-30b-a3b-reasoning | **FREE** | **FREE** | **$0** | 256K | reasoning, **vision** (text+img+video+audio) |
397
- | free/mistral-nemotron | **FREE** | **FREE** | **$0** | 131K | instruction following |
398
- | free/step-3.7-flash | **FREE** | **FREE** | **$0** | 131K | reasoning |
399
- | free/nemotron-nano-9b-v2 | **FREE** | **FREE** | **$0** | 131K | fast lightweight generalist |
400
- | free/nemotron-nano-12b-v2-vl | **FREE** | **FREE** | **$0** | 131K | vision (text + image) |
401
- | openai/gpt-5-nano | $0.05 | $0.40 | $0.0002 | 128K | tools |
402
- | openai/gpt-4.1-nano | $0.10 | $0.40 | $0.0003 | 128K | tools |
403
- | google/gemini-2.5-flash-lite | $0.10 | $0.40 | $0.0003 | 1M | tools |
404
- | openai/gpt-4o-mini | $0.15 | $0.60 | $0.0004 | 128K | tools |
405
- | xai/grok-4-fast | $0.20 | $0.50 | $0.0004 | 131K | tools |
406
- | xai/grok-4-fast-reasoning | $0.20 | $0.50 | $0.0004 | 131K | reasoning, tools |
407
- | xai/grok-4-1-fast | $0.20 | $0.50 | $0.0004 | 131K | tools |
408
- | openai/gpt-5-mini | $0.25 | $2.00 | $0.0011 | 200K | tools |
409
- | deepseek/deepseek-chat | $0.20 | $0.40 | $0.0003 | 1M | tools (V4 Flash chat) |
410
- | deepseek/deepseek-reasoner | $0.20 | $0.40 | $0.0003 | 1M | reasoning, tools (V4 Flash thinking) |
411
- | deepseek/deepseek-v4-pro | $0.435 | $0.87 | $0.0007 | 1M | reasoning, agentic, tools (V4 flagship) |
412
- | zai/glm-5 | $0.60 | $1.92 | $0.0013 | 200K | tools |
413
- | zai/glm-5-turbo | $1.20 | $4.00 | $0.0026 | 200K | tools |
414
- | minimax/minimax-m3 | $0.30 | $1.20 | $0.0008 | 1M | reasoning, agentic, tools |
415
- | minimax/minimax-m2.7 | $0.30 | $1.20 | $0.0008 | 205K | reasoning, agentic, tools |
416
- | minimax/minimax-m2.5 | $0.30 | $1.20 | $0.0008 | 205K | reasoning, agentic, tools |
417
- | google/gemini-2.5-flash | $0.30 | $2.50 | $0.0014 | 1M | vision, tools |
418
- | openai/gpt-4.1-mini | $0.40 | $1.60 | $0.0010 | 128K | tools |
419
- | google/gemini-3.5-flash | $0.50 | $3.00 | $0.0018 | 1M | reasoning, vision, tools (thinking built-in) |
420
- | google/gemini-3-flash-preview | $0.50 | $3.00 | $0.0018 | 1M | vision |
421
- | moonshot/kimi-k2.5 | $0.60 | $3.00 | $0.0018 | 262K | reasoning, vision, agentic, tools |
422
- | moonshot/kimi-k2.7 | $0.95 | $4.00 | $0.0025 | 262K | reasoning, vision, agentic, tools |
391
+ | Model | Input $/M | Output $/M | ~$/request | Context | Features |
392
+ | ------------------------------------------- | --------: | ---------: | ---------: | ------- | -------------------------------------------- |
393
+ | free/mistral-large-3-675b | **FREE** | **FREE** | **$0** | 131K | 675B general flagship, default free model |
394
+ | free/deepseek-v4-flash | **FREE** | **FREE** | **$0** | 1M | reasoning + coding, huge context |
395
+ | free/seed-oss-36b | **FREE** | **FREE** | **$0** | 131K | coding |
396
+ | free/nemotron-3-nano-omni-30b-a3b-reasoning | **FREE** | **FREE** | **$0** | 256K | reasoning, **vision** (text+img+video+audio) |
397
+ | free/mistral-nemotron | **FREE** | **FREE** | **$0** | 131K | instruction following |
398
+ | free/step-3.7-flash | **FREE** | **FREE** | **$0** | 131K | reasoning |
399
+ | free/nemotron-nano-9b-v2 | **FREE** | **FREE** | **$0** | 131K | fast lightweight generalist |
400
+ | free/nemotron-nano-12b-v2-vl | **FREE** | **FREE** | **$0** | 131K | vision (text + image) |
401
+ | openai/gpt-5-nano | $0.05 | $0.40 | $0.0002 | 128K | tools |
402
+ | openai/gpt-4.1-nano | $0.10 | $0.40 | $0.0003 | 128K | tools |
403
+ | google/gemini-2.5-flash-lite | $0.10 | $0.40 | $0.0003 | 1M | tools |
404
+ | openai/gpt-4o-mini | $0.15 | $0.60 | $0.0004 | 128K | tools |
405
+ | xai/grok-4-fast | $0.20 | $0.50 | $0.0004 | 131K | tools |
406
+ | xai/grok-4-fast-reasoning | $0.20 | $0.50 | $0.0004 | 131K | reasoning, tools |
407
+ | xai/grok-4-1-fast | $0.20 | $0.50 | $0.0004 | 131K | tools |
408
+ | openai/gpt-5-mini | $0.25 | $2.00 | $0.0011 | 200K | tools |
409
+ | deepseek/deepseek-chat | $0.20 | $0.40 | $0.0003 | 1M | tools (V4 Flash chat) |
410
+ | deepseek/deepseek-reasoner | $0.20 | $0.40 | $0.0003 | 1M | reasoning, tools (V4 Flash thinking) |
411
+ | deepseek/deepseek-v4-pro | $0.435 | $0.87 | $0.0007 | 1M | reasoning, agentic, tools (V4 flagship) |
412
+ | zai/glm-5 | $0.60 | $1.92 | $0.0013 | 200K | tools |
413
+ | zai/glm-5-turbo | $1.20 | $4.00 | $0.0026 | 200K | tools |
414
+ | minimax/minimax-m3 | $0.30 | $1.20 | $0.0008 | 1M | reasoning, agentic, tools |
415
+ | minimax/minimax-m2.7 | $0.30 | $1.20 | $0.0008 | 205K | reasoning, agentic, tools |
416
+ | minimax/minimax-m2.5 | $0.30 | $1.20 | $0.0008 | 205K | reasoning, agentic, tools |
417
+ | google/gemini-2.5-flash | $0.30 | $2.50 | $0.0014 | 1M | vision, tools |
418
+ | openai/gpt-4.1-mini | $0.40 | $1.60 | $0.0010 | 128K | tools |
419
+ | google/gemini-3.5-flash | $0.50 | $3.00 | $0.0018 | 1M | reasoning, vision, tools (thinking built-in) |
420
+ | google/gemini-3-flash-preview | $0.50 | $3.00 | $0.0018 | 1M | vision |
421
+ | moonshot/kimi-k2.5 | $0.60 | $3.00 | $0.0018 | 262K | reasoning, vision, agentic, tools |
422
+ | moonshot/kimi-k2.7 | $0.95 | $4.00 | $0.0025 | 262K | reasoning, vision, agentic, tools |
423
+ | moonshot/kimi-k3 | $3.00 | $15.00 | $0.0110 | 1M | reasoning, vision, agentic, tools |
423
424
 
424
425
  ### Mid-Range Models ($0.001–$0.01/request)
425
426
 
@@ -461,7 +462,7 @@ No Surf account, no API key — settles directly to Surf's Base treasury in USDC
461
462
  | openai/gpt-5.2-pro | $21.00 | $168.00 | $0.0945 | 400K | reasoning, tools |
462
463
  | openai/gpt-5.4-pro | $30.00 | $180.00 | $0.1050 | 400K | reasoning, tools |
463
464
 
464
- > **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 qwen3-next` for 262K reasoning, `/model seed-oss` for coding, `/model mistral-large` for the 675B flagship).
465
+ > **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 seed-oss` for coding, `/model mistral-large` for the 675B flagship).
465
466
  > **Best value:** `gpt-5-nano` and `gemini-2.5-flash-lite` deliver strong results at ~$0.0003/request.
466
467
 
467
468
  ---
@@ -720,7 +721,7 @@ ClawRouter works with any tool that makes OpenAI-compatible API calls — point
720
721
 
721
722
  ### Is ClawRouter free?
722
723
 
723
- ClawRouter itself is free and MIT licensed. You pay only for the LLM API calls routed through it — and several NVIDIA-hosted models (`mistral-large-3-675b`, `qwen3-next-80b-a3b-instruct`, `seed-oss-36b`, `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.
724
+ ClawRouter itself is free and MIT licensed. You pay only for the LLM API calls routed through it — and several NVIDIA-hosted models (`mistral-large-3-675b`, `deepseek-v4-flash`, `seed-oss-36b`, `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.
724
725
 
725
726
  ---
726
727
 
package/dist/cli.js CHANGED
@@ -33992,10 +33992,10 @@ var init_config = __esm({
33992
33992
  // FREE — smaller, faster
33993
33993
  "free/mistral-large-3-675b",
33994
33994
  // FREE — 675B general flagship (re-featured 2026-06-14)
33995
- "free/qwen3.5-122b-a10b",
33996
- // FREE — newest-gen Qwen, strong general
33997
- "free/qwen3-next-80b-a3b-instruct",
33998
- // FREE — 262K ctx, strong general (deepseek-v4-flash retired)
33995
+ "free/deepseek-v4-flash",
33996
+ // FREE — 1M ctx, recovered in blockrun's 2026-07-17 re-probe
33997
+ "free/seed-oss-36b",
33998
+ // FREE — live coder (qwen3.5-122b + qwen3-next died 2026-07)
33999
33999
  "google/gemini-3.1-flash-lite",
34000
34000
  // $0.25/$1.50 — newest flash-lite
34001
34001
  "openai/gpt-5.4-nano",
@@ -34295,12 +34295,12 @@ var init_top_models = __esm({
34295
34295
  "zai/glm-5",
34296
34296
  "minimax/minimax-m3",
34297
34297
  "minimax/minimax-m2.7",
34298
- "moonshot/kimi-k2.7",
34298
+ "moonshot/kimi-k3",
34299
34299
  "deepseek/deepseek-v4-pro",
34300
34300
  "deepseek/deepseek-chat",
34301
34301
  "deepseek/deepseek-reasoner",
34302
34302
  "free/mistral-large-3-675b",
34303
- "free/qwen3-next-80b-a3b-instruct",
34303
+ "free/deepseek-v4-flash",
34304
34304
  "free/seed-oss-36b",
34305
34305
  "free/nemotron-3-nano-omni-30b-a3b-reasoning",
34306
34306
  "free/mistral-nemotron",
@@ -34507,13 +34507,16 @@ var init_models = __esm({
34507
34507
  deepseek: "deepseek/deepseek-chat",
34508
34508
  "deepseek-chat": "deepseek/deepseek-chat",
34509
34509
  reasoner: "deepseek/deepseek-reasoner",
34510
- // Kimi / Moonshot — K2.7 is the featured flagship on BlockRun (added 2026-06-13,
34511
- // commit cd3d79b; K2.6 marked hidden/superseded, K2.5 hidden). Bare aliases now
34512
- // resolve to K2.7 (same $0.95/$4.00 price as K2.6 — AT-COST, zero margin). Explicit
34510
+ // Kimi / Moonshot — K3 is the featured flagship on BlockRun (added 2026-07-17; K2.7
34511
+ // hidden/superseded, K2.6 hidden, K2.5 hidden). K3 is ~5x K2.7's price ($3/$15 vs
34512
+ // $0.95/$4.00), so the BARE aliases deliberately STAY on K2.7 — repointing them to K3
34513
+ // would silently ~5x every generic-`kimi` quote and break per-call-cap wallets (mirrors
34514
+ // blockrun's own alias decision). Address the flagship explicitly via "kimi-k3". Explicit
34513
34515
  // pins for "kimi-k2.6" / "kimi-k2.5" still resolve to those exact models (K2.5 is a
34514
34516
  // cost-stability opt-in at $0.60/$3.00). NVIDIA-hosted K2.5 was retired 2026-04-21.
34515
34517
  kimi: "moonshot/kimi-k2.7",
34516
34518
  moonshot: "moonshot/kimi-k2.7",
34519
+ "kimi-k3": "moonshot/kimi-k3",
34517
34520
  "kimi-k2": "moonshot/kimi-k2.7",
34518
34521
  "kimi-k2.7": "moonshot/kimi-k2.7",
34519
34522
  "kimi-k2.6": "moonshot/kimi-k2.6",
@@ -34570,14 +34573,12 @@ var init_models = __esm({
34570
34573
  "gpt-20b": "free/gpt-oss-20b",
34571
34574
  "nvidia/gpt-oss-120b": "free/gpt-oss-120b",
34572
34575
  "nvidia/gpt-oss-20b": "free/gpt-oss-20b",
34576
+ // deepseek family → v4-flash, matching blockrun's 2026-07-17 redirect map
34577
+ // (v4-flash recovered in the live re-probe; v3.2/v4-pro stay dead upstream).
34573
34578
  "nvidia/deepseek-v3.2": "free/deepseek-v4-flash",
34574
- // v3.2 → v4-flash (v4-pro NVIDIA hung 2026-04-30)
34575
34579
  "free/deepseek-v3.2": "free/deepseek-v4-flash",
34576
- // local pin redirect
34577
34580
  "nvidia/deepseek-v4-pro": "free/deepseek-v4-flash",
34578
- // V4 Pro NVIDIA hung 2026-04-30
34579
34581
  "free/deepseek-v4-pro": "free/deepseek-v4-flash",
34580
- // V4 Pro delisted — redirect pinned callers
34581
34582
  "nvidia/deepseek-v4-flash": "free/deepseek-v4-flash",
34582
34583
  "nvidia/nemotron-3-nano-omni-30b-a3b-reasoning": "free/nemotron-3-nano-omni-30b-a3b-reasoning",
34583
34584
  // qwen3-coder-480b retired (NVIDIA EOL 2026-06-14) → redirects to seed-oss-36b
@@ -34585,58 +34586,62 @@ var init_models = __esm({
34585
34586
  // resolves them), but point the generic coding shorthands at the live successor.
34586
34587
  "nvidia/qwen3-coder-480b": "free/qwen3-coder-480b",
34587
34588
  "qwen/qwen3-coder-480b-a35b-instruct": "free/qwen3-coder-480b",
34588
- "nvidia/glm-4.7": "free/seed-oss-36b",
34589
+ // glm-4.7 pin keeps the real id — blockrun redirects it server-side (→ gpt-oss-120b).
34590
+ "nvidia/glm-4.7": "free/glm-4.7",
34589
34591
  "nvidia/llama-4-maverick": "free/llama-4-maverick",
34590
- // qwen3-next thinking variant retired; live sibling is the instruct model
34592
+ // qwen3-next: both variants died in the 2026-07-17 re-probe; pins keep the id
34593
+ // (blockrun redirects them server-side to gpt-oss-120b).
34591
34594
  "nvidia/qwen3-next-80b-a3b-thinking": "free/qwen3-next-80b-a3b-instruct",
34592
- // New live free models from the 2026-06-14 BlockRun free-tier refresh
34593
34595
  "nvidia/qwen3-next-80b-a3b-instruct": "free/qwen3-next-80b-a3b-instruct",
34594
34596
  "nvidia/seed-oss-36b": "free/seed-oss-36b",
34595
34597
  "nvidia/mistral-nemotron": "free/mistral-nemotron",
34596
34598
  "nvidia/step-3.7-flash": "free/step-3.7-flash",
34597
34599
  "nvidia/nemotron-nano-9b-v2": "free/nemotron-nano-9b-v2",
34598
34600
  "nvidia/nemotron-nano-12b-v2-vl": "free/nemotron-nano-12b-v2-vl",
34599
- "nvidia/mistral-small-4-119b": "free/llama-4-maverick",
34600
- // NVIDIA upstream timing out — hidden + redirected server-side 2026-06-08
34601
- // Retired free IDs → successors (mirror server-side redirects)
34602
- "nvidia/nemotron-ultra-253b": "free/llama-4-maverick",
34603
- "nvidia/nemotron-3-super-120b": "free/llama-4-maverick",
34604
- "nvidia/nemotron-super-49b": "free/llama-4-maverick",
34601
+ // nvidia/mistral-small-4-119b: no local redirect — recovered in the 2026-07-17
34602
+ // re-probe and blockrun removed its server redirect, so pinned callers reach the
34603
+ // real model again (upstream fallbackModel + health gate cover a relapse).
34604
+ // Retired free IDs → successors (mirror blockrun's 2026-07-17 redirect map:
34605
+ // ultra-253b redirects to gpt-oss-120b; the two supers have NO server redirect —
34606
+ // they stay hidden-but-routable, so their pins pass through to the real ids).
34607
+ "nvidia/nemotron-ultra-253b": "free/gpt-oss-120b",
34605
34608
  // mistral-large-3-675b un-retired 2026-06-14: BlockRun re-featured it (available,
34606
34609
  // NVIDIA upstream recovered) so it's a real free catalog entry again.
34607
34610
  "nvidia/mistral-large-3-675b": "free/mistral-large-3-675b",
34608
34611
  "nvidia/qwen3.5-122b-a10b": "free/qwen3.5-122b-a10b",
34609
- "nvidia/devstral-2-123b": "free/seed-oss-36b",
34610
- "free/nemotron-ultra-253b": "free/llama-4-maverick",
34611
- "free/nemotron-3-super-120b": "free/llama-4-maverick",
34612
- "free/nemotron-super-49b": "free/llama-4-maverick",
34613
- "free/devstral-2-123b": "free/seed-oss-36b",
34612
+ // devstral-2-123b died upstream; blockrun redirects it to gpt-oss-120b (2026-07-17 map)
34613
+ "nvidia/devstral-2-123b": "free/gpt-oss-120b",
34614
+ "free/nemotron-ultra-253b": "free/gpt-oss-120b",
34615
+ "free/devstral-2-123b": "free/gpt-oss-120b",
34614
34616
  // New blockrun-featured free models (2026-06-14 catalog sweep)
34615
34617
  "mistral-large": "free/mistral-large-3-675b",
34616
34618
  "mistral-large-3-675b": "free/mistral-large-3-675b",
34617
34619
  "qwen3.5-122b": "free/qwen3.5-122b-a10b",
34618
34620
  "qwen3-122b": "free/qwen3.5-122b-a10b",
34619
- // Free model shorthand aliases
34621
+ // Free model shorthand aliases (v4-flash recovered 2026-07-17 — live again)
34620
34622
  "deepseek-free": "free/deepseek-v4-flash",
34621
- // V4 Pro NVIDIA hung 2026-04-30 → flash
34622
34623
  "deepseek-v4-pro": "free/deepseek-v4-flash",
34623
- // free shorthand → flash (pro hung)
34624
+ // free shorthand → flash (pro still hung)
34624
34625
  "deepseek-v4-flash": "free/deepseek-v4-flash",
34625
34626
  "v4-pro": "free/deepseek-v4-flash",
34626
34627
  // V4 Pro NVIDIA hung → flash
34627
34628
  "v4-flash": "free/deepseek-v4-flash",
34628
- "mistral-free": "free/llama-4-maverick",
34629
+ "mistral-free": "free/mistral-large-3-675b",
34630
+ // was llama-4-maverick (died 2026-07) — live Mistral flagship
34629
34631
  "glm-free": "free/seed-oss-36b",
34630
34632
  // qwen3-coder retired → live coder successor
34631
- "llama-free": "free/llama-4-maverick",
34633
+ "llama-free": "free/gpt-oss-120b",
34634
+ // no live free Llama left (maverick died 2026-07)
34632
34635
  "qwen-coder": "free/seed-oss-36b",
34633
34636
  // qwen3-coder-480b retired → seed-oss-36b
34634
34637
  "qwen-coder-free": "free/seed-oss-36b",
34635
- "qwen-thinking": "free/qwen3-next-80b-a3b-instruct",
34638
+ "qwen-thinking": "free/gpt-oss-120b",
34639
+ // qwen3-next died 2026-07-17; no live free Qwen left
34636
34640
  "qwen3-next": "free/qwen3-next-80b-a3b-instruct",
34637
- // now a live model (instruct)
34641
+ // explicit-ish pin — gateway redirects
34638
34642
  "qwen3-next-80b": "free/qwen3-next-80b-a3b-instruct",
34639
- "mistral-small": "free/llama-4-maverick",
34643
+ "mistral-small": "free/mistral-nemotron",
34644
+ // closest live Mistral-family free model
34640
34645
  // New live free models (2026-06-14 BlockRun free-tier refresh)
34641
34646
  "seed-oss": "free/seed-oss-36b",
34642
34647
  "seed-oss-36b": "free/seed-oss-36b",
@@ -34652,16 +34657,19 @@ var init_models = __esm({
34652
34657
  "nemotron-omni": "free/nemotron-3-nano-omni-30b-a3b-reasoning",
34653
34658
  "nano-omni": "free/nemotron-3-nano-omni-30b-a3b-reasoning",
34654
34659
  "vision-free": "free/nemotron-3-nano-omni-30b-a3b-reasoning",
34655
- // Retired shorthand aliases redirect to successors
34656
- nemotron: "free/llama-4-maverick",
34657
- "nemotron-ultra": "free/llama-4-maverick",
34658
- "nemotron-253b": "free/llama-4-maverick",
34659
- "nemotron-super": "free/llama-4-maverick",
34660
- "nemotron-49b": "free/llama-4-maverick",
34661
- "nemotron-120b": "free/llama-4-maverick",
34660
+ // Retired shorthand aliases redirect to live successors (2026-07-17 map:
34661
+ // llama-4-maverick died, so the old catch-all target moved to gpt-oss-120b)
34662
+ nemotron: "free/nemotron-3-nano-omni-30b-a3b-reasoning",
34663
+ // strongest live Nemotron
34664
+ "nemotron-ultra": "free/gpt-oss-120b",
34665
+ "nemotron-253b": "free/gpt-oss-120b",
34666
+ "nemotron-super": "free/gpt-oss-120b",
34667
+ "nemotron-49b": "free/gpt-oss-120b",
34668
+ "nemotron-120b": "free/gpt-oss-120b",
34662
34669
  devstral: "free/seed-oss-36b",
34663
34670
  "devstral-2": "free/seed-oss-36b",
34664
34671
  maverick: "free/llama-4-maverick",
34672
+ // explicit-ish pin — gateway redirects
34665
34673
  free: "free/gpt-oss-120b",
34666
34674
  // MiniMax (minimax → current flagship: M3)
34667
34675
  minimax: "minimax/minimax-m3",
@@ -35287,10 +35295,29 @@ var init_models = __esm({
35287
35295
  agentic: true,
35288
35296
  toolCalling: true
35289
35297
  },
35290
- // Kimi K2.7 — Moonshot's flagship (added 2026-06-13). 256K context, multi-modal
35291
- // (image + VIDEO input), returns reasoning_content. Served via BlockRun's OpenRouter
35292
- // credit pool (slug moonshotai/kimi-k2.7-code) failing over to direct Moonshot.
35293
- // AT-COST pricing ($0.95/$4.00 = OpenRouter COGS, zero margin) — same as K2.6.
35298
+ // Kimi K3 — Moonshot's flagship (blockrun added 2026-07-17, live-probed same day).
35299
+ // 2.8T-param open MoE, 1M context, image + text input, returns reasoning_content.
35300
+ // Priced at COGS + BlockRun's 5% margin: users pay ~$3.15/$15.75 per 1M; the fields
35301
+ // here store the raw $3.00/$15.00 COST (server applies margin at billing). ~5x K2.7,
35302
+ // so the generic `kimi` alias deliberately stays on K2.7 — address k3 explicitly.
35303
+ {
35304
+ id: "moonshot/kimi-k3",
35305
+ name: "Kimi K3",
35306
+ version: "k3",
35307
+ inputPrice: 3,
35308
+ outputPrice: 15,
35309
+ contextWindow: 1048576,
35310
+ maxOutput: 65536,
35311
+ reasoning: true,
35312
+ vision: true,
35313
+ agentic: true,
35314
+ toolCalling: true
35315
+ },
35316
+ // Kimi K2.7 — previous-gen flagship (added 2026-06-13); superseded by K3 + hidden on
35317
+ // BlockRun 2026-07-17 but kept routable. 256K context, multi-modal (image + VIDEO
35318
+ // input), returns reasoning_content. Served via BlockRun's OpenRouter credit pool
35319
+ // (slug moonshotai/kimi-k2.7-code) failing over to direct Moonshot. AT-COST pricing
35320
+ // ($0.95/$4.00 = OpenRouter COGS, zero margin) — same as K2.6.
35294
35321
  {
35295
35322
  id: "moonshot/kimi-k2.7",
35296
35323
  name: "Kimi K2.7",
@@ -35590,6 +35617,8 @@ var init_models = __esm({
35590
35617
  // V4 Flash: 284B / 13B active MoE, 1M context. ~5x faster than V4 Pro.
35591
35618
  // Strong on chat/summarization (MMLU-Pro 86.2). Caveat: weaker factual
35592
35619
  // recall (SimpleQA 34% vs Pro's 58%) — pick V4 Pro for fact-heavy loops.
35620
+ // Recovered in blockrun's 2026-07-17 live re-probe (3.2s both passes) —
35621
+ // un-hidden upstream and back in the advertised free 8.
35593
35622
  id: "free/deepseek-v4-flash",
35594
35623
  name: "[Free] DeepSeek V4 Flash",
35595
35624
  version: "v4-flash",
@@ -35670,10 +35699,12 @@ var init_models = __esm({
35670
35699
  },
35671
35700
  // 2026-06-16: BlockRun's 2026-06-14 free-tier refresh (self-healing health gate
35672
35701
  // + probe-verified lineup, blockrun commit 5817ecd) added these live NVIDIA free
35673
- // models. qwen3-coder-480b was retired (NVIDIA EOL 2026-06-14) and now redirects
35674
- // server-side to seed-oss-36b; deepseek-v4-flash/glm-4.7 stay catalog-only.
35702
+ // models. Status per blockrun's 2026-07-17 live re-probe: qwen3-coder-480b and
35703
+ // glm-4.7 stay dead (server-redirected); deepseek-v4-flash recovered (see above).
35675
35704
  {
35676
- // Qwen3-Next 80B (A3B active MoE): 262K context, strong reasoning + coding.
35705
+ // Qwen3-Next 80B (A3B active MoE): 262K context. DIED in the 2026-07-17
35706
+ // re-probe (">60s / DEGRADED") — hidden upstream, gateway redirects pinned
35707
+ // callers to gpt-oss-120b. Entry kept so pins stay routable; off the picker.
35677
35708
  id: "free/qwen3-next-80b-a3b-instruct",
35678
35709
  name: "[Free] Qwen3-Next 80B Instruct",
35679
35710
  version: "next-80b-a3b",
@@ -84552,6 +84583,7 @@ function estimateAmount(modelId, bodyLength, maxTokens) {
84552
84583
  const estimatedOutputTokens = maxTokens || model.maxOutput || 4096;
84553
84584
  costUsd = estimatedInputTokens / 1e6 * model.inputPrice + estimatedOutputTokens / 1e6 * model.outputPrice;
84554
84585
  }
84586
+ if (costUsd > 0) costUsd += 2e-3;
84555
84587
  const amountMicros = Math.max(1e3, Math.ceil(costUsd * 1.2 * 1e6));
84556
84588
  return amountMicros.toString();
84557
84589
  }
@@ -88009,12 +88041,8 @@ var init_proxy = __esm({
88009
88041
  "free/gpt-oss-20b",
88010
88042
  "free/mistral-large-3-675b",
88011
88043
  // 675B general flagship (re-featured 2026-06-14)
88012
- "free/qwen3.5-122b-a10b",
88013
- // newest-gen Qwen, strong general
88014
- "free/qwen3-next-80b-a3b-instruct",
88015
- // 262K ctx, strong reasoning + coding
88016
- "free/llama-4-maverick",
88017
- // BlockRun's primary free fallback
88044
+ "free/deepseek-v4-flash",
88045
+ // 1M ctx, recovered 2026-07-17 (3.2s probe)
88018
88046
  "free/seed-oss-36b",
88019
88047
  // live coder (successor to retired qwen3-coder-480b)
88020
88048
  "free/mistral-nemotron",
package/dist/index.js CHANGED
@@ -85,12 +85,12 @@ var init_top_models = __esm({
85
85
  "zai/glm-5",
86
86
  "minimax/minimax-m3",
87
87
  "minimax/minimax-m2.7",
88
- "moonshot/kimi-k2.7",
88
+ "moonshot/kimi-k3",
89
89
  "deepseek/deepseek-v4-pro",
90
90
  "deepseek/deepseek-chat",
91
91
  "deepseek/deepseek-reasoner",
92
92
  "free/mistral-large-3-675b",
93
- "free/qwen3-next-80b-a3b-instruct",
93
+ "free/deepseek-v4-flash",
94
94
  "free/seed-oss-36b",
95
95
  "free/nemotron-3-nano-omni-30b-a3b-reasoning",
96
96
  "free/mistral-nemotron",
@@ -297,13 +297,16 @@ var init_models = __esm({
297
297
  deepseek: "deepseek/deepseek-chat",
298
298
  "deepseek-chat": "deepseek/deepseek-chat",
299
299
  reasoner: "deepseek/deepseek-reasoner",
300
- // Kimi / Moonshot — K2.7 is the featured flagship on BlockRun (added 2026-06-13,
301
- // commit cd3d79b; K2.6 marked hidden/superseded, K2.5 hidden). Bare aliases now
302
- // resolve to K2.7 (same $0.95/$4.00 price as K2.6 — AT-COST, zero margin). Explicit
300
+ // Kimi / Moonshot — K3 is the featured flagship on BlockRun (added 2026-07-17; K2.7
301
+ // hidden/superseded, K2.6 hidden, K2.5 hidden). K3 is ~5x K2.7's price ($3/$15 vs
302
+ // $0.95/$4.00), so the BARE aliases deliberately STAY on K2.7 — repointing them to K3
303
+ // would silently ~5x every generic-`kimi` quote and break per-call-cap wallets (mirrors
304
+ // blockrun's own alias decision). Address the flagship explicitly via "kimi-k3". Explicit
303
305
  // pins for "kimi-k2.6" / "kimi-k2.5" still resolve to those exact models (K2.5 is a
304
306
  // cost-stability opt-in at $0.60/$3.00). NVIDIA-hosted K2.5 was retired 2026-04-21.
305
307
  kimi: "moonshot/kimi-k2.7",
306
308
  moonshot: "moonshot/kimi-k2.7",
309
+ "kimi-k3": "moonshot/kimi-k3",
307
310
  "kimi-k2": "moonshot/kimi-k2.7",
308
311
  "kimi-k2.7": "moonshot/kimi-k2.7",
309
312
  "kimi-k2.6": "moonshot/kimi-k2.6",
@@ -360,14 +363,12 @@ var init_models = __esm({
360
363
  "gpt-20b": "free/gpt-oss-20b",
361
364
  "nvidia/gpt-oss-120b": "free/gpt-oss-120b",
362
365
  "nvidia/gpt-oss-20b": "free/gpt-oss-20b",
366
+ // deepseek family → v4-flash, matching blockrun's 2026-07-17 redirect map
367
+ // (v4-flash recovered in the live re-probe; v3.2/v4-pro stay dead upstream).
363
368
  "nvidia/deepseek-v3.2": "free/deepseek-v4-flash",
364
- // v3.2 → v4-flash (v4-pro NVIDIA hung 2026-04-30)
365
369
  "free/deepseek-v3.2": "free/deepseek-v4-flash",
366
- // local pin redirect
367
370
  "nvidia/deepseek-v4-pro": "free/deepseek-v4-flash",
368
- // V4 Pro NVIDIA hung 2026-04-30
369
371
  "free/deepseek-v4-pro": "free/deepseek-v4-flash",
370
- // V4 Pro delisted — redirect pinned callers
371
372
  "nvidia/deepseek-v4-flash": "free/deepseek-v4-flash",
372
373
  "nvidia/nemotron-3-nano-omni-30b-a3b-reasoning": "free/nemotron-3-nano-omni-30b-a3b-reasoning",
373
374
  // qwen3-coder-480b retired (NVIDIA EOL 2026-06-14) → redirects to seed-oss-36b
@@ -375,58 +376,62 @@ var init_models = __esm({
375
376
  // resolves them), but point the generic coding shorthands at the live successor.
376
377
  "nvidia/qwen3-coder-480b": "free/qwen3-coder-480b",
377
378
  "qwen/qwen3-coder-480b-a35b-instruct": "free/qwen3-coder-480b",
378
- "nvidia/glm-4.7": "free/seed-oss-36b",
379
+ // glm-4.7 pin keeps the real id — blockrun redirects it server-side (→ gpt-oss-120b).
380
+ "nvidia/glm-4.7": "free/glm-4.7",
379
381
  "nvidia/llama-4-maverick": "free/llama-4-maverick",
380
- // qwen3-next thinking variant retired; live sibling is the instruct model
382
+ // qwen3-next: both variants died in the 2026-07-17 re-probe; pins keep the id
383
+ // (blockrun redirects them server-side to gpt-oss-120b).
381
384
  "nvidia/qwen3-next-80b-a3b-thinking": "free/qwen3-next-80b-a3b-instruct",
382
- // New live free models from the 2026-06-14 BlockRun free-tier refresh
383
385
  "nvidia/qwen3-next-80b-a3b-instruct": "free/qwen3-next-80b-a3b-instruct",
384
386
  "nvidia/seed-oss-36b": "free/seed-oss-36b",
385
387
  "nvidia/mistral-nemotron": "free/mistral-nemotron",
386
388
  "nvidia/step-3.7-flash": "free/step-3.7-flash",
387
389
  "nvidia/nemotron-nano-9b-v2": "free/nemotron-nano-9b-v2",
388
390
  "nvidia/nemotron-nano-12b-v2-vl": "free/nemotron-nano-12b-v2-vl",
389
- "nvidia/mistral-small-4-119b": "free/llama-4-maverick",
390
- // NVIDIA upstream timing out — hidden + redirected server-side 2026-06-08
391
- // Retired free IDs → successors (mirror server-side redirects)
392
- "nvidia/nemotron-ultra-253b": "free/llama-4-maverick",
393
- "nvidia/nemotron-3-super-120b": "free/llama-4-maverick",
394
- "nvidia/nemotron-super-49b": "free/llama-4-maverick",
391
+ // nvidia/mistral-small-4-119b: no local redirect — recovered in the 2026-07-17
392
+ // re-probe and blockrun removed its server redirect, so pinned callers reach the
393
+ // real model again (upstream fallbackModel + health gate cover a relapse).
394
+ // Retired free IDs → successors (mirror blockrun's 2026-07-17 redirect map:
395
+ // ultra-253b redirects to gpt-oss-120b; the two supers have NO server redirect —
396
+ // they stay hidden-but-routable, so their pins pass through to the real ids).
397
+ "nvidia/nemotron-ultra-253b": "free/gpt-oss-120b",
395
398
  // mistral-large-3-675b un-retired 2026-06-14: BlockRun re-featured it (available,
396
399
  // NVIDIA upstream recovered) so it's a real free catalog entry again.
397
400
  "nvidia/mistral-large-3-675b": "free/mistral-large-3-675b",
398
401
  "nvidia/qwen3.5-122b-a10b": "free/qwen3.5-122b-a10b",
399
- "nvidia/devstral-2-123b": "free/seed-oss-36b",
400
- "free/nemotron-ultra-253b": "free/llama-4-maverick",
401
- "free/nemotron-3-super-120b": "free/llama-4-maverick",
402
- "free/nemotron-super-49b": "free/llama-4-maverick",
403
- "free/devstral-2-123b": "free/seed-oss-36b",
402
+ // devstral-2-123b died upstream; blockrun redirects it to gpt-oss-120b (2026-07-17 map)
403
+ "nvidia/devstral-2-123b": "free/gpt-oss-120b",
404
+ "free/nemotron-ultra-253b": "free/gpt-oss-120b",
405
+ "free/devstral-2-123b": "free/gpt-oss-120b",
404
406
  // New blockrun-featured free models (2026-06-14 catalog sweep)
405
407
  "mistral-large": "free/mistral-large-3-675b",
406
408
  "mistral-large-3-675b": "free/mistral-large-3-675b",
407
409
  "qwen3.5-122b": "free/qwen3.5-122b-a10b",
408
410
  "qwen3-122b": "free/qwen3.5-122b-a10b",
409
- // Free model shorthand aliases
411
+ // Free model shorthand aliases (v4-flash recovered 2026-07-17 — live again)
410
412
  "deepseek-free": "free/deepseek-v4-flash",
411
- // V4 Pro NVIDIA hung 2026-04-30 → flash
412
413
  "deepseek-v4-pro": "free/deepseek-v4-flash",
413
- // free shorthand → flash (pro hung)
414
+ // free shorthand → flash (pro still hung)
414
415
  "deepseek-v4-flash": "free/deepseek-v4-flash",
415
416
  "v4-pro": "free/deepseek-v4-flash",
416
417
  // V4 Pro NVIDIA hung → flash
417
418
  "v4-flash": "free/deepseek-v4-flash",
418
- "mistral-free": "free/llama-4-maverick",
419
+ "mistral-free": "free/mistral-large-3-675b",
420
+ // was llama-4-maverick (died 2026-07) — live Mistral flagship
419
421
  "glm-free": "free/seed-oss-36b",
420
422
  // qwen3-coder retired → live coder successor
421
- "llama-free": "free/llama-4-maverick",
423
+ "llama-free": "free/gpt-oss-120b",
424
+ // no live free Llama left (maverick died 2026-07)
422
425
  "qwen-coder": "free/seed-oss-36b",
423
426
  // qwen3-coder-480b retired → seed-oss-36b
424
427
  "qwen-coder-free": "free/seed-oss-36b",
425
- "qwen-thinking": "free/qwen3-next-80b-a3b-instruct",
428
+ "qwen-thinking": "free/gpt-oss-120b",
429
+ // qwen3-next died 2026-07-17; no live free Qwen left
426
430
  "qwen3-next": "free/qwen3-next-80b-a3b-instruct",
427
- // now a live model (instruct)
431
+ // explicit-ish pin — gateway redirects
428
432
  "qwen3-next-80b": "free/qwen3-next-80b-a3b-instruct",
429
- "mistral-small": "free/llama-4-maverick",
433
+ "mistral-small": "free/mistral-nemotron",
434
+ // closest live Mistral-family free model
430
435
  // New live free models (2026-06-14 BlockRun free-tier refresh)
431
436
  "seed-oss": "free/seed-oss-36b",
432
437
  "seed-oss-36b": "free/seed-oss-36b",
@@ -442,16 +447,19 @@ var init_models = __esm({
442
447
  "nemotron-omni": "free/nemotron-3-nano-omni-30b-a3b-reasoning",
443
448
  "nano-omni": "free/nemotron-3-nano-omni-30b-a3b-reasoning",
444
449
  "vision-free": "free/nemotron-3-nano-omni-30b-a3b-reasoning",
445
- // Retired shorthand aliases redirect to successors
446
- nemotron: "free/llama-4-maverick",
447
- "nemotron-ultra": "free/llama-4-maverick",
448
- "nemotron-253b": "free/llama-4-maverick",
449
- "nemotron-super": "free/llama-4-maverick",
450
- "nemotron-49b": "free/llama-4-maverick",
451
- "nemotron-120b": "free/llama-4-maverick",
450
+ // Retired shorthand aliases redirect to live successors (2026-07-17 map:
451
+ // llama-4-maverick died, so the old catch-all target moved to gpt-oss-120b)
452
+ nemotron: "free/nemotron-3-nano-omni-30b-a3b-reasoning",
453
+ // strongest live Nemotron
454
+ "nemotron-ultra": "free/gpt-oss-120b",
455
+ "nemotron-253b": "free/gpt-oss-120b",
456
+ "nemotron-super": "free/gpt-oss-120b",
457
+ "nemotron-49b": "free/gpt-oss-120b",
458
+ "nemotron-120b": "free/gpt-oss-120b",
452
459
  devstral: "free/seed-oss-36b",
453
460
  "devstral-2": "free/seed-oss-36b",
454
461
  maverick: "free/llama-4-maverick",
462
+ // explicit-ish pin — gateway redirects
455
463
  free: "free/gpt-oss-120b",
456
464
  // MiniMax (minimax → current flagship: M3)
457
465
  minimax: "minimax/minimax-m3",
@@ -1077,10 +1085,29 @@ var init_models = __esm({
1077
1085
  agentic: true,
1078
1086
  toolCalling: true
1079
1087
  },
1080
- // Kimi K2.7 — Moonshot's flagship (added 2026-06-13). 256K context, multi-modal
1081
- // (image + VIDEO input), returns reasoning_content. Served via BlockRun's OpenRouter
1082
- // credit pool (slug moonshotai/kimi-k2.7-code) failing over to direct Moonshot.
1083
- // AT-COST pricing ($0.95/$4.00 = OpenRouter COGS, zero margin) — same as K2.6.
1088
+ // Kimi K3 — Moonshot's flagship (blockrun added 2026-07-17, live-probed same day).
1089
+ // 2.8T-param open MoE, 1M context, image + text input, returns reasoning_content.
1090
+ // Priced at COGS + BlockRun's 5% margin: users pay ~$3.15/$15.75 per 1M; the fields
1091
+ // here store the raw $3.00/$15.00 COST (server applies margin at billing). ~5x K2.7,
1092
+ // so the generic `kimi` alias deliberately stays on K2.7 — address k3 explicitly.
1093
+ {
1094
+ id: "moonshot/kimi-k3",
1095
+ name: "Kimi K3",
1096
+ version: "k3",
1097
+ inputPrice: 3,
1098
+ outputPrice: 15,
1099
+ contextWindow: 1048576,
1100
+ maxOutput: 65536,
1101
+ reasoning: true,
1102
+ vision: true,
1103
+ agentic: true,
1104
+ toolCalling: true
1105
+ },
1106
+ // Kimi K2.7 — previous-gen flagship (added 2026-06-13); superseded by K3 + hidden on
1107
+ // BlockRun 2026-07-17 but kept routable. 256K context, multi-modal (image + VIDEO
1108
+ // input), returns reasoning_content. Served via BlockRun's OpenRouter credit pool
1109
+ // (slug moonshotai/kimi-k2.7-code) failing over to direct Moonshot. AT-COST pricing
1110
+ // ($0.95/$4.00 = OpenRouter COGS, zero margin) — same as K2.6.
1084
1111
  {
1085
1112
  id: "moonshot/kimi-k2.7",
1086
1113
  name: "Kimi K2.7",
@@ -1380,6 +1407,8 @@ var init_models = __esm({
1380
1407
  // V4 Flash: 284B / 13B active MoE, 1M context. ~5x faster than V4 Pro.
1381
1408
  // Strong on chat/summarization (MMLU-Pro 86.2). Caveat: weaker factual
1382
1409
  // recall (SimpleQA 34% vs Pro's 58%) — pick V4 Pro for fact-heavy loops.
1410
+ // Recovered in blockrun's 2026-07-17 live re-probe (3.2s both passes) —
1411
+ // un-hidden upstream and back in the advertised free 8.
1383
1412
  id: "free/deepseek-v4-flash",
1384
1413
  name: "[Free] DeepSeek V4 Flash",
1385
1414
  version: "v4-flash",
@@ -1460,10 +1489,12 @@ var init_models = __esm({
1460
1489
  },
1461
1490
  // 2026-06-16: BlockRun's 2026-06-14 free-tier refresh (self-healing health gate
1462
1491
  // + probe-verified lineup, blockrun commit 5817ecd) added these live NVIDIA free
1463
- // models. qwen3-coder-480b was retired (NVIDIA EOL 2026-06-14) and now redirects
1464
- // server-side to seed-oss-36b; deepseek-v4-flash/glm-4.7 stay catalog-only.
1492
+ // models. Status per blockrun's 2026-07-17 live re-probe: qwen3-coder-480b and
1493
+ // glm-4.7 stay dead (server-redirected); deepseek-v4-flash recovered (see above).
1465
1494
  {
1466
- // Qwen3-Next 80B (A3B active MoE): 262K context, strong reasoning + coding.
1495
+ // Qwen3-Next 80B (A3B active MoE): 262K context. DIED in the 2026-07-17
1496
+ // re-probe (">60s / DEGRADED") — hidden upstream, gateway redirects pinned
1497
+ // callers to gpt-oss-120b. Entry kept so pins stay routable; off the picker.
1467
1498
  id: "free/qwen3-next-80b-a3b-instruct",
1468
1499
  name: "[Free] Qwen3-Next 80B Instruct",
1469
1500
  version: "next-80b-a3b",
@@ -35452,10 +35483,10 @@ var init_config = __esm({
35452
35483
  // FREE — smaller, faster
35453
35484
  "free/mistral-large-3-675b",
35454
35485
  // FREE — 675B general flagship (re-featured 2026-06-14)
35455
- "free/qwen3.5-122b-a10b",
35456
- // FREE — newest-gen Qwen, strong general
35457
- "free/qwen3-next-80b-a3b-instruct",
35458
- // FREE — 262K ctx, strong general (deepseek-v4-flash retired)
35486
+ "free/deepseek-v4-flash",
35487
+ // FREE — 1M ctx, recovered in blockrun's 2026-07-17 re-probe
35488
+ "free/seed-oss-36b",
35489
+ // FREE — live coder (qwen3.5-122b + qwen3-next died 2026-07)
35459
35490
  "google/gemini-3.1-flash-lite",
35460
35491
  // $0.25/$1.50 — newest flash-lite
35461
35492
  "openai/gpt-5.4-nano",
@@ -84372,6 +84403,7 @@ function estimateAmount(modelId, bodyLength, maxTokens) {
84372
84403
  const estimatedOutputTokens = maxTokens || model.maxOutput || 4096;
84373
84404
  costUsd = estimatedInputTokens / 1e6 * model.inputPrice + estimatedOutputTokens / 1e6 * model.outputPrice;
84374
84405
  }
84406
+ if (costUsd > 0) costUsd += 2e-3;
84375
84407
  const amountMicros = Math.max(1e3, Math.ceil(costUsd * 1.2 * 1e6));
84376
84408
  return amountMicros.toString();
84377
84409
  }
@@ -87829,12 +87861,8 @@ var init_proxy = __esm({
87829
87861
  "free/gpt-oss-20b",
87830
87862
  "free/mistral-large-3-675b",
87831
87863
  // 675B general flagship (re-featured 2026-06-14)
87832
- "free/qwen3.5-122b-a10b",
87833
- // newest-gen Qwen, strong general
87834
- "free/qwen3-next-80b-a3b-instruct",
87835
- // 262K ctx, strong reasoning + coding
87836
- "free/llama-4-maverick",
87837
- // BlockRun's primary free fallback
87864
+ "free/deepseek-v4-flash",
87865
+ // 1M ctx, recovered 2026-07-17 (3.2s probe)
87838
87866
  "free/seed-oss-36b",
87839
87867
  // live coder (successor to retired qwen3-coder-480b)
87840
87868
  "free/mistral-nemotron",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockrun/clawrouter",
3
- "version": "0.12.227",
3
+ "version": "0.12.229",
4
4
  "description": "Smart LLM router — save 85% on inference costs. 55+ models (8 free), one wallet, x402 micropayments.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -135,7 +135,7 @@ Rules handle ~~80% of requests in <1ms. Only ambiguous queries hit the LLM class
135
135
 
136
136
  ## Available Models
137
137
 
138
- 55+ 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.4, gpt-4o, o3, claude-fable-5, 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-k2.7, and 8 free NVIDIA models (mistral-large-3-675b [default, 675B flagship], qwen3-next-80b-a3b-instruct, seed-oss-36b [coding], nemotron-3-nano-omni-30b-a3b-reasoning [vision], mistral-nemotron, step-3.7-flash, nemotron-nano-9b-v2, nemotron-nano-12b-v2-vl [vision]).
138
+ 55+ 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.4, gpt-4o, o3, claude-fable-5, 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, and 8 free NVIDIA models (mistral-large-3-675b [default, 675B flagship], deepseek-v4-flash [1M context], seed-oss-36b [coding], nemotron-3-nano-omni-30b-a3b-reasoning [vision], mistral-nemotron, step-3.7-flash, nemotron-nano-9b-v2, nemotron-nano-12b-v2-vl [vision]).
139
139
 
140
140
  ## Built-in Agent Tools
141
141
 
@@ -158,7 +158,7 @@ Realtime prices and historical OHLC across every asset class. The agent should c
158
158
 
159
159
  | Tool | Purpose | Price |
160
160
  | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------- |
161
- | `blockrun_image_generation` | 8 image models — GPT Image 1/2, Nano Banana / Pro, Seedream 5 Pro, Grok Imagine / Pro, CogView-4 | $0.015–$0.15 / image |
161
+ | `blockrun_image_generation` | 8 image models — GPT Image 1/2, Nano Banana / Pro, Seedream 5 Pro, Grok Imagine / Pro, CogView-4 | $0.015–$0.15 / image |
162
162
  | `blockrun_image_edit` | Edit / inpaint existing image (openai/gpt-image-1) | $0.02–$0.04 / image |
163
163
  | `blockrun_video_generation` | Grok Imagine + ByteDance Seedance (1.5-pro / 2.0-fast / 2.0) at 720p with synced audio (t2v default), 5–10s, + OpenAI Sora 2 via Azure (`azure/sora-2`, 4/8/12s, t2v + i2v, rejects human faces in reference images). Seedance is token-priced upstream (~20,256 tokens/sec at the 720p+audio default — 2× the prior 480p rate); `image_url` (image-to-video) costs the same as t2v since 2026-06-01. Seedance 2.0 variants accept optional `real_face_asset_id` (`ta_…`) for BytePlus RealFace character-consistency — mutually exclusive with `image_url`. | $0.05/s (Grok); $0.10/s (Sora 2); Seedance ~$0.46–$1.49 per 5s clip |
164
164
 
@@ -55,16 +55,16 @@ Display inline: `![generated image](http://localhost:8402/images/abc123.png)`
55
55
 
56
56
  ### Model Selection
57
57
 
58
- | Alias | Full ID | Price | Sizes | Best for |
59
- | ------------------ | ---------------------------- | ------------ | ------------------------------- | ---------------------------------------------------------------- |
60
- | `nano-banana` | `google/nano-banana` | $0.05 | 1024×1024, 1216×832, 1024×1792 | Default — fast, cheap, good quality |
61
- | `banana-pro` | `google/nano-banana-pro` | $0.10–$0.15 | up to 4096×4096 | High-res, large format |
62
- | `gpt-image` | `openai/gpt-image-1` | $0.02–$0.04 | 1024×1024, 1536×1024, 1024×1536 | Budget option; supports editing |
58
+ | Alias | Full ID | Price | Sizes | Best for |
59
+ | ------------------ | ---------------------------- | ------------ | ------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
60
+ | `nano-banana` | `google/nano-banana` | $0.05 | 1024×1024, 1216×832, 1024×1792 | Default — fast, cheap, good quality |
61
+ | `banana-pro` | `google/nano-banana-pro` | $0.10–$0.15 | up to 4096×4096 | High-res, large format |
62
+ | `gpt-image` | `openai/gpt-image-1` | $0.02–$0.04 | 1024×1024, 1536×1024, 1024×1536 | Budget option; supports editing |
63
63
  | `gpt-image-2` | `openai/gpt-image-2` | $0.06–$0.12 | 1024×1024, 1536×1024, 1024×1536 | Photorealistic, reasoning-driven, text rendering (slow — proxy polls up to 5min); legacy `dalle` alias routes here |
64
- | `seedream` | `bytedance/seedream-5-pro` | $0.045–$0.09 | up to 2848×1600 / 2304×1728 | Flagship quality, reference-image support |
65
- | `grok-imagine` | `xai/grok-imagine-image` | $0.02 | 1024×1024 | xAI Grok image style |
66
- | `grok-imagine-pro` | `xai/grok-imagine-image-pro` | $0.07 | 1024×1024 | Grok high-quality |
67
- | `cogview` | `zai/cogview-4` | $0.015–$0.02 | 512×512 to 1440×1440 | Cheapest — Zhipu CogView |
64
+ | `seedream` | `bytedance/seedream-5-pro` | $0.045–$0.09 | up to 2848×1600 / 2304×1728 | Flagship quality, reference-image support |
65
+ | `grok-imagine` | `xai/grok-imagine-image` | $0.02 | 1024×1024 | xAI Grok image style |
66
+ | `grok-imagine-pro` | `xai/grok-imagine-image-pro` | $0.07 | 1024×1024 | Grok high-quality |
67
+ | `cogview` | `zai/cogview-4` | $0.015–$0.02 | 512×512 to 1440×1440 | Cheapest — Zhipu CogView |
68
68
 
69
69
  **Choosing a model:**
70
70
 
@@ -31,12 +31,12 @@
31
31
  "zai/glm-5",
32
32
  "minimax/minimax-m3",
33
33
  "minimax/minimax-m2.7",
34
- "moonshot/kimi-k2.7",
34
+ "moonshot/kimi-k3",
35
35
  "deepseek/deepseek-v4-pro",
36
36
  "deepseek/deepseek-chat",
37
37
  "deepseek/deepseek-reasoner",
38
38
  "free/mistral-large-3-675b",
39
- "free/qwen3-next-80b-a3b-instruct",
39
+ "free/deepseek-v4-flash",
40
40
  "free/seed-oss-36b",
41
41
  "free/nemotron-3-nano-omni-30b-a3b-reasoning",
42
42
  "free/mistral-nemotron",