Repository navigation
fix(estimate): mirror @blockrun/mcp media prices from the live 2026-10-20 catalogue - #2
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
lib/estimate.jsis 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
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-flareand-sunburst($0.28, or $0.56 above 1024), andxai/grok-imagine-image-2.0($0.04).xai/grok-imagine-image-pro: $0.07 → $0.05.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
xai/grok-imagine-video-1.5,bytedance/seedance-2.0-miniandbytedance/seedance-2.5.resolutionis 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.0display rate ($0.30/1k), as in MCPspeech.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
GET https://blockrun.ai/api/v1/models(2026-10-20): per_image, per_second, per_1k_chars.src/lib/models.ts: imagesizes[], videopricePerSecondByResolution.src/tools/{image,video,speech,music}.ts, as updated in fix(catalog): align chat/free/image/video tables with the live 2026-10-20 catalogue blockrun-mcp#180.Checks
This repo has no test suite or package.json. I ran:
node --checkonlib/estimate.jsandhooks/*.jsestimate()over every new model and size/resolution tierhooks/spend-gate.jsrun with a grok-imagine-video-1.5 720p input, which returned anaskwith an estimate of $1.12The Claude and Codex copies of
lib/estimate.jsare byte-identical.