Skip to content

fix(estimate): mirror @blockrun/mcp media prices from the live 2026-10-20 catalogue - #2

Merged
VickyXAI merged 1 commit into
mainfrom
fix/live-catalog-2026-10-20
Oct 20, 2026
Merged

VickyXAI merged 1 commit into
mainfrom
fix/live-catalog-2026-10-20

Conversation

@VickyXAI

Copy link
Copy Markdown
Contributor

What changes

lib/estimate.js is the spend-gate / tally estimator. It now mirrors the media tables in @blockrun/mcp (BlockRunAI/blockrun-mcp#180), refreshed against the live catalogue on 2026-10-20.

Image

  • Added google/nano-banana-2 ($0.09), bytedance/seedream-5-pro ($0.045, or $0.09 when both sides are above 1024), openai/gpt-image-2.5-flare and -sunburst ($0.28, or $0.56 above 1024), and xai/grok-imagine-image-2.0 ($0.04).
  • xai/grok-imagine-image-pro: $0.07 → $0.05.
  • The large-tier rules now match image.ts. nano-banana-pro stays at $0.10 through 2048 and steps to $0.15 only at 4096. Seedream's tier is keyed on the smaller side.

Video

  • Added xai/grok-imagine-video-1.5, bytedance/seedance-2.0-mini and bytedance/seedance-2.5.
  • The Seedance rates were stale (1.5-pro $0.092, 2.0-fast $0.238, 2.0 $0.298). They are replaced with the charged per-second figures that GET /v1/models publishes at the 720p baseline, rounded up: $0.0708 / $0.0798 / $0.1652 / $0.2271 / $0.3156.
  • Removed the image-to-video discount table. The MCP has no such discount: i2v costs the same as text-to-video.
  • resolution is now read. Grok is priced per resolution ($0.05/$0.07; 1.5: $0.08/$0.14/$0.25). Seedance is scaled by the MCP's resolution factor (0.5 / 1 / 2.25 / 9).

Speech: added the bytedance/seed-audio-1.0 display rate ($0.30/1k), as in MCP speech.ts.

skills/announce-cost/SKILL.md: the price tables used the same stale figures (for example music "$0.02/track" and grok "8s ≈ $0.80"). They now use the numbers above.

Sources

Checks

This repo has no test suite or package.json. I ran:

  • node --check on lib/estimate.js and hooks/*.js
  • a smoke test of estimate() over every new model and size/resolution tier
  • an end-to-end hooks/spend-gate.js run with a grok-imagine-video-1.5 720p input, which returned an ask with an estimate of $1.12

The Claude and Codex copies of lib/estimate.js are byte-identical.

…0-20 catalogue

- image: add nano-banana-2, seedream-5-pro, gpt-image-2.5-flare/-sunburst,
  grok-imagine-image-2.0; grok-imagine-image-pro $0.07 -> $0.05; large-tier
  rules now match image.ts (nano-banana-pro steps at 4096, seedream on the
  smaller side, 2.5 pair $0.56 above 1024).
- video: add grok-imagine-video-1.5, seedance-2.0-mini and seedance-2.5;
  replace the stale Seedance rates with the charged per-second figures
  (GET /v1/models, 720p baseline); drop the image-to-video discount that no
  longer exists; price grok per resolution and Seedance by resolution factor.
- speech: add bytedance/seed-audio-1.0 display rate.
- announce-cost skill: price tables updated to the same figures.
@VickyXAI
VickyXAI merged commit bc6016d into main Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant