@blockrun/clawrouter 0.12.293 → 0.12.294

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
@@ -499,26 +499,26 @@ No Surf account, no API key — settles directly to Surf's Base treasury in USDC
499
499
  | free/nemotron-3-nano-omni-30b-a3b-reasoning | **FREE** | **FREE** | **$0** | 256K | reasoning (text only — see note) |
500
500
  | free/nemotron-3-ultra-550b | **FREE** | **FREE** | **$0** | 1M | largest free model (550B/55B MoE) |
501
501
  | free/llama-3.2-11b-vision | **FREE** | **FREE** | **$0** | 128K | Meta Llama (text only — see note) |
502
+ | free/muse-glimmer-30b | **FREE** | **FREE** | **$0** | 131K | reasoning (Meta Muse, text only) |
502
503
  | qwen/qwen3.7-flash | $0.03 | $0.13 | $0.0001 | 1M | reasoning, tools (fastest Qwen tier) |
504
+ | poolside/laguna-s-2.1 | $0.09 | $0.18 | $0.0001 | 1M | coding (paid sibling of laguna-xs) |
503
505
  | openai/gpt-5-nano | $0.05 | $0.40 | $0.0002 | 128K | tools |
504
506
  | openai/gpt-5.6-luna-pro | $0.20 | $1.20 | $0.0007 | 1M | reasoning, vision, agentic, tools |
505
507
  | openai/gpt-4.1-nano | $0.10 | $0.40 | $0.0003 | 128K | tools |
506
508
  | google/gemini-2.5-flash-lite | $0.10 | $0.40 | $0.0003 | 1M | tools |
507
509
  | openai/gpt-4o-mini | $0.15 | $0.60 | $0.0004 | 128K | tools |
508
510
  | openai/gpt-6-luna | $0.10 | $0.50 | $0.0003 | 1M | reasoning, vision, agentic, tools (GPT-6 fast tier) |
509
- | xai/grok-4-fast | $0.20 | $0.50 | $0.0004 | 131K | tools |
510
511
  | openai/gpt-5.6-luna | $0.20 | $1.20 | $0.0007 | 1M | vision, agentic, tools |
511
- | xai/grok-4-fast-reasoning | $0.20 | $0.50 | $0.0004 | 131K | reasoning, tools |
512
512
  | xai/grok-4-1-fast | $0.20 | $0.50 | $0.0004 | 131K | tools |
513
513
  | openai/gpt-5-mini | $0.25 | $2.00 | $0.0011 | 200K | tools |
514
514
  | qwen/qwen3.7-plus | $0.32 | $1.28 | $0.0008 | 1M | reasoning, agentic, tools (balanced Qwen) |
515
- | deepseek/deepseek-chat | $0.14 | $0.28 | $0.0002 | 1M | tools (V4 Flash chat) |
516
- | deepseek/deepseek-reasoner | $0.14 | $0.28 | $0.0002 | 1M | reasoning, tools (V4 Flash thinking) |
515
+ | deepseek/deepseek-v4.1-flash | $0.14 | $0.28 | $0.0002 | 1M | tools (V4.1 Flash, non-thinking) |
516
+ | deepseek/deepseek-chat | $0.14 | $0.28 | $0.0002 | 1M | tools (V4.1 Flash chat) |
517
+ | deepseek/deepseek-reasoner | $0.14 | $0.28 | $0.0002 | 1M | reasoning, tools (V4.1 Flash thinking) |
517
518
  | xiaomi/mimo-v2.5-pro | $0.435 | $0.87 | $0.0007 | 1M | reasoning (Xiaomi MiMo-V2.5 Pro) |
518
519
  | zai/glm-5-turbo | $1.20 | $4.00 | $0.0026 | 200K | tools |
519
520
  | minimax/minimax-m3 | $0.30 | $1.20 | $0.0008 | 1M | reasoning, agentic, tools |
520
521
  | minimax/minimax-m2.7 | $0.30 | $1.20 | $0.0008 | 205K | reasoning, agentic, tools |
521
- | minimax/minimax-m2.5 | $0.30 | $1.20 | $0.0008 | 205K | reasoning, agentic, tools |
522
522
  | google/gemini-2.5-flash | $0.30 | $2.50 | $0.0014 | 1M | vision, tools |
523
523
  | google/gemini-3.5-flash-lite | $0.30 | $2.50 | $0.0014 | 1M | reasoning, tools (thinking built-in) |
524
524
  | openai/gpt-4.1-mini | $0.40 | $1.60 | $0.0010 | 128K | tools |
@@ -528,42 +528,42 @@ No Surf account, no API key — settles directly to Surf's Base treasury in USDC
528
528
 
529
529
  ### Mid-Range Models ($0.001–$0.01/request)
530
530
 
531
- | Model | Input $/M | Output $/M | ~$/request | Context | Features |
532
- | --------------------------- | --------: | ---------: | ---------: | ------- | ----------------------------------------- |
533
- | anthropic/claude-haiku-4.5 | $1.00 | $5.00 | $0.0030 | 200K | vision, agentic, tools |
534
- | zai/glm-5 | $1.00 | $3.20 | $0.0021 | 200K | reasoning, tools |
535
- | openai/gpt-5.6-terra-pro | $2.00 | $12.00 | $0.0070 | 1M | reasoning, vision, agentic, tools |
536
- | openai/o1-mini | $1.10 | $4.40 | $0.0028 | 128K | reasoning, tools |
537
- | openai/o3-mini | $1.10 | $4.40 | $0.0028 | 128K | reasoning, tools |
538
- | openai/o4-mini | $1.10 | $4.40 | $0.0028 | 128K | reasoning, tools |
539
- | google/gemini-2.5-pro | $1.25 | $10.00 | $0.0056 | 1M | reasoning, vision, tools |
540
- | zai/glm-5.2 | $1.40 | $4.40 | $0.0029 | 1M | reasoning, coding, tools (flagship) |
541
- | zai/glm-5.1 | $1.40 | $4.40 | $0.0029 | 200K | reasoning, tools (promo ended 2026-06-05) |
542
- | deepseek/deepseek-v4-pro | $1.32 | $3.96 | $0.0026 | 1M | reasoning, agentic, tools (V4 flagship) |
543
- | qwen/qwen3.7-max | $1.475 | $4.425 | $0.0030 | 1M | reasoning, agentic, tools (Qwen flagship) |
544
- | xai/grok-4.3 | $1.25 | $2.50 | $0.0019 | 1M | reasoning, vision, agentic, tools |
545
- | google/gemini-3.8-flash | $0.75 | $3.75 | $0.0023 | 1M | reasoning, vision, tools (newest Flash) |
546
- | google/gemini-3.6-flash | $0.75 | $3.75 | $0.0023 | 1M | reasoning, vision, tools (thinking mode) |
547
- | google/gemini-3.5-flash | $1.50 | $9.00 | $0.0053 | 1M | reasoning, vision, tools (thinking) |
548
- | xai/grok-4.5 | $2.00 | $6.00 | $0.0040 | 500K | reasoning, vision, agentic, tools |
549
- | xai/grok-4.7 | $2.00 | $6.00 | $0.0040 | 500K | reasoning, vision, agentic, tools |
550
- | xai/grok-4.6 | $2.00 | $6.00 | $0.0040 | 500K | reasoning, vision, agentic, tools |
551
- | xai/grok-build-0.1 | $1.00 | $2.00 | $0.0015 | 256K | agentic coding, tools |
552
- | openai/gpt-5.2 | $1.75 | $14.00 | $0.0079 | 400K | reasoning, vision, agentic, tools |
553
- | openai/gpt-5.3 | $1.75 | $14.00 | $0.0079 | 128K | reasoning, vision, agentic, tools |
554
- | openai/gpt-5.3-codex | $1.75 | $14.00 | $0.0079 | 400K | agentic, tools |
555
- | openai/gpt-5.1 | $1.25 | $10.00 | $0.0056 | 400K | reasoning, vision, agentic, tools |
556
- | openai/gpt-4.1 | $2.00 | $8.00 | $0.0050 | 128K | vision, tools |
557
- | openai/o3 | $2.00 | $8.00 | $0.0050 | 200K | reasoning, tools |
558
- | google/gemini-3-pro-preview | $2.00 | $12.00 | $0.0070 | 1M | reasoning, vision, tools |
559
- | google/gemini-3.1-pro | $2.00 | $12.00 | $0.0070 | 1M | reasoning, vision, tools |
560
- | xai/grok-2-vision | $2.00 | $10.00 | $0.0060 | 131K | vision, tools |
561
- | openai/gpt-4o | $2.50 | $10.00 | $0.0063 | 128K | vision, agentic, tools |
562
- | openai/gpt-5.4 | $2.50 | $15.00 | $0.0088 | 1M | reasoning, vision, agentic, tools |
563
- | openai/gpt-5.6-terra | $2.00 | $12.00 | $0.0070 | 1M | reasoning, vision, agentic, tools |
564
- | openai/gpt-6-sol | $2.00 | $10.00 | $0.0060 | 1M | reasoning, vision, agentic, tools (GPT-6) |
565
- | anthropic/claude-sonnet-5.5 | $2.00 | $10.00 | $0.0060 | 1M | reasoning, vision, agentic, tools |
566
- | anthropic/claude-sonnet-5 | $2.00 | $10.00 | $0.0060 | 1M | reasoning, vision, agentic, tools |
531
+ | Model | Input $/M | Output $/M | ~$/request | Context | Features |
532
+ | --------------------------- | --------: | ---------: | ---------: | ------- | -------------------------------------------- |
533
+ | anthropic/claude-haiku-4.5 | $1.00 | $5.00 | $0.0030 | 200K | vision, agentic, tools |
534
+ | zai/glm-5 | $1.00 | $3.20 | $0.0021 | 200K | reasoning, tools |
535
+ | mistral/mistral-large-4 | $0.68 | $2.09 | $0.0014 | 512K | reasoning, vision, tools (launch-promo rate) |
536
+ | tencent/hy4-preview | $0.834 | $2.501 | $0.0017 | 1M | reasoning (Tencent Hy4, 770B MoE) |
537
+ | openai/gpt-5.6-terra-pro | $2.00 | $12.00 | $0.0070 | 1M | reasoning, vision, agentic, tools |
538
+ | openai/o3-mini | $1.10 | $4.40 | $0.0028 | 128K | reasoning, tools |
539
+ | openai/o4-mini | $1.10 | $4.40 | $0.0028 | 128K | reasoning, tools |
540
+ | google/gemini-2.5-pro | $1.25 | $10.00 | $0.0056 | 1M | reasoning, vision, tools |
541
+ | zai/glm-5.2 | $1.40 | $4.40 | $0.0029 | 1M | reasoning, coding, tools (flagship) |
542
+ | zai/glm-5.1 | $1.40 | $4.40 | $0.0029 | 200K | reasoning, tools (promo ended 2026-06-05) |
543
+ | deepseek/deepseek-v4-pro | $1.32 | $3.96 | $0.0026 | 1M | reasoning, agentic, tools (V4 flagship) |
544
+ | qwen/qwen3.7-max | $1.475 | $4.425 | $0.0030 | 1M | reasoning, agentic, tools (Qwen flagship) |
545
+ | qwen/qwen3.8-max | $2.00 | $6.00 | $0.0040 | 1M | reasoning (Qwen 3.8 flagship) |
546
+ | xai/grok-4.3 | $1.25 | $2.50 | $0.0019 | 1M | reasoning, vision, agentic, tools |
547
+ | google/gemini-3.8-flash | $0.75 | $3.75 | $0.0023 | 1M | reasoning, vision, tools (newest Flash) |
548
+ | google/gemini-3.6-flash | $0.75 | $3.75 | $0.0023 | 1M | reasoning, vision, tools (thinking mode) |
549
+ | google/gemini-3.5-flash | $1.50 | $9.00 | $0.0053 | 1M | reasoning, vision, tools (thinking) |
550
+ | xai/grok-4.5 | $2.00 | $6.00 | $0.0040 | 500K | reasoning, vision, agentic, tools |
551
+ | xai/grok-4.7 | $2.00 | $6.00 | $0.0040 | 500K | reasoning, vision, agentic, tools |
552
+ | xai/grok-4.6 | $2.00 | $6.00 | $0.0040 | 500K | reasoning, vision, agentic, tools |
553
+ | xai/grok-build-0.1 | $1.00 | $2.00 | $0.0015 | 256K | agentic coding, tools |
554
+ | openai/gpt-5.2 | $1.75 | $14.00 | $0.0079 | 400K | reasoning, vision, agentic, tools |
555
+ | openai/gpt-5.3-codex | $1.75 | $14.00 | $0.0079 | 400K | agentic, tools |
556
+ | openai/gpt-5.1 | $1.25 | $10.00 | $0.0056 | 400K | reasoning, vision, agentic, tools |
557
+ | openai/gpt-4.1 | $2.00 | $8.00 | $0.0050 | 128K | vision, tools |
558
+ | openai/o3 | $2.00 | $8.00 | $0.0050 | 200K | reasoning, tools |
559
+ | google/gemini-3.1-pro | $2.00 | $12.00 | $0.0070 | 1M | reasoning, vision, tools |
560
+ | openai/gpt-4o | $2.50 | $10.00 | $0.0063 | 128K | vision, agentic, tools |
561
+ | openai/gpt-5.4 | $2.50 | $15.00 | $0.0088 | 1M | reasoning, vision, agentic, tools |
562
+ | openai/gpt-5.6-terra | $2.00 | $12.00 | $0.0070 | 1M | reasoning, vision, agentic, tools |
563
+ | openai/gpt-6-sol | $2.00 | $10.00 | $0.0060 | 1M | reasoning, vision, agentic, tools (GPT-6) |
564
+ | openai/gpt-6.1-sol | $2.00 | $10.00 | $0.0060 | 1M | reasoning, vision, agentic, tools (GPT-6.1) |
565
+ | anthropic/claude-sonnet-5.5 | $2.00 | $10.00 | $0.0060 | 1M | reasoning, vision, agentic, tools |
566
+ | anthropic/claude-sonnet-5 | $2.00 | $10.00 | $0.0060 | 1M | reasoning, vision, agentic, tools |
567
567
 
