Repository navigation
fix(catalog): align chat/free/image/video tables with the live 2026-10-20 catalogue - #180
Merged
Merged
Conversation
…he live 2026-10-20 catalogue Chat (src/utils/constants.ts) - CHAT_PRICE_PER_MTOKEN: add the 33 live paid chat ids that had no row (gpt-6.1-sol, gpt-5.6-*-pro, mistral-large-4, glm-5.3/-flash, qwen3.8-max/ -flash, gemini-3.6/3.8-flash, hy4-preview, mimo-v2.5, ...), so an explicit call reserves its own rate instead of the $5/$30 default. - Drop tencent/hy3 (hidden, redirected; row stale vs the account sheet). claude-opus-4 stays: hidden but served at $15/$75 on the account rail. - LONG_CONTEXT: add gpt-6.1-sol's >272K step ($4/$15). - MODEL_TIERS.free: re-probed both chains (unpaid, realistic prompt). north-mini-code and laguna-xs-2.1 now answer as nemotron-3-super-120b on both chains and leave the tier; nemotron-3-super-120b (self-serving on both) joins it. FREE_CHAT_MODELS keeps every $0 id: all fourteen still answer 200 unpaid and the gateway redirects retired ids to $0 targets. Media - image: add gpt-image-2.5-flare/-sunburst ($0.28 / $0.56) and grok-imagine-image-2.0 ($0.04); sunburst joins edit + mask sets; grok-imagine-image-pro $0.07 -> $0.05 (gateway cut it 2026-09-08). - video: add grok-imagine-video-1.5 ($0.08/$0.14/$0.25 per second at 480p/720p/1080p, 1-15s, no margin, same as grok-imagine-video). - verify:prices probes the new image and video rows. Tests pin the new rows against live unpaid 402 quotes; README / schema overhead doc / context-cost cards updated for the larger tool descriptions.
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
Chat —
src/utils/constants.tsCHAT_PRICE_PER_MTOKEN: adds the 33 live, available, paid chat ids that had no row. Without a row an explicit call reserved the $5/$30 default, which shuts small budgets out of cheap models. Added:openai/gpt-6.1-sol,gpt-5.6-sol-pro,gpt-5.6-terra-pro,gpt-5.6-luna-pro,chat-latest,gpt-5.4,gpt-5.4-mini,gpt-5.2,gpt-4.1{,-mini,-nano},gpt-4o{,-mini},o3,o3-mini,o4-mini,google/gemini-3.8-flash,gemini-3.6-flash,gemini-2.5-pro,gemini-3.1-flash-lite,gemini-2.5-flash-lite,deepseek/deepseek-v4-flash-vision-exp,zai/glm-5.3,glm-5.3-flash,minimax/minimax-m2.7,qwen/qwen3.8-max,qwen3.8-flash,qwen3.7-plus,tencent/hy4-preview,xiaomi/mimo-v2.5,mimo-v2.5-pro,poolside/laguna-s-2.1,mistral/mistral-large-4.tencent/hy3. It's hidden and the wallet gateways redirect it to qwen3.7-flash. Its $0.132/$0.528 row was stale against the account sheet ($0.0825/$0.33). Without a row it reserves the $5/$30 default, which covers every rail, including the redirect target's own long-context steps.anthropic/claude-opus-4on purpose. It's hidden but the account rail still serves it at $15/$75, so removing the row would under-reserve.LONG_CONTEXT_PRICE_PER_MTOKEN: addsgpt-6.1-sol>272K → $4/$15, the only new step in the catalogue.MODEL_TIERS.free: re-probed both gateways (unpaid, ~3,000-char prompt, max_tokens 32, responsemodelchecked).cohere/north-mini-codeandpoolside/laguna-xs-2.1now answer asnvidia/nemotron-3-super-120bon both chains, so they leave the tier.nvidia/nemotron-3-super-120bserves itself on both chains and joins it. New order:gpt-oss-20b,nemotron-3-super-120b,llama-3.2-11b-vision,nemotron-3-nano-omni(tail).FREE_CHAT_MODELSkeepsgpt-oss-120b,step-3.7-flash,mistral-nemotron,nemotron-nano-*andgemma-4-31b. All fourteen $0 ids still answer HTTP 200 with no payment on both chains. The gateway lists them asbillingMode:"free", andMODEL_REDIRECTSsends them to $0 targets. The account sheet also bills them at $0. If they were removed, an explicit call would reserve $5/$30 for a free call, and an exhausted budget would refuse it.Image —
src/tools/image.tsopenai/gpt-image-2.5-flareand-sunburstat $0.28 (1024²) and $0.56 (1536×1024 / 1024×1536). Sunburst joins the edit and mask sets, as in the gateway'simage-editing.ts.xai/grok-imagine-image-2.0at $0.04.xai/grok-imagine-image-pro: $0.07 → $0.05. The gateway corrected this on 2026-09-08, so we had been over-reserving by 40%.Video —
src/tools/video.tsxai/grok-imagine-video-1.5: $0.08 / $0.14 / $0.25 per second at 480p / 720p / 1080p, 1–15s, 8s default. No margin, same as grok-imagine-video. 4K is refused before payment.Sources
GET https://blockrun.ai/api/v1/modelsandhttps://sol.blockrun.ai/api/v1/models(2026-10-20). Both quote the same $/M input/output for all 88 chat models.blockrun/src/lib/models.ts: imagesizes[]base prices, videopricePerSecondByResolution, free/hidden flags.src/lib/image-editing.tsfor edit/mask sets. Chat routeMODEL_REDIRECTS.npm run verify:prices. They are pinned in the new tests.Checks
npm run typecheck: cleannpm test: 1422/1422 passnpm run build: oknpm run verify:prices: exit 0. 0 under-reserving on Base and Solana. The catalogue sweep finds 0 gaps on Base, Solana and the account sheet. New probes: grok-imagine-video-1.5 matches exactly at every tier. The new image rows over-reserve only by the usual $0.001 fee gap.docs/mcp-schema-overhead.mdand the context-cost cards were regenerated: full profile 14,018 → 14,335 tokens, media 6,827 → 7,144, trading saving 61% → 62%.package.jsonis untouched. No version bump, no publish.