568
568
  ### Premium Models ($0.01+/request)
569
569
 
package/dist/cli.js CHANGED
@@ -6594,6 +6594,7 @@ var init_top_models = __esm({
6594
6594
  "anthropic/claude-haiku-4.5",
6595
6595
  "openai/gpt-6-astra",
6596
6596
  "openai/gpt-6-sol",
6597
+ "openai/gpt-6.1-sol",
6597
6598
  "openai/gpt-6-luna",
6598
6599
  "openai/gpt-5.6-terra",
6599
6600
  "openai/gpt-5.6-sol",
@@ -6629,13 +6630,18 @@ var init_top_models = __esm({
6629
6630
  "zai/glm-5",
6630
6631
  "xiaomi/mimo-v2.5",
6631
6632
  "xiaomi/mimo-v2.5-pro",
6633
+ "tencent/hy4-preview",
6634
+ "mistral/mistral-large-4",
6635
+ "poolside/laguna-s-2.1",
6632
6636
  "minimax/minimax-m3",
6633
6637
  "minimax/minimax-m2.7",
6634
6638
  "moonshot/kimi-k3",
6635
6639
  "qwen/qwen3.7-max",
6640
+ "qwen/qwen3.8-max",
6636
6641
  "qwen/qwen3.8-flash",
6637
6642
  "deepseek/deepseek-v4-flash-vision-exp",
6638
6643
  "deepseek/deepseek-v4-pro",
6644
+ "deepseek/deepseek-v4.1-flash",
6639
6645
  "deepseek/deepseek-chat",
6640
6646
  "deepseek/deepseek-reasoner",
6641
6647
  "free/nemotron-3.5-lightning",
@@ -6643,7 +6649,8 @@ var init_top_models = __esm({
6643
6649
  "free/north-mini-code",
6644
6650
  "free/nemotron-3-nano-omni-30b-a3b-reasoning",
6645
6651
  "free/nemotron-3-ultra-550b",
6646
- "free/llama-3.2-11b-vision"
6652
+ "free/llama-3.2-11b-vision",
6653
+ "free/muse-glimmer-30b"
6647
6654
  ];
6648
6655
  }
6649
6656
  });
@@ -6859,6 +6866,10 @@ var init_models = __esm({
6859
6866
  "gpt-6-astra": "openai/gpt-6-astra",
6860
6867
  "gpt-6-sol": "openai/gpt-6-sol",
6861
6868
  "gpt-6-luna": "openai/gpt-6-luna",
6869
+ // GPT-6.1 Sol (blockrun 2026-10-09): refreshed Sol at the same $2/$10, half
6870
+ // gpt-6-sol's cached-input rate. Explicit pin only, same rule as above.
6871
+ "gpt-6.1-sol": "openai/gpt-6.1-sol",
6872
+ "gpt-6-1-sol": "openai/gpt-6.1-sol",
6862
6873
  "gpt-5.5": "openai/gpt-5.5",
6863
6874
  "gpt-5.5-pro": "openai/gpt-5.5-pro",
6864
6875
  // ChatGPT Instant. `chat-latest` is a rolling upstream id — pinning it means
@@ -6885,6 +6896,14 @@ var init_models = __esm({
6885
6896
  deepseek: "deepseek/deepseek-chat",
6886
6897
  "deepseek-chat": "deepseek/deepseek-chat",
6887
6898
  reasoner: "deepseek/deepseek-reasoner",
6899
+ // DeepSeek V4.1 Flash (blockrun 2026-10-20) — its own id now, PAID at the
6900
+ // same $0.14/$0.28 as deepseek-chat (which the gateway serves from the same
6901
+ // upstream). Explicit pins only: bare `deepseek` stays on deepseek-chat, and
6902
+ // the free-tier `deepseek-v4-flash`/`v4-flash` shorthands below are NOT moved
6903
+ // onto it — a caller who typed a free name must never start paying.
6904
+ "deepseek-v4.1-flash": "deepseek/deepseek-v4.1-flash",
6905
+ "deepseek-v4-1-flash": "deepseek/deepseek-v4.1-flash",
6906
+ "v4.1-flash": "deepseek/deepseek-v4.1-flash",
6888
6907
  // Kimi / Moonshot — K3 is the featured flagship on BlockRun (added 2026-07-17; K2.7
6889
6908
  // hidden/superseded, K2.6 hidden, K2.5 hidden). K3 is ~5x K2.7's price ($3/$15 vs
6890
6909
  // $0.95/$4.00), so the BARE aliases deliberately STAY on K2.7 — repointing them to K3
@@ -6909,6 +6928,11 @@ var init_models = __esm({
6909
6928
  // `kimi` on K2.7. (`grok` WAS promoted to 4.5, but only after the cost
6910
6929
  // tradeoff was argued explicitly; there's no such case for qwen yet.)
6911
6930
  "qwen3.7-max": "qwen/qwen3.7-max",
6931
+ // Qwen3.8 Max (blockrun 2026-10-02) — the 3.8 generation's flagship, $2/$6.
6932
+ // Explicit pins only; bare `qwen` stays unbound for the reason above.
6933
+ "qwen3.8-max": "qwen/qwen3.8-max",
6934
+ "qwen-3.8-max": "qwen/qwen3.8-max",
6935
+ "qwen3-8-max": "qwen/qwen3.8-max",
6912
6936
  // Qwen3.8 Flash — newer generation than the whole 3.7 line, and cheaper than
6913
6937
  // the 3.7-plus tier it beats. Bare `qwen` stays UNBOUND (every other qwen*
6914
6938
  // shorthand resolves to a free model, so binding the short name to a paid
@@ -6937,6 +6961,13 @@ var init_models = __esm({
6937
6961
  hy3: "tencent/hy3",
6938
6962
  tencent: "tencent/hy3",
6939
6963
  hunyuan: "tencent/hy3",
6964
+ // Hy4 Preview (blockrun 2026-10-02) — 770B MoE at $0.834/$2.501. Explicit
6965
+ // pins only: bare `tencent`/`hunyuan` are NOT moved onto it, because that
6966
+ // would ~6x the quote for callers who never typed a version (the rule that
6967
+ // keeps `kimi` on K2.7). Like hy3 it is a verbose reasoner — a small
6968
+ // max_tokens can come back with no content.
6969
+ hy4: "tencent/hy4-preview",
6970
+ "hy4-preview": "tencent/hy4-preview",
6940
6971
  mimo: "xiaomi/mimo-v2.5-pro",
6941
6972
  "mimo-v2.5-pro": "xiaomi/mimo-v2.5-pro",
6942
6973
  // RETARGETED 2026-08-30, Pro -> the real thing. This key used to point at
@@ -6987,7 +7018,11 @@ var init_models = __esm({
6987
7018
  "grok-4.6": "xai/grok-4.6",
6988
7019
  "grok-4-6": "xai/grok-4.6",
6989
7020
  "grok-4.3": "xai/grok-4.3",
6990
- "grok-fast": "xai/grok-4-fast-reasoning",
7021
+ // grok-4-fast-* are redirected server-side to grok-4-1-fast-* (blockrun
7022
+ // MODEL_REDIRECTS, Azure Foundry EOL'd the 4-fast line 2026-05-01). The
7023
+ // generic shorthand follows the redirect rather than chaining through it;
7024
+ // same $0.20/$0.50.
7025
+ "grok-fast": "xai/grok-4-1-fast-reasoning",
6991
7026
  "grok-build": "xai/grok-build-0.1",
6992
7027
  "grok-code": "xai/grok-build-0.1",
6993
7028
  // xAI's agentic coding model (Build 0.1, 2026-06-04)
@@ -6996,8 +7031,8 @@ var init_models = __esm({
6996
7031
  // bare alias (delisted SKU, kept on cheap chat)
6997
7032
  "xai/grok-code-fast-1": "deepseek/deepseek-chat",
6998
7033
  // delisted 2026-03-12
6999
- "xai/grok-3-fast": "xai/grok-4-fast-reasoning",
7000
- // delisted (too expensive)
7034
+ "xai/grok-3-fast": "xai/grok-4-1-fast-reasoning",
7035
+ // delisted (too expensive); follows the 4-fast → 4-1-fast redirect
7001
7036
  // NVIDIA — backward compat aliases (nvidia/xxx → free/xxx)
7002
7037
  // Default free model is nemotron-3.5-lightning — the same model
7003
7038
  // @blockrun/router-core opens the eco SIMPLE tier on. It replaced
@@ -7008,10 +7043,12 @@ var init_models = __esm({
7008
7043
  // We follow blockrun's own retarget of step-3.7-flash rather than picking a
7009
7044
  // different survivor, so the proxy and the gateway name the same model.
7010
7045
  //
7011
- // gpt-oss-120b/20b RECOVERED on the same probe run and are reachable again,
7012
- // but they stay withheld from blockrun's public catalog over NVIDIA's
7013
- // prompt-retention terms — so pins that NAME gpt-oss stay routable below and
7014
- // nothing generic may land on it.
7046
+ // gpt-oss-120b recovered on that probe run, then hit NVIDIA's PUBLISHED EOL
7047
+ // on 2026-09-03 (410 Gone with an end-of-life date). The gateway marks it
7048
+ // available:false and redirects nvidia/gpt-oss-120b to nemotron-3-super-120b.
7049
+ // gpt-oss-20b is still served but stays withheld from the public catalog over
7050
+ // NVIDIA's prompt-retention terms. Pins that NAME gpt-oss keep the real id
7051
+ // (the gateway redirects them); nothing generic may land on either.
7015
7052
  nvidia: "free/nemotron-3.5-lightning",
7016
7053
  "gpt-120b": "free/gpt-oss-120b",
7017
7054
  // names the model itself — gateway redirects
@@ -7022,14 +7059,18 @@ var init_models = __esm({
7022
7059
  // probe passes; prod gate fired [ALERT][free-model-dead] kind=gone twice that
7023
7060
  // morning). The whole nvidia/deepseek-* family is now dead upstream — blockrun
7024
7061
  // hid flash and retargeted v3.2/v4-pro (whose redirects chained through flash)
7025
- // straight to gpt-oss-120b. Ids naming v4-flash itself keep the real id (the
7026
- // gateway redirects them); the v3.2/v4-pro ids follow blockrun's retarget
7062
+ // straight to gpt-oss-120b. The v3.2/v4-pro ids follow blockrun's retarget
7027
7063
  // rather than chaining through a second dead model.
7064
+ // 2026-10-20: blockrun REMOVED nvidia/deepseek-v4-flash and its redirect —
7065
+ // the gateway now answers 400 Unknown model for it (and for the bare
7066
+ // `deepseek-v4-flash`). Its replacement is the PAID deepseek/deepseek-v4.1-
7067
+ // flash, which a free-tier pin must not silently land on, so every alias
7068
+ // that named the free v4-flash now follows the free default instead.
7028
7069
  "nvidia/deepseek-v3.2": "free/nemotron-3.5-lightning",
7029
7070
  "free/deepseek-v3.2": "free/nemotron-3.5-lightning",
7030
7071
  "nvidia/deepseek-v4-pro": "free/nemotron-3.5-lightning",
7031
7072
  "free/deepseek-v4-pro": "free/nemotron-3.5-lightning",
7032
- "nvidia/deepseek-v4-flash": "free/deepseek-v4-flash",
7073
+ "nvidia/deepseek-v4-flash": "free/nemotron-3.5-lightning",
7033
7074
  "nvidia/nemotron-3-nano-omni-30b-a3b-reasoning": "free/nemotron-3-nano-omni-30b-a3b-reasoning",
7034
7075
  // qwen3-coder-480b retired (NVIDIA EOL 2026-06-14). Its server-side redirect used
7035
7076
  // to be seed-oss-36b, but that EOL'd too on 2026-08-03, so blockrun re-pointed it
@@ -7066,21 +7107,28 @@ var init_models = __esm({
7066
7107
  "free/nemotron-ultra-253b": "free/nemotron-3.5-lightning",
7067
7108
  "free/devstral-2-123b": "free/nemotron-3.5-lightning",
7068
7109
  // Explicit-ish pins — dead upstream since 2026-07-28, gateway redirects to gpt-oss-120b
7110
+ // (now nemotron-3-super-120b). Bare `mistral-large` deliberately stays here
7111
+ // rather than moving to the paid Mistral Large 4 below: it has always named a
7112
+ // free model, and a short name must not start billing silently.
7069
7113
  "mistral-large": "free/mistral-large-3-675b",
7070
7114
  "mistral-large-3-675b": "free/mistral-large-3-675b",
7071
7115
  "qwen3.5-122b": "free/qwen3.5-122b-a10b",
7116
+ // Mistral Large 4 (blockrun 2026-10-07) — PAID, $0.68/$2.09 (a launch promo
7117
+ // upstream; Mistral lists $1.36/$4.18). Explicit pins only.
7118
+ "mistral-large-4": "mistral/mistral-large-4",
7072
7119
  "qwen3-122b": "free/qwen3.5-122b-a10b",
7073
7120
  // Free model shorthand aliases. v4-flash EOL'd 2026-08-12 — no free DeepSeek
7074
7121
  // is left anywhere, so the generic "a free deepseek" shorthand follows the
7075
7122
  // gateway's retarget (blockrun's /free-deepseek page points at gpt-oss-120b
7076
- // too). Shorthands naming v4-flash itself stay on the real id — the gateway
7077
- // redirects them, same treatment as seed-oss/mistral-large pins.
7123
+ // too). Shorthands naming v4-flash itself followed the free id until the
7124
+ // gateway stopped serving it (400 since 2026-10-20, see above); they now take
7125
+ // the free default too, never the paid V4.1 Flash.
7078
7126
  "deepseek-free": "free/nemotron-3.5-lightning",
7079
7127
  "deepseek-v4-pro": "free/nemotron-3.5-lightning",
7080
7128
  // free shorthand; pro dead upstream (410)
7081
- "deepseek-v4-flash": "free/deepseek-v4-flash",
7129
+ "deepseek-v4-flash": "free/nemotron-3.5-lightning",
7082
7130
  "v4-pro": "free/nemotron-3.5-lightning",
7083
- "v4-flash": "free/deepseek-v4-flash",
7131
+ "v4-flash": "free/nemotron-3.5-lightning",
7084
7132
  // mistral-nemotron died 2026-08-30 and it was the LAST free Mistral anywhere —
7085
7133
  // blockrun's own /free-mistral page now says so plainly instead of naming one.
7086
7134
  // Point the generic shorthand at the free default rather than advertise a
@@ -7178,6 +7226,18 @@ var init_models = __esm({
7178
7226
  "north-mini-code": "free/north-mini-code",
7179
7227
  laguna: "free/laguna-xs-2.1",
7180
7228
  "laguna-xs": "free/laguna-xs-2.1",
7229
+ // Laguna S 2.1 is the PAID, much larger sibling ($0.09/$0.18, 1M ctx). Bare
7230
+ // `laguna` stays on the free XS — moving it would bill callers who typed the
7231
+ // short name expecting the free model.
7232
+ "laguna-s": "poolside/laguna-s-2.1",
7233
+ "laguna-s-2.1": "poolside/laguna-s-2.1",
7234
+ // Muse Glimmer 30B (blockrun 2026-10-02) — Meta's open line after Llama,
7235
+ // free on NVIDIA. A reasoning model: a small max_tokens is spent entirely in
7236
+ // reasoning and returns empty content.
7237
+ "nvidia/muse-glimmer-30b": "free/muse-glimmer-30b",
7238
+ muse: "free/muse-glimmer-30b",
7239
+ "muse-glimmer": "free/muse-glimmer-30b",
7240
+ "muse-glimmer-30b": "free/muse-glimmer-30b",
7181
7241
  // `free` = the free-tier default. Must equal router-core's ecoTiers.SIMPLE
7182
7242
  // primary and the head of proxy.ts FREE_MODELS so `/model free`, the eco
7183
7243
  // profile and the budget-cap free fallback all agree on one live model.
@@ -7234,6 +7294,9 @@ var init_models = __esm({
7234
7294
  cogview: "zai/cogview-4",
7235
7295
  // Video generation
7236
7296
  "grok-video": "xai/grok-imagine-video",
7297
+ // Explicit pin; bare `grok-video` stays on the $0.05/s original.
7298
+ "grok-video-1.5": "xai/grok-imagine-video-1.5",
7299
+ "grok-video-1-5": "xai/grok-imagine-video-1.5",
7237
7300
  // Bare `seedance` deliberately stays on 1.5-pro. It is the cheapest of the
7238
7301
  // family ($0.070/s vs 2.5's $0.315/s) and `/videogen` documents it as
7239
7302
  // "default — cheapest"; repointing it at the newest tier would 4.5x the
@@ -7371,6 +7434,23 @@ var init_models = __esm({
7371
7434
  agentic: true,
7372
7435
  toolCalling: true
7373
7436
  },
7437
+ {
7438
+ // GPT-6.1 Sol (blockrun 2026-10-09): the refreshed Sol. Same $2/$10 and
7439
+ // 1.05M/128K envelope as gpt-6-sol; cached input is $0.10, half of Sol's.
7440
+ // Vision confirmed upstream with a 64x64 PNG. Long tier as on the rest of
7441
+ // the family (>272K prompt: $4/$15) — telemetry only, the charge is 402.
7442
+ id: "openai/gpt-6.1-sol",
7443
+ name: "GPT-6.1 Sol",
7444
+ version: "6.1",
7445
+ inputPrice: 2,
7446
+ outputPrice: 10,
7447
+ contextWindow: 105e4,
7448
+ maxOutput: 128e3,
7449
+ reasoning: true,
7450
+ vision: true,
7451
+ agentic: true,
7452
+ toolCalling: true
7453
+ },
7374
7454
  {
7375
7455
  id: "openai/gpt-6-luna",
7376
7456
  name: "GPT-6 Luna",
@@ -7596,7 +7676,12 @@ var init_models = __esm({
7596
7676
  reasoning: true,
7597
7677
  vision: true,
7598
7678
  agentic: true,
7599
- toolCalling: true
7679
+ toolCalling: true,
7680
+ // RETIRED 2026-08-29: OpenAI answers 404 model_not_found upstream. The
7681
+ // gateway marks it available:false and redirects it to gpt-5.2 at the same
7682
+ // $1.75/$14. Entry kept so explicit pins stay priced; off the picker.
7683
+ deprecated: true,
7684
+ fallbackModel: "openai/gpt-5.2"
7600
7685
  },
7601
7686
  // OpenAI Codex Family
7602
7687
  {
@@ -8067,13 +8152,14 @@ var init_models = __esm({
8067
8152
  toolCalling: true
8068
8153
  },
8069
8154
  // DeepSeek — V4 family (2026-04-24). The legacy deepseek-chat/reasoner
8070
- // aliases are served upstream as V4 Flash non-thinking / thinking modes.
8155
+ // aliases are served upstream as V4.1 Flash non-thinking / thinking modes
8156
+ // (blockrun renamed them "(V4.1 Flash)" on 2026-10-20).
8071
8157
  // Repriced 0.20/0.40 → 0.14/0.28 (blockrun #354: DeepSeek's published
8072
8158
  // deepseek-v4-flash rate; the old numbers were 1.43x the real rate).
8073
8159
  {
8074
8160
  id: "deepseek/deepseek-chat",
8075
- name: "DeepSeek V4 Flash Chat",
8076
- version: "4-flash",
8161
+ name: "DeepSeek Chat (V4.1 Flash)",
8162
+ version: "4.1-flash",
8077
8163
  inputPrice: 0.14,
8078
8164
  outputPrice: 0.28,
8079
8165
  contextWindow: 1048576,
@@ -8082,8 +8168,8 @@ var init_models = __esm({
8082
8168
  },
8083
8169
  {
8084
8170
  id: "deepseek/deepseek-reasoner",
8085
- name: "DeepSeek V4 Flash Reasoner",
8086
- version: "4-flash",
8171
+ name: "DeepSeek Reasoner (V4.1 Flash)",
8172
+ version: "4.1-flash",
8087
8173
  inputPrice: 0.14,
8088
8174
  outputPrice: 0.28,
8089
8175
  contextWindow: 1048576,
@@ -8091,6 +8177,22 @@ var init_models = __esm({
8091
8177
  reasoning: true,
8092
8178
  toolCalling: true
8093
8179
  },
8180
+ {
8181
+ // DeepSeek V4.1 Flash (blockrun 2026-10-20). The gateway serves it from the
8182
+ // SAME upstream as deepseek-chat, at the same price, in the same
8183
+ // non-thinking mode (thinking is not caller-togglable; use
8184
+ // deepseek-reasoner for it) — so the flags mirror deepseek-chat rather than
8185
+ // the catalog's "reasoning" category, which would enrol it in the long
8186
+ // reasoning timeout for a model that does not think.
8187
+ id: "deepseek/deepseek-v4.1-flash",
8188
+ name: "DeepSeek V4.1 Flash",
8189
+ version: "4.1-flash",
8190
+ inputPrice: 0.14,
8191
+ outputPrice: 0.28,
8192
+ contextWindow: 1048576,
8193
+ maxOutput: 65536,
8194
+ toolCalling: true
8195
+ },
8094
8196
  {
8095
8197
  // V4 flagship — strongest open-weight reasoner. The 75% launch promo
8096
8198
  // became DeepSeek's permanent list price after 2026-05-31. Resold via
@@ -8244,7 +8346,11 @@ var init_models = __esm({
8244
8346
  contextWindow: 131072,
8245
8347
  maxOutput: 16384,
8246
8348
  reasoning: true,
8247
- toolCalling: true
8349
+ toolCalling: true,
8350
+ // Server-side redirect on blockrun (MODEL_REDIRECTS): Azure Foundry EOL'd
8351
+ // this line 2026-05-01, so the gateway serves it as grok-4-1-fast-non-reasoning. Kept for pins.
8352
+ deprecated: true,
8353
+ fallbackModel: "xai/grok-4-1-fast-non-reasoning"
8248
8354
  },
8249
8355
  // grok-3-fast removed - too expensive ($5/$25), use grok-4-fast instead
8250
8356
  {
@@ -8255,7 +8361,11 @@ var init_models = __esm({
8255
8361
  outputPrice: 0.5,
8256
8362
  contextWindow: 131072,
8257
8363
  maxOutput: 16384,
8258
- toolCalling: true
8364
+ toolCalling: true,
8365
+ // Server-side redirect on blockrun (MODEL_REDIRECTS): Azure Foundry EOL'd
8366
+ // this line 2026-05-01, so the gateway serves it as grok-4-1-fast-non-reasoning. Kept for pins.
8367
+ deprecated: true,
8368
+ fallbackModel: "xai/grok-4-1-fast-non-reasoning"
8259
8369
  },
8260
8370
  // xAI Grok 4 Family - Ultra-cheap fast models
8261
8371
  {
@@ -8267,7 +8377,11 @@ var init_models = __esm({
8267
8377
  contextWindow: 2e6,
8268
8378
  maxOutput: 16384,
8269
8379
  reasoning: true,
8270
- toolCalling: true
8380
+ toolCalling: true,
8381
+ // Server-side redirect on blockrun (MODEL_REDIRECTS): Azure Foundry EOL'd
8382
+ // this line 2026-05-01, so the gateway serves it as grok-4-1-fast-reasoning. Kept for pins.
8383
+ deprecated: true,
8384
+ fallbackModel: "xai/grok-4-1-fast-reasoning"
8271
8385
  },
8272
8386
  {
8273
8387
  id: "xai/grok-4-fast-non-reasoning",
@@ -8277,7 +8391,11 @@ var init_models = __esm({
8277
8391
  outputPrice: 0.5,
8278
8392
  contextWindow: 2e6,
8279
8393
  maxOutput: 16384,
8280
- toolCalling: true
8394
+ toolCalling: true,
8395
+ // Server-side redirect on blockrun (MODEL_REDIRECTS): Azure Foundry EOL'd
8396
+ // this line 2026-05-01, so the gateway serves it as grok-4-1-fast-non-reasoning. Kept for pins.
8397
+ deprecated: true,
8398
+ fallbackModel: "xai/grok-4-1-fast-non-reasoning"
8281
8399
  },
8282
8400
  {
8283
8401
  id: "xai/grok-4-1-fast-reasoning",
@@ -8322,7 +8440,11 @@ var init_models = __esm({
8322
8440
  contextWindow: 32768,
8323
8441
  maxOutput: 16384,
8324
8442
  vision: true,
8325
- toolCalling: true
8443
+ toolCalling: true,
8444
+ // Retired upstream 2026-07-07 (HTTP 400 on api.x.ai, no route anywhere);
8445
+ // the gateway redirects it to grok-4.3. Kept for pins.
8446
+ deprecated: true,
8447
+ fallbackModel: "xai/grok-4.3"
8326
8448
  },
8327
8449
  // xAI Grok 4.20 Family (hidden in picker; explicit-only — mirrors BlockRun hidden:true)
8328
8450
  {
@@ -8520,6 +8642,10 @@ var init_models = __esm({
8520
8642
  // 2026-04-21: slimmed to 8 models, retired nemotron family + mistral-large-3-675b
8521
8643
  // + devstral-2-123b with successor redirects.
8522
8644
  {
8645
+ // EOL 2026-09-03: NVIDIA publishes 410 Gone with an end-of-life date. The
8646
+ // gateway lists nvidia/gpt-oss-120b as available:false and redirects it to
8647
+ // nvidia/nemotron-3-super-120b. Entry kept so explicit pins stay routable;
8648
+ // off the picker, the FREE_MODELS cascade and every default.
8523
8649
  id: "free/gpt-oss-120b",
8524
8650
  name: "[Free] GPT-OSS 120B",
8525
8651
  version: "120b",
@@ -8542,9 +8668,12 @@ var init_models = __esm({
8542
8668
  // published 410 Gone ("has reached its end of life") on both probe passes
8543
8669
  // and blockrun's prod gate fired [ALERT][free-model-dead] kind=gone twice
8544
8670
  // that morning. The whole nvidia/deepseek-* family is dead upstream; there
8545
- // is no free DeepSeek left anywhere. Blockrun hid it and redirects calls to
8546
- // gpt-oss-120b. Entry kept so explicit pins stay routable; off the picker,
8547
- // the FREE_MODELS cascade, and the router fallback chains.
8671
+ // is no free DeepSeek left anywhere. Blockrun hid it and redirected calls,
8672
+ // then on 2026-10-20 REMOVED it outright: the gateway answers 400 Unknown
8673
+ // model, deliberately not moving pins onto the paid deepseek-v4.1-flash.
8674
+ // Entry kept only so a direct pin is still classified free (never billed);
8675
+ // no alias points here any more. Off the picker, the FREE_MODELS cascade,
8676
+ // and the router fallback chains.
8548
8677
  id: "free/deepseek-v4-flash",
8549
8678
  name: "[Free] DeepSeek V4 Flash",
8550
8679
  version: "v4-flash",
@@ -8847,6 +8976,23 @@ var init_models = __esm({
8847
8976
  contextWindow: 131072,
8848
8977
  maxOutput: 16384
8849
8978
  },
8979
+ {
8980
+ // Meta Muse Glimmer 30B (blockrun 2026-10-02) — Meta's open line after
8981
+ // Llama, 29.6B dense, free on NVIDIA as nvidia/muse-glimmer-30b. A
8982
+ // REASONING model: at max_tokens 300 the gateway's probes spent the whole
8983
+ // budget in reasoning_content and returned empty content. Text only — the
8984
+ // gateway serves no image parts for it. Picker-listed, but NOT in the
8985
+ // FREE_MODELS auto-pick cascade: an empty answer at a small budget is the
8986
+ // wrong property for a fallback rung.
8987
+ id: "free/muse-glimmer-30b",
8988
+ name: "[Free] Muse Glimmer 30B",
8989
+ version: "30b",
8990
+ inputPrice: 0,
8991
+ outputPrice: 0,
8992
+ contextWindow: 131072,
8993
+ maxOutput: 16384,
8994
+ reasoning: true
8995
+ },
8850
8996
  // ── 2026-08-30 paid catalog refresh (blockrun #449) ─────────────────────
8851
8997
  // Three additions, each probe-verified upstream with a real completion AND a
8852
8998
  // real image before listing. All three carry `vision: true` on that evidence
@@ -8898,6 +9044,64 @@ var init_models = __esm({
8898
9044
  vision: true,
8899
9045
  toolCalling: true
8900
9046
  },
9047
+ // ── 2026-10 paid additions (blockrun live catalog, read 2026-10-20) ─────
9048
+ // All four were listed upstream 2026-10-02..07 and are resold through
9049
+ // blockrun's OpenRouter pool at cost; the fields below are the gateway's
9050
+ // own numbers. `toolCalling` is set only where blockrun recorded a
9051
+ // structured tool_calls probe (Mistral Large 4); the rest stay opt-in.
9052
+ {
9053
+ // The 3.8 generation's flagship. Upstream also takes image/video input,
9054
+ // but blockrun lists it text-only until an image probe on its route.
9055
+ id: "qwen/qwen3.8-max",
9056
+ name: "Qwen3.8 Max",
9057
+ version: "3.8-max",
9058
+ inputPrice: 2,
9059
+ outputPrice: 6,
9060
+ contextWindow: 1e6,
9061
+ maxOutput: 131072,
9062
+ reasoning: true
9063
+ },
9064
+ {
9065
+ // 770B / 49B-active MoE, Apache 2.0. maxOutput is 64,000 — the smallest
9066
+ // vendor ceiling in the routed pool, so a larger value would 400 on that
9067
+ // vendor. Verbose reasoner: on a trivial prompt 4 of 8 probes spent a
9068
+ // 2,048-token budget reasoning and returned no content.
9069
+ id: "tencent/hy4-preview",
9070
+ name: "Tencent Hy4 Preview",
9071
+ version: "hy4-preview",
9072
+ inputPrice: 0.834,
9073
+ outputPrice: 2.501,
9074
+ contextWindow: 1048576,
9075
+ maxOutput: 64e3,
9076
+ reasoning: true
9077
+ },
9078
+ {
9079
+ // ⏰ $0.68/$2.09 is a LAUNCH PROMO upstream (Mistral lists $1.36/$4.18, no
9080
+ // end date). Re-price here the day blockrun does. Probed by blockrun
9081
+ // through OpenRouter: text, stream, tools (clean tool_calls) and image input
9082
+ // all served; reasoning is on by default.
9083
+ id: "mistral/mistral-large-4",
9084
+ name: "Mistral Large 4",
9085
+ version: "large-4",
9086
+ inputPrice: 0.68,
9087
+ outputPrice: 2.09,
9088
+ contextWindow: 524288,
9089
+ maxOutput: 262144,
9090
+ reasoning: true,
9091
+ vision: true,
9092
+ toolCalling: true
9093
+ },
9094
+ {
9095
+ // The PAID, far larger sibling of free/laguna-xs-2.1 (118B / 8B active).
9096
+ // Not a substitute for it: different size, different conduit.
9097
+ id: "poolside/laguna-s-2.1",
9098
+ name: "Poolside Laguna S 2.1",
9099
+ version: "s-2.1",
9100
+ inputPrice: 0.09,
9101
+ outputPrice: 0.18,
9102
+ contextWindow: 1048576,
9103
+ maxOutput: 131072
9104
+ },
8901
9105
  // Z.AI GLM-5 Models
8902
9106
  {
8903
9107
  // Z.AI's flagship, live-probed by blockrun 2026-08-19 against api.z.ai
@@ -141724,6 +141928,9 @@ var init_proxy = __esm({
141724
141928
  });
141725
141929
  VIDEO_PRICING = {
141726
141930
  "xai/grok-imagine-video": { pricePerSecond: 0.05, defaultDurationSeconds: 8 },
141931
+ // Grok Imagine Video 1.5: $0.08/s at 480p (the default), 8s default clip.
141932
+ // 720p/1080p ($0.14/$0.25) are not modeled — telemetry-only, as above.
141933
+ "xai/grok-imagine-video-1.5": { pricePerSecond: 0.08, defaultDurationSeconds: 8 },
141727
141934
  // Seedance rates re-synced 2026-08-08 from blockrun's models.ts after the
141728
141935
  // family reprice (blockrun #351/#354). All three were carrying pre-reprice
141729
141936
  // numbers, which only ever skewed the usage log — the charge comes from the
@@ -285727,7 +285934,9 @@ function buildMusicGenerationProvider() {
285727
285934
  id: "blockrun",
285728
285935
  label: "BlockRun",
285729
285936
  defaultModel: "minimax/music-2.5+",
285730
- models: ["minimax/music-2.5+", "minimax/music-2.5"],
285937
+ // minimax/music-2.5 left blockrun's catalog; the gateway remaps pinned
285938
+ // callers to music-2.5+, so the picker offers only the model that is served.
285939
+ models: ["minimax/music-2.5+"],
285731
285940
  capabilities: {
285732
285941
  maxTracks: 1,
285733
285942
  maxDurationSeconds: 240,
@@ -285794,6 +286003,9 @@ function buildVideoGenerationProvider() {
285794
286003
  defaultModel: "xai/grok-imagine-video",
285795
286004
  models: [
285796
286005
  "xai/grok-imagine-video",
286006
+ // Grok Imagine Video 1.5 (blockrun live catalog): native synced audio,
286007
+ // 1–15s, $0.08/s at the 480p default — so 5/8/10s all fit.
286008
+ "xai/grok-imagine-video-1.5",
285797
286009
  "bytedance/seedance-1.5-pro",
285798
286010
  "bytedance/seedance-2.0-fast",
285799
286011
  "bytedance/seedance-2.0",
@@ -286392,7 +286604,7 @@ ${errText}`
286392
286604
  const parsed = parseGenArgs(ctx.args ?? "");
286393
286605
  if (!parsed.prompt) {
286394
286606
  return {
286395
- 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."
286607
+ 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`, `grok-video-1.5` (synced audio).\n\n\u23F1\uFE0F Generation takes 60\u2013180 seconds. Payment settles only on success."
286396
286608
  };
286397
286609
  }
286398
286610
  const model = resolveModelAlias(parsed.model ?? "seedance");
package/dist/index.d.ts CHANGED
@@ -1954,4 +1954,5 @@ declare function buildImageGenerationProvider(): ImageGenerationProviderPlugin;
1954
1954
 
1955
1955
  declare const plugin: OpenClawPluginDefinition;
1956
1956
 
1957
- export { type AggregatedStats, BALANCE_THRESHOLDS, BLOCKRUN_MODELS, BLOCKRUN_PLUGIN_ID, type BalanceInfo, BalanceMonitor, CAIP2_BASE, CAIP2_SOLANA_MAINNET, type CachedLLMResponse, type CachedResponse, type CheckResult, type CounterpartyInfo, DEFAULT_RETRY_CONFIG, DEFAULT_SESSION_CONFIG, type DailyStats, type DerivedKeys, EmptyWalletError, FileSpendControlStorage, InMemorySpendControlStorage, InsufficientFundsError, type InsufficientFundsInfo, type LowBalanceInfo, MODEL_ALIASES, MalformedSpendPolicyError, OPENCLAW_MODELS, PARTNER_SERVICES, PAYABLE_NETWORKS, type PartnerServiceDefinition, type PartnerToolDefinition, type PaymentChain, type PolicyList, type ProxyHandle, type ProxyOptions, RequestDeduplicator, ResponseCache, type ResponseCacheConfig, type RetryConfig, RpcError, type SessionConfig, type SessionEntry, SessionStore, type SolanaBalanceInfo, SolanaBalanceMonitor, SpendControl, type SpendControlOptions, type SpendControlStorage, type SpendLimits, SpendPolicyError, type SpendRecord, type SpendWindow, type SpendingStatus, type SufficiencyResult, UnreadableSpendPolicyError, type UsageEntry, VISIBLE_OPENCLAW_MODELS, type WalletConfig, type WalletResolution, blockrunProvider, buildImageGenerationProvider, buildPartnerTools, buildProviderModels, clearStats, plugin as default, deriveAllKeys, deriveEvmKey, deriveSolanaKeyBytes, fetchWithRetry, formatDuration, formatStatsAscii, generateWalletMnemonic, getAgenticModels, getModelContextWindow, getPartnerService, getProxyPort, getSessionId, getStats, hashRequestContent, injectAuthProfile, injectModelsConfig, isAgenticModel, isBalanceError, isBlockrunWebSearchDisabled, isEmptyWalletError, isInsufficientFundsError, isRetryable, isRpcError, isValidMnemonic, loadPaymentChain, logUsage, parseCallArgs, registerSpendPolicyHook, removeRuntimeMcpConfig, resolveModelAlias, resolvePaymentChain, savePaymentChain, setRuntimeProviderConfig, setupSolana, startProxy, syncAgentModelCache };
1957
+ export { BALANCE_THRESHOLDS, BLOCKRUN_MODELS, BLOCKRUN_PLUGIN_ID, BalanceMonitor, CAIP2_BASE, CAIP2_SOLANA_MAINNET, DEFAULT_RETRY_CONFIG, DEFAULT_SESSION_CONFIG, EmptyWalletError, FileSpendControlStorage, InMemorySpendControlStorage, InsufficientFundsError, MODEL_ALIASES, MalformedSpendPolicyError, OPENCLAW_MODELS, PARTNER_SERVICES, PAYABLE_NETWORKS, RequestDeduplicator, ResponseCache, RpcError, SessionStore, SolanaBalanceMonitor, SpendControl, SpendPolicyError, UnreadableSpendPolicyError, VISIBLE_OPENCLAW_MODELS, blockrunProvider, buildImageGenerationProvider, buildPartnerTools, buildProviderModels, clearStats, plugin as default, deriveAllKeys, deriveEvmKey, deriveSolanaKeyBytes, fetchWithRetry, formatDuration, formatStatsAscii, generateWalletMnemonic, getAgenticModels, getModelContextWindow, getPartnerService, getProxyPort, getSessionId, getStats, hashRequestContent, injectAuthProfile, injectModelsConfig, isAgenticModel, isBalanceError, isBlockrunWebSearchDisabled, isEmptyWalletError, isInsufficientFundsError, isRetryable, isRpcError, isValidMnemonic, loadPaymentChain, logUsage, parseCallArgs, registerSpendPolicyHook, removeRuntimeMcpConfig, resolveModelAlias, resolvePaymentChain, savePaymentChain, setRuntimeProviderConfig, setupSolana, startProxy, syncAgentModelCache };
1958
+ export type { AggregatedStats, BalanceInfo, CachedLLMResponse, CachedResponse, CheckResult, CounterpartyInfo, DailyStats, DerivedKeys, InsufficientFundsInfo, LowBalanceInfo, PartnerServiceDefinition, PartnerToolDefinition, PaymentChain, PolicyList, ProxyHandle, ProxyOptions, ResponseCacheConfig, RetryConfig, SessionConfig, SessionEntry, SolanaBalanceInfo, SpendControlOptions, SpendControlStorage, SpendLimits, SpendRecord, SpendWindow, SpendingStatus, SufficiencyResult, UsageEntry, WalletConfig, WalletResolution };
package/dist/index.js CHANGED
@@ -233956,6 +233956,7 @@ var top_models_default = [
233956
233956
  "anthropic/claude-haiku-4.5",
233957
233957
  "openai/gpt-6-astra",
233958
233958
  "openai/gpt-6-sol",
233959
+ "openai/gpt-6.1-sol",
233959
233960
  "openai/gpt-6-luna",
233960
233961
  "openai/gpt-5.6-terra",
233961
233962
  "openai/gpt-5.6-sol",
@@ -233991,13 +233992,18 @@ var top_models_default = [
233991
233992
  "zai/glm-5",
233992
233993
  "xiaomi/mimo-v2.5",
233993
233994
  "xiaomi/mimo-v2.5-pro",
233995
+ "tencent/hy4-preview",
233996
+ "mistral/mistral-large-4",
233997
+ "poolside/laguna-s-2.1",
233994
233998
  "minimax/minimax-m3",
233995
233999
  "minimax/minimax-m2.7",
233996
234000
  "moonshot/kimi-k3",
233997
234001
  "qwen/qwen3.7-max",
234002
+ "qwen/qwen3.8-max",
233998
234003
  "qwen/qwen3.8-flash",
233999
234004
  "deepseek/deepseek-v4-flash-vision-exp",
234000
234005
  "deepseek/deepseek-v4-pro",
234006
+ "deepseek/deepseek-v4.1-flash",
234001
234007
  "deepseek/deepseek-chat",
234002
234008
  "deepseek/deepseek-reasoner",
234003
234009
  "free/nemotron-3.5-lightning",
@@ -234005,7 +234011,8 @@ var top_models_default = [
234005
234011
  "free/north-mini-code",
234006
234012
  "free/nemotron-3-nano-omni-30b-a3b-reasoning",
234007
234013
  "free/nemotron-3-ultra-550b",
234008
- "free/llama-3.2-11b-vision"
234014
+ "free/llama-3.2-11b-vision",
234015
+ "free/muse-glimmer-30b"
234009
234016
  ];
234010
234017
 
234011
234018
  // src/top-models.ts
@@ -234130,6 +234137,10 @@ var MODEL_ALIASES = {
234130
234137
  "gpt-6-astra": "openai/gpt-6-astra",
234131
234138
  "gpt-6-sol": "openai/gpt-6-sol",
234132
234139
  "gpt-6-luna": "openai/gpt-6-luna",
234140
+ // GPT-6.1 Sol (blockrun 2026-10-09): refreshed Sol at the same $2/$10, half
234141
+ // gpt-6-sol's cached-input rate. Explicit pin only, same rule as above.
234142
+ "gpt-6.1-sol": "openai/gpt-6.1-sol",
234143
+ "gpt-6-1-sol": "openai/gpt-6.1-sol",
234133
234144
  "gpt-5.5": "openai/gpt-5.5",
234134
234145
  "gpt-5.5-pro": "openai/gpt-5.5-pro",
234135
234146
  // ChatGPT Instant. `chat-latest` is a rolling upstream id — pinning it means
@@ -234156,6 +234167,14 @@ var MODEL_ALIASES = {
234156
234167
  deepseek: "deepseek/deepseek-chat",
234157
234168
  "deepseek-chat": "deepseek/deepseek-chat",
234158
234169
  reasoner: "deepseek/deepseek-reasoner",
234170
+ // DeepSeek V4.1 Flash (blockrun 2026-10-20) — its own id now, PAID at the
234171
+ // same $0.14/$0.28 as deepseek-chat (which the gateway serves from the same
234172
+ // upstream). Explicit pins only: bare `deepseek` stays on deepseek-chat, and
234173
+ // the free-tier `deepseek-v4-flash`/`v4-flash` shorthands below are NOT moved
234174
+ // onto it — a caller who typed a free name must never start paying.
234175
+ "deepseek-v4.1-flash": "deepseek/deepseek-v4.1-flash",
234176
+ "deepseek-v4-1-flash": "deepseek/deepseek-v4.1-flash",
234177
+ "v4.1-flash": "deepseek/deepseek-v4.1-flash",
234159
234178
  // Kimi / Moonshot — K3 is the featured flagship on BlockRun (added 2026-07-17; K2.7
234160
234179
  // hidden/superseded, K2.6 hidden, K2.5 hidden). K3 is ~5x K2.7's price ($3/$15 vs
234161
234180
  // $0.95/$4.00), so the BARE aliases deliberately STAY on K2.7 — repointing them to K3
@@ -234180,6 +234199,11 @@ var MODEL_ALIASES = {
234180
234199
  // `kimi` on K2.7. (`grok` WAS promoted to 4.5, but only after the cost
234181
234200
  // tradeoff was argued explicitly; there's no such case for qwen yet.)
234182
234201
  "qwen3.7-max": "qwen/qwen3.7-max",
234202
+ // Qwen3.8 Max (blockrun 2026-10-02) — the 3.8 generation's flagship, $2/$6.
234203
+ // Explicit pins only; bare `qwen` stays unbound for the reason above.
234204
+ "qwen3.8-max": "qwen/qwen3.8-max",
234205
+ "qwen-3.8-max": "qwen/qwen3.8-max",
234206
+ "qwen3-8-max": "qwen/qwen3.8-max",
234183
234207
  // Qwen3.8 Flash — newer generation than the whole 3.7 line, and cheaper than
234184
234208
  // the 3.7-plus tier it beats. Bare `qwen` stays UNBOUND (every other qwen*
234185
234209
  // shorthand resolves to a free model, so binding the short name to a paid
@@ -234208,6 +234232,13 @@ var MODEL_ALIASES = {
234208
234232
  hy3: "tencent/hy3",
234209
234233
  tencent: "tencent/hy3",
234210
234234
  hunyuan: "tencent/hy3",
234235
+ // Hy4 Preview (blockrun 2026-10-02) — 770B MoE at $0.834/$2.501. Explicit
234236
+ // pins only: bare `tencent`/`hunyuan` are NOT moved onto it, because that
234237
+ // would ~6x the quote for callers who never typed a version (the rule that
234238
+ // keeps `kimi` on K2.7). Like hy3 it is a verbose reasoner — a small
234239
+ // max_tokens can come back with no content.
234240
+ hy4: "tencent/hy4-preview",
234241
+ "hy4-preview": "tencent/hy4-preview",
234211
234242
  mimo: "xiaomi/mimo-v2.5-pro",
234212
234243
  "mimo-v2.5-pro": "xiaomi/mimo-v2.5-pro",
234213
234244
  // RETARGETED 2026-08-30, Pro -> the real thing. This key used to point at
@@ -234258,7 +234289,11 @@ var MODEL_ALIASES = {
234258
234289
  "grok-4.6": "xai/grok-4.6",
234259
234290
  "grok-4-6": "xai/grok-4.6",
234260
234291
  "grok-4.3": "xai/grok-4.3",
234261
- "grok-fast": "xai/grok-4-fast-reasoning",
234292
+ // grok-4-fast-* are redirected server-side to grok-4-1-fast-* (blockrun
234293
+ // MODEL_REDIRECTS, Azure Foundry EOL'd the 4-fast line 2026-05-01). The
234294
+ // generic shorthand follows the redirect rather than chaining through it;
234295
+ // same $0.20/$0.50.
234296
+ "grok-fast": "xai/grok-4-1-fast-reasoning",
234262
234297
  "grok-build": "xai/grok-build-0.1",
234263
234298
  "grok-code": "xai/grok-build-0.1",
234264
234299
  // xAI's agentic coding model (Build 0.1, 2026-06-04)
@@ -234267,8 +234302,8 @@ var MODEL_ALIASES = {
234267
234302
  // bare alias (delisted SKU, kept on cheap chat)
234268
234303
  "xai/grok-code-fast-1": "deepseek/deepseek-chat",
234269
234304
  // delisted 2026-03-12
234270
- "xai/grok-3-fast": "xai/grok-4-fast-reasoning",
234271
- // delisted (too expensive)
234305
+ "xai/grok-3-fast": "xai/grok-4-1-fast-reasoning",
234306
+ // delisted (too expensive); follows the 4-fast → 4-1-fast redirect
234272
234307
  // NVIDIA — backward compat aliases (nvidia/xxx → free/xxx)
234273
234308
  // Default free model is nemotron-3.5-lightning — the same model
234274
234309
  // @blockrun/router-core opens the eco SIMPLE tier on. It replaced
@@ -234279,10 +234314,12 @@ var MODEL_ALIASES = {
234279
234314
  // We follow blockrun's own retarget of step-3.7-flash rather than picking a
234280
234315
  // different survivor, so the proxy and the gateway name the same model.
234281
234316
  //
234282
- // gpt-oss-120b/20b RECOVERED on the same probe run and are reachable again,
234283
- // but they stay withheld from blockrun's public catalog over NVIDIA's
234284
- // prompt-retention terms — so pins that NAME gpt-oss stay routable below and
234285
- // nothing generic may land on it.
234317
+ // gpt-oss-120b recovered on that probe run, then hit NVIDIA's PUBLISHED EOL
234318
+ // on 2026-09-03 (410 Gone with an end-of-life date). The gateway marks it
234319
+ // available:false and redirects nvidia/gpt-oss-120b to nemotron-3-super-120b.
234320
+ // gpt-oss-20b is still served but stays withheld from the public catalog over
234321
+ // NVIDIA's prompt-retention terms. Pins that NAME gpt-oss keep the real id
234322
+ // (the gateway redirects them); nothing generic may land on either.
234286
234323
  nvidia: "free/nemotron-3.5-lightning",
234287
234324
  "gpt-120b": "free/gpt-oss-120b",
234288
234325
  // names the model itself — gateway redirects
@@ -234293,14 +234330,18 @@ var MODEL_ALIASES = {
234293
234330
  // probe passes; prod gate fired [ALERT][free-model-dead] kind=gone twice that
234294
234331
  // morning). The whole nvidia/deepseek-* family is now dead upstream — blockrun
234295
234332
  // hid flash and retargeted v3.2/v4-pro (whose redirects chained through flash)
234296
- // straight to gpt-oss-120b. Ids naming v4-flash itself keep the real id (the
234297
- // gateway redirects them); the v3.2/v4-pro ids follow blockrun's retarget
234333
+ // straight to gpt-oss-120b. The v3.2/v4-pro ids follow blockrun's retarget
234298
234334
  // rather than chaining through a second dead model.
234335
+ // 2026-10-20: blockrun REMOVED nvidia/deepseek-v4-flash and its redirect —
234336
+ // the gateway now answers 400 Unknown model for it (and for the bare
234337
+ // `deepseek-v4-flash`). Its replacement is the PAID deepseek/deepseek-v4.1-
234338
+ // flash, which a free-tier pin must not silently land on, so every alias
234339
+ // that named the free v4-flash now follows the free default instead.
234299
234340
  "nvidia/deepseek-v3.2": "free/nemotron-3.5-lightning",
234300
234341
  "free/deepseek-v3.2": "free/nemotron-3.5-lightning",
234301
234342
  "nvidia/deepseek-v4-pro": "free/nemotron-3.5-lightning",
234302
234343
  "free/deepseek-v4-pro": "free/nemotron-3.5-lightning",
234303
- "nvidia/deepseek-v4-flash": "free/deepseek-v4-flash",
234344
+ "nvidia/deepseek-v4-flash": "free/nemotron-3.5-lightning",
234304
234345
  "nvidia/nemotron-3-nano-omni-30b-a3b-reasoning": "free/nemotron-3-nano-omni-30b-a3b-reasoning",
234305
234346
  // qwen3-coder-480b retired (NVIDIA EOL 2026-06-14). Its server-side redirect used
234306
234347
  // to be seed-oss-36b, but that EOL'd too on 2026-08-03, so blockrun re-pointed it
@@ -234337,21 +234378,28 @@ var MODEL_ALIASES = {
234337
234378
  "free/nemotron-ultra-253b": "free/nemotron-3.5-lightning",
234338
234379
  "free/devstral-2-123b": "free/nemotron-3.5-lightning",
234339
234380
  // Explicit-ish pins — dead upstream since 2026-07-28, gateway redirects to gpt-oss-120b
234381
+ // (now nemotron-3-super-120b). Bare `mistral-large` deliberately stays here
234382
+ // rather than moving to the paid Mistral Large 4 below: it has always named a
234383
+ // free model, and a short name must not start billing silently.
234340
234384
  "mistral-large": "free/mistral-large-3-675b",
234341
234385
  "mistral-large-3-675b": "free/mistral-large-3-675b",
234342
234386
  "qwen3.5-122b": "free/qwen3.5-122b-a10b",
234387
+ // Mistral Large 4 (blockrun 2026-10-07) — PAID, $0.68/$2.09 (a launch promo
234388
+ // upstream; Mistral lists $1.36/$4.18). Explicit pins only.
234389
+ "mistral-large-4": "mistral/mistral-large-4",
234343
234390
  "qwen3-122b": "free/qwen3.5-122b-a10b",
234344
234391
  // Free model shorthand aliases. v4-flash EOL'd 2026-08-12 — no free DeepSeek
234345
234392
  // is left anywhere, so the generic "a free deepseek" shorthand follows the
234346
234393
  // gateway's retarget (blockrun's /free-deepseek page points at gpt-oss-120b
234347
- // too). Shorthands naming v4-flash itself stay on the real id — the gateway
234348
- // redirects them, same treatment as seed-oss/mistral-large pins.
234394
+ // too). Shorthands naming v4-flash itself followed the free id until the
234395
+ // gateway stopped serving it (400 since 2026-10-20, see above); they now take
234396
+ // the free default too, never the paid V4.1 Flash.
234349
234397
  "deepseek-free": "free/nemotron-3.5-lightning",
234350
234398
  "deepseek-v4-pro": "free/nemotron-3.5-lightning",
234351
234399
  // free shorthand; pro dead upstream (410)
234352
- "deepseek-v4-flash": "free/deepseek-v4-flash",
234400
+ "deepseek-v4-flash": "free/nemotron-3.5-lightning",
234353
234401
  "v4-pro": "free/nemotron-3.5-lightning",
234354
- "v4-flash": "free/deepseek-v4-flash",
234402
+ "v4-flash": "free/nemotron-3.5-lightning",
234355
234403
  // mistral-nemotron died 2026-08-30 and it was the LAST free Mistral anywhere —
234356
234404
  // blockrun's own /free-mistral page now says so plainly instead of naming one.
234357
234405
  // Point the generic shorthand at the free default rather than advertise a
@@ -234449,6 +234497,18 @@ var MODEL_ALIASES = {
234449
234497
  "north-mini-code": "free/north-mini-code",
234450
234498
  laguna: "free/laguna-xs-2.1",
234451
234499
  "laguna-xs": "free/laguna-xs-2.1",
234500
+ // Laguna S 2.1 is the PAID, much larger sibling ($0.09/$0.18, 1M ctx). Bare
234501
+ // `laguna` stays on the free XS — moving it would bill callers who typed the
234502
+ // short name expecting the free model.
234503
+ "laguna-s": "poolside/laguna-s-2.1",
234504
+ "laguna-s-2.1": "poolside/laguna-s-2.1",
234505
+ // Muse Glimmer 30B (blockrun 2026-10-02) — Meta's open line after Llama,
234506
+ // free on NVIDIA. A reasoning model: a small max_tokens is spent entirely in
234507
+ // reasoning and returns empty content.
234508
+ "nvidia/muse-glimmer-30b": "free/muse-glimmer-30b",
234509
+ muse: "free/muse-glimmer-30b",
234510
+ "muse-glimmer": "free/muse-glimmer-30b",
234511
+ "muse-glimmer-30b": "free/muse-glimmer-30b",
234452
234512
  // `free` = the free-tier default. Must equal router-core's ecoTiers.SIMPLE
234453
234513
  // primary and the head of proxy.ts FREE_MODELS so `/model free`, the eco
234454
234514
  // profile and the budget-cap free fallback all agree on one live model.
@@ -234505,6 +234565,9 @@ var MODEL_ALIASES = {
234505
234565
  cogview: "zai/cogview-4",
234506
234566
  // Video generation
234507
234567
  "grok-video": "xai/grok-imagine-video",
234568
+ // Explicit pin; bare `grok-video` stays on the $0.05/s original.
234569
+ "grok-video-1.5": "xai/grok-imagine-video-1.5",
234570
+ "grok-video-1-5": "xai/grok-imagine-video-1.5",
234508
234571
  // Bare `seedance` deliberately stays on 1.5-pro. It is the cheapest of the
234509
234572
  // family ($0.070/s vs 2.5's $0.315/s) and `/videogen` documents it as
234510
234573
  // "default — cheapest"; repointing it at the newest tier would 4.5x the
@@ -234668,6 +234731,23 @@ var BLOCKRUN_MODELS = [
234668
234731
  agentic: true,
234669
234732
  toolCalling: true
234670
234733
  },
234734
+ {
234735
+ // GPT-6.1 Sol (blockrun 2026-10-09): the refreshed Sol. Same $2/$10 and
234736
+ // 1.05M/128K envelope as gpt-6-sol; cached input is $0.10, half of Sol's.
234737
+ // Vision confirmed upstream with a 64x64 PNG. Long tier as on the rest of
234738
+ // the family (>272K prompt: $4/$15) — telemetry only, the charge is 402.
234739
+ id: "openai/gpt-6.1-sol",
234740
+ name: "GPT-6.1 Sol",
234741
+ version: "6.1",
234742
+ inputPrice: 2,
234743
+ outputPrice: 10,
234744
+ contextWindow: 105e4,
234745
+ maxOutput: 128e3,
234746
+ reasoning: true,
234747
+ vision: true,
234748
+ agentic: true,
234749
+ toolCalling: true
234750
+ },
234671
234751
  {
234672
234752
  id: "openai/gpt-6-luna",
234673
234753
  name: "GPT-6 Luna",
@@ -234893,7 +234973,12 @@ var BLOCKRUN_MODELS = [
234893
234973
  reasoning: true,
234894
234974
  vision: true,
234895
234975
  agentic: true,
234896
- toolCalling: true
234976
+ toolCalling: true,
234977
+ // RETIRED 2026-08-29: OpenAI answers 404 model_not_found upstream. The
234978
+ // gateway marks it available:false and redirects it to gpt-5.2 at the same
234979
+ // $1.75/$14. Entry kept so explicit pins stay priced; off the picker.
234980
+ deprecated: true,
234981
+ fallbackModel: "openai/gpt-5.2"
234897
234982
  },
234898
234983
  // OpenAI Codex Family
234899
234984
  {
@@ -235364,13 +235449,14 @@ var BLOCKRUN_MODELS = [
235364
235449
  toolCalling: true
235365
235450
  },
235366
235451
  // DeepSeek — V4 family (2026-04-24). The legacy deepseek-chat/reasoner
235367
- // aliases are served upstream as V4 Flash non-thinking / thinking modes.
235452
+ // aliases are served upstream as V4.1 Flash non-thinking / thinking modes
235453
+ // (blockrun renamed them "(V4.1 Flash)" on 2026-10-20).
235368
235454
  // Repriced 0.20/0.40 → 0.14/0.28 (blockrun #354: DeepSeek's published
235369
235455
  // deepseek-v4-flash rate; the old numbers were 1.43x the real rate).
235370
235456
  {
235371
235457
  id: "deepseek/deepseek-chat",
235372
- name: "DeepSeek V4 Flash Chat",
235373
- version: "4-flash",
235458
+ name: "DeepSeek Chat (V4.1 Flash)",
235459
+ version: "4.1-flash",
235374
235460
  inputPrice: 0.14,
235375
235461
  outputPrice: 0.28,
235376
235462
  contextWindow: 1048576,
@@ -235379,8 +235465,8 @@ var BLOCKRUN_MODELS = [
235379
235465
  },
235380
235466
  {
235381
235467
  id: "deepseek/deepseek-reasoner",
235382
- name: "DeepSeek V4 Flash Reasoner",
235383
- version: "4-flash",
235468
+ name: "DeepSeek Reasoner (V4.1 Flash)",
235469
+ version: "4.1-flash",
235384
235470
  inputPrice: 0.14,
235385
235471
  outputPrice: 0.28,
235386
235472
  contextWindow: 1048576,
@@ -235388,6 +235474,22 @@ var BLOCKRUN_MODELS = [
235388
235474
  reasoning: true,
235389
235475
  toolCalling: true
235390
235476
  },
235477
+ {
235478
+ // DeepSeek V4.1 Flash (blockrun 2026-10-20). The gateway serves it from the
235479
+ // SAME upstream as deepseek-chat, at the same price, in the same
235480
+ // non-thinking mode (thinking is not caller-togglable; use
235481
+ // deepseek-reasoner for it) — so the flags mirror deepseek-chat rather than
235482
+ // the catalog's "reasoning" category, which would enrol it in the long
235483
+ // reasoning timeout for a model that does not think.
235484
+ id: "deepseek/deepseek-v4.1-flash",
235485
+ name: "DeepSeek V4.1 Flash",
235486
+ version: "4.1-flash",
235487
+ inputPrice: 0.14,
235488
+ outputPrice: 0.28,
235489
+ contextWindow: 1048576,
235490
+ maxOutput: 65536,
235491
+ toolCalling: true
235492
+ },
235391
235493
  {
235392
235494
  // V4 flagship — strongest open-weight reasoner. The 75% launch promo
235393
235495
  // became DeepSeek's permanent list price after 2026-05-31. Resold via
@@ -235541,7 +235643,11 @@ var BLOCKRUN_MODELS = [
235541
235643
  contextWindow: 131072,
235542
235644
  maxOutput: 16384,
235543
235645
  reasoning: true,
235544
- toolCalling: true
235646
+ toolCalling: true,
235647
+ // Server-side redirect on blockrun (MODEL_REDIRECTS): Azure Foundry EOL'd
235648
+ // this line 2026-05-01, so the gateway serves it as grok-4-1-fast-non-reasoning. Kept for pins.
235649
+ deprecated: true,
235650
+ fallbackModel: "xai/grok-4-1-fast-non-reasoning"
235545
235651
  },
235546
235652
  // grok-3-fast removed - too expensive ($5/$25), use grok-4-fast instead
235547
235653
  {
@@ -235552,7 +235658,11 @@ var BLOCKRUN_MODELS = [
235552
235658
  outputPrice: 0.5,
235553
235659
  contextWindow: 131072,
235554
235660
  maxOutput: 16384,
235555
- toolCalling: true
235661
+ toolCalling: true,
235662
+ // Server-side redirect on blockrun (MODEL_REDIRECTS): Azure Foundry EOL'd
235663
+ // this line 2026-05-01, so the gateway serves it as grok-4-1-fast-non-reasoning. Kept for pins.
235664
+ deprecated: true,
235665
+ fallbackModel: "xai/grok-4-1-fast-non-reasoning"
235556
235666
  },
235557
235667
  // xAI Grok 4 Family - Ultra-cheap fast models
235558
235668
  {
@@ -235564,7 +235674,11 @@ var BLOCKRUN_MODELS = [
235564
235674
  contextWindow: 2e6,
235565
235675
  maxOutput: 16384,
235566
235676
  reasoning: true,
235567
- toolCalling: true
235677
+ toolCalling: true,
235678
+ // Server-side redirect on blockrun (MODEL_REDIRECTS): Azure Foundry EOL'd
235679
+ // this line 2026-05-01, so the gateway serves it as grok-4-1-fast-reasoning. Kept for pins.
235680
+ deprecated: true,
235681
+ fallbackModel: "xai/grok-4-1-fast-reasoning"
235568
235682
  },
235569
235683
  {
235570
235684
  id: "xai/grok-4-fast-non-reasoning",
@@ -235574,7 +235688,11 @@ var BLOCKRUN_MODELS = [
235574
235688
  outputPrice: 0.5,
235575
235689
  contextWindow: 2e6,
235576
235690
  maxOutput: 16384,
235577
- toolCalling: true
235691
+ toolCalling: true,
235692
+ // Server-side redirect on blockrun (MODEL_REDIRECTS): Azure Foundry EOL'd
235693
+ // this line 2026-05-01, so the gateway serves it as grok-4-1-fast-non-reasoning. Kept for pins.
235694
+ deprecated: true,
235695
+ fallbackModel: "xai/grok-4-1-fast-non-reasoning"
235578
235696
  },
235579
235697
  {
235580
235698
  id: "xai/grok-4-1-fast-reasoning",
@@ -235619,7 +235737,11 @@ var BLOCKRUN_MODELS = [
235619
235737
  contextWindow: 32768,
235620
235738
  maxOutput: 16384,
235621
235739
  vision: true,
235622
- toolCalling: true
235740
+ toolCalling: true,
235741
+ // Retired upstream 2026-07-07 (HTTP 400 on api.x.ai, no route anywhere);
235742
+ // the gateway redirects it to grok-4.3. Kept for pins.
235743
+ deprecated: true,
235744
+ fallbackModel: "xai/grok-4.3"
235623
235745
  },
235624
235746
  // xAI Grok 4.20 Family (hidden in picker; explicit-only — mirrors BlockRun hidden:true)
235625
235747
  {
@@ -235817,6 +235939,10 @@ var BLOCKRUN_MODELS = [
235817
235939
  // 2026-04-21: slimmed to 8 models, retired nemotron family + mistral-large-3-675b
235818
235940
  // + devstral-2-123b with successor redirects.
235819
235941
  {
235942
+ // EOL 2026-09-03: NVIDIA publishes 410 Gone with an end-of-life date. The
235943
+ // gateway lists nvidia/gpt-oss-120b as available:false and redirects it to
235944
+ // nvidia/nemotron-3-super-120b. Entry kept so explicit pins stay routable;
235945
+ // off the picker, the FREE_MODELS cascade and every default.
235820
235946
  id: "free/gpt-oss-120b",
235821
235947
  name: "[Free] GPT-OSS 120B",
235822
235948
  version: "120b",
@@ -235839,9 +235965,12 @@ var BLOCKRUN_MODELS = [
235839
235965
  // published 410 Gone ("has reached its end of life") on both probe passes
235840
235966
  // and blockrun's prod gate fired [ALERT][free-model-dead] kind=gone twice
235841
235967
  // that morning. The whole nvidia/deepseek-* family is dead upstream; there
235842
- // is no free DeepSeek left anywhere. Blockrun hid it and redirects calls to
235843
- // gpt-oss-120b. Entry kept so explicit pins stay routable; off the picker,
235844
- // the FREE_MODELS cascade, and the router fallback chains.
235968
+ // is no free DeepSeek left anywhere. Blockrun hid it and redirected calls,
235969
+ // then on 2026-10-20 REMOVED it outright: the gateway answers 400 Unknown
235970
+ // model, deliberately not moving pins onto the paid deepseek-v4.1-flash.
235971
+ // Entry kept only so a direct pin is still classified free (never billed);
235972
+ // no alias points here any more. Off the picker, the FREE_MODELS cascade,
235973
+ // and the router fallback chains.
235845
235974
  id: "free/deepseek-v4-flash",
235846
235975
  name: "[Free] DeepSeek V4 Flash",
235847
235976
  version: "v4-flash",
@@ -236144,6 +236273,23 @@ var BLOCKRUN_MODELS = [
236144
236273
  contextWindow: 131072,
236145
236274
  maxOutput: 16384
236146
236275
  },
236276
+ {
236277
+ // Meta Muse Glimmer 30B (blockrun 2026-10-02) — Meta's open line after
236278
+ // Llama, 29.6B dense, free on NVIDIA as nvidia/muse-glimmer-30b. A
236279
+ // REASONING model: at max_tokens 300 the gateway's probes spent the whole
236280
+ // budget in reasoning_content and returned empty content. Text only — the
236281
+ // gateway serves no image parts for it. Picker-listed, but NOT in the
236282
+ // FREE_MODELS auto-pick cascade: an empty answer at a small budget is the
236283
+ // wrong property for a fallback rung.
236284
+ id: "free/muse-glimmer-30b",
236285
+ name: "[Free] Muse Glimmer 30B",
236286
+ version: "30b",
236287
+ inputPrice: 0,
236288
+ outputPrice: 0,
236289
+ contextWindow: 131072,
236290
+ maxOutput: 16384,
236291
+ reasoning: true
236292
+ },
236147
236293
  // ── 2026-08-30 paid catalog refresh (blockrun #449) ─────────────────────
236148
236294
  // Three additions, each probe-verified upstream with a real completion AND a
236149
236295
  // real image before listing. All three carry `vision: true` on that evidence
@@ -236195,6 +236341,64 @@ var BLOCKRUN_MODELS = [
236195
236341
  vision: true,
236196
236342
  toolCalling: true
236197
236343
  },
236344
+ // ── 2026-10 paid additions (blockrun live catalog, read 2026-10-20) ─────
236345
+ // All four were listed upstream 2026-10-02..07 and are resold through
236346
+ // blockrun's OpenRouter pool at cost; the fields below are the gateway's
236347
+ // own numbers. `toolCalling` is set only where blockrun recorded a
236348
+ // structured tool_calls probe (Mistral Large 4); the rest stay opt-in.
236349
+ {
236350
+ // The 3.8 generation's flagship. Upstream also takes image/video input,
236351
+ // but blockrun lists it text-only until an image probe on its route.
236352
+ id: "qwen/qwen3.8-max",
236353
+ name: "Qwen3.8 Max",
236354
+ version: "3.8-max",
236355
+ inputPrice: 2,
236356
+ outputPrice: 6,
236357
+ contextWindow: 1e6,
236358
+ maxOutput: 131072,
236359
+ reasoning: true
236360
+ },
236361
+ {
236362
+ // 770B / 49B-active MoE, Apache 2.0. maxOutput is 64,000 — the smallest
236363
+ // vendor ceiling in the routed pool, so a larger value would 400 on that
236364
+ // vendor. Verbose reasoner: on a trivial prompt 4 of 8 probes spent a
236365
+ // 2,048-token budget reasoning and returned no content.
236366
+ id: "tencent/hy4-preview",
236367
+ name: "Tencent Hy4 Preview",
236368
+ version: "hy4-preview",
236369
+ inputPrice: 0.834,
236370
+ outputPrice: 2.501,
236371
+ contextWindow: 1048576,
236372
+ maxOutput: 64e3,
236373
+ reasoning: true
236374
+ },
236375
+ {
236376
+ // ⏰ $0.68/$2.09 is a LAUNCH PROMO upstream (Mistral lists $1.36/$4.18, no
236377
+ // end date). Re-price here the day blockrun does. Probed by blockrun
236378
+ // through OpenRouter: text, stream, tools (clean tool_calls) and image input
236379
+ // all served; reasoning is on by default.
236380
+ id: "mistral/mistral-large-4",
236381
+ name: "Mistral Large 4",
236382
+ version: "large-4",
236383
+ inputPrice: 0.68,
236384
+ outputPrice: 2.09,
236385
+ contextWindow: 524288,
236386
+ maxOutput: 262144,
236387
+ reasoning: true,
236388
+ vision: true,
236389
+ toolCalling: true
236390
+ },
236391
+ {
236392
+ // The PAID, far larger sibling of free/laguna-xs-2.1 (118B / 8B active).
236393
+ // Not a substitute for it: different size, different conduit.
236394
+ id: "poolside/laguna-s-2.1",
236395
+ name: "Poolside Laguna S 2.1",
236396
+ version: "s-2.1",
236397
+ inputPrice: 0.09,
236398
+ outputPrice: 0.18,
236399
+ contextWindow: 1048576,
236400
+ maxOutput: 131072
236401
+ },
236198
236402
  // Z.AI GLM-5 Models
236199
236403
  {
236200
236404
  // Z.AI's flagship, live-probed by blockrun 2026-08-19 against api.z.ai
@@ -264985,6 +265189,9 @@ var IMAGE_MODEL_ALIASES = Object.freeze({
264985
265189
  });
264986
265190
  var VIDEO_PRICING = {
264987
265191
  "xai/grok-imagine-video": { pricePerSecond: 0.05, defaultDurationSeconds: 8 },
265192
+ // Grok Imagine Video 1.5: $0.08/s at 480p (the default), 8s default clip.
265193
+ // 720p/1080p ($0.14/$0.25) are not modeled — telemetry-only, as above.
265194
+ "xai/grok-imagine-video-1.5": { pricePerSecond: 0.08, defaultDurationSeconds: 8 },
264988
265195
  // Seedance rates re-synced 2026-08-08 from blockrun's models.ts after the
264989
265196
  // family reprice (blockrun #351/#354). All three were carrying pre-reprice
264990
265197
  // numbers, which only ever skewed the usage log — the charge comes from the
@@ -282145,7 +282352,9 @@ function buildMusicGenerationProvider() {
282145
282352
  id: "blockrun",
282146
282353
  label: "BlockRun",
282147
282354
  defaultModel: "minimax/music-2.5+",
282148
- models: ["minimax/music-2.5+", "minimax/music-2.5"],
282355
+ // minimax/music-2.5 left blockrun's catalog; the gateway remaps pinned
282356
+ // callers to music-2.5+, so the picker offers only the model that is served.
282357
+ models: ["minimax/music-2.5+"],
282149
282358
  capabilities: {
282150
282359
  maxTracks: 1,
282151
282360
  maxDurationSeconds: 240,
@@ -282213,6 +282422,9 @@ function buildVideoGenerationProvider() {
282213
282422
  defaultModel: "xai/grok-imagine-video",
282214
282423
  models: [
282215
282424
  "xai/grok-imagine-video",
282425
+ // Grok Imagine Video 1.5 (blockrun live catalog): native synced audio,
282426
+ // 1–15s, $0.08/s at the 480p default — so 5/8/10s all fit.
282427
+ "xai/grok-imagine-video-1.5",
282216
282428
  "bytedance/seedance-1.5-pro",
282217
282429
  "bytedance/seedance-2.0-fast",
282218
282430
  "bytedance/seedance-2.0",
@@ -282764,7 +282976,7 @@ ${errText}`
282764
282976
  const parsed = parseGenArgs(ctx.args ?? "");
282765
282977
  if (!parsed.prompt) {
282766
282978
  return {
282767
- 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."
282979
+ 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`, `grok-video-1.5` (synced audio).\n\n\u23F1\uFE0F Generation takes 60\u2013180 seconds. Payment settles only on success."
282768
282980
  };
282769
282981
  }
282770
282982
  const model = resolveModelAlias(parsed.model ?? "seedance");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockrun/clawrouter",
3
- "version": "0.12.293",
3
+ "version": "0.12.294",
4
4
  "description": "Smart LLM router — save 84% on inference costs. 88 models (7 free). Pay by credit card (API key) or USDC (x402 wallet).",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -121,11 +121,11 @@
121
121
  "eslint": "^10.2.0",
122
122
  "openclaw": "^2026.7.2-beta.7",
123
123
  "prettier": "^3.8.1",
124
- "tsup": "^8.0.0",
124
+ "tsup": "^9.0.0",
125
125
  "tsx": "^4.21.0",
126
126
  "typescript": "^5.7.0",
127
127
  "typescript-eslint": "^8.58.1",
128
- "vitest": "^4.1.3"
128
+ "vitest": "^5.0.5"
129
129
  },
130
130
  "overrides": {
131
131
  "axios": "$axios",
@@ -147,7 +147,7 @@ it against a baseline nobody wrote down. See
147
147
 
148
148
  ## Available Models
149
149
 
150
- <!-- br:models.chatVisible -->88<!-- /br:models.chatVisible --> models including: gpt-6-astra [GPT-6 flagship, 1M ctx], gpt-6-sol, gpt-6-luna [fast, $0.10/$0.50], 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-5.1, gpt-4o, o3, claude-fable-5.1, claude-fable-5, claude-opus-5.5 [newest Opus, $4/$20], claude-opus-5 [1M ctx], claude-opus-4.8, claude-opus-4.7, claude-opus-4.5, claude-sonnet-5.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.7, grok-4.6, grok-4.5, grok-4.3, grok-build-0.1, glm-5.3 [Z.AI flagship, 1M ctx], glm-5.3-flash [natively multimodal, 1M ctx — $0.15/$0.50], glm-5.2, minimax-m3, kimi-k3 [1M ctx flagship], kimi-k2.7, qwen3.7-max [Qwen flagship, 1M ctx], qwen3.7-plus, qwen3.7-flash, mimo [Xiaomi MiMo-V2.5 Pro, 1M ctx], and <!-- br:models.free -->7<!-- /br:models.free --> free open-weight models (nemotron-3.5-lightning [1M ctx, thinking mode — the free default], nemotron-3-ultra-550b [550B/55B MoE, 1M ctx — the largest free model], nemotron-3-nano-omni-30b-a3b-reasoning [256K ctx], llama-3.2-11b-vision [Meta Llama], north-mini-code [Cohere, coding, sub-second], laguna-xs-2.1 [Poolside, coding, ~161 tok/s]). The free tier is text-only — image turns route to a paid vision model, because the two free models the catalogs advertise as vision-capable fail a solid-colour probe on both chains and do so with an HTTP 200.
150
+ <!-- br:models.chatVisible -->88<!-- /br:models.chatVisible --> models including: gpt-6-astra [GPT-6 flagship, 1M ctx], gpt-6-sol, gpt-6.1-sol [refreshed Sol, $2/$10], gpt-6-luna [fast, $0.10/$0.50], 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-5.1, gpt-4o, o3, claude-fable-5.1, claude-fable-5, claude-opus-5.5 [newest Opus, $4/$20], claude-opus-5 [1M ctx], claude-opus-4.8, claude-opus-4.7, claude-opus-4.5, claude-sonnet-5.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.7, grok-4.6, grok-4.5, grok-4.3, grok-build-0.1, glm-5.3 [Z.AI flagship, 1M ctx], glm-5.3-flash [natively multimodal, 1M ctx — $0.15/$0.50], glm-5.2, minimax-m3, kimi-k3 [1M ctx flagship], kimi-k2.7, qwen3.8-max [Qwen 3.8 flagship, 1M ctx], qwen3.7-max, qwen3.7-plus, qwen3.7-flash, mimo [Xiaomi MiMo-V2.5 Pro, 1M ctx], mistral-large-4 [Mistral flagship, 512K ctx, vision], hy4-preview [Tencent, 770B MoE], laguna-s-2.1 [Poolside, coding, $0.09/$0.18], and <!-- br:models.free -->7<!-- /br:models.free --> free open-weight models (nemotron-3.5-lightning [1M ctx, thinking mode — the free default], nemotron-3-ultra-550b [550B/55B MoE, 1M ctx — the largest free model], nemotron-3-nano-omni-30b-a3b-reasoning [256K ctx], llama-3.2-11b-vision [Meta Llama], north-mini-code [Cohere, coding, sub-second], laguna-xs-2.1 [Poolside, coding, ~161 tok/s], muse-glimmer-30b [Meta Muse, reasoning]). The free tier is text-only — image turns route to a paid vision model, because the two free models the catalogs advertise as vision-capable fail a solid-colour probe on both chains and do so with an HTTP 200.
151
151
 
152
152
  ## Built-in Agent Tools
153
153
 
@@ -15,6 +15,7 @@
15
15
  "anthropic/claude-haiku-4.5",
16
16
  "openai/gpt-6-astra",
17
17
  "openai/gpt-6-sol",
18
+ "openai/gpt-6.1-sol",
18
19
  "openai/gpt-6-luna",
19
20
  "openai/gpt-5.6-terra",
20
21
  "openai/gpt-5.6-sol",
@@ -50,13 +51,18 @@
50
51
  "zai/glm-5",
51
52
  "xiaomi/mimo-v2.5",
52
53
  "xiaomi/mimo-v2.5-pro",
54
+ "tencent/hy4-preview",
55
+ "mistral/mistral-large-4",
56
+ "poolside/laguna-s-2.1",
53
57
  "minimax/minimax-m3",
54
58
  "minimax/minimax-m2.7",
55
59
  "moonshot/kimi-k3",
56
60
  "qwen/qwen3.7-max",
61
+ "qwen/qwen3.8-max",
57
62
  "qwen/qwen3.8-flash",
58
63
  "deepseek/deepseek-v4-flash-vision-exp",
59
64
  "deepseek/deepseek-v4-pro",
65
+ "deepseek/deepseek-v4.1-flash",
60
66
  "deepseek/deepseek-chat",
61
67
  "deepseek/deepseek-reasoner",
62
68
  "free/nemotron-3.5-lightning",
@@ -64,5 +70,6 @@
64
70
  "free/north-mini-code",
65
71
  "free/nemotron-3-nano-omni-30b-a3b-reasoning",
66
72
  "free/nemotron-3-ultra-550b",
67
- "free/llama-3.2-11b-vision"
73
+ "free/llama-3.2-11b-vision",
74
+ "free/muse-glimmer-30b"
68
75
  ]