Repository navigation
Conversation
gpt-image-1's provider shut it down on 2026-10-23. sol.blockrun.ai retired it on 2026-11-24, and Base, Arc and the API-key rail retire it next with a 400 `model_retired` before payment (blockrun spec 2026-12-04-gpt-image-1-retire, D5: clients ship first). ClawRouter still sent it by default for every unpinned edit off Solana. - DEFAULT_IMAGE_EDIT_MODEL replaces defaultImageEditModel(apiBase): every gateway now gets openai/gpt-image-2, the cheapest edit model that takes a mask. The per-gateway switch (and isSameGateway) is gone with it. - `gpt-image` now means openai/gpt-image-2 in all three alias tables (MODEL_ALIASES, IMAGE_MODEL_ALIASES, /img2img). The `gpt-image-1` shorthand is removed rather than redirected: a silent swap would sell another model under the old name, so the id reaches the gateway as typed and the caller gets its model_retired answer. - openai/gpt-image-1 leaves IMAGE_PRICING and the OpenClaw image picker; the image tool now lists 15 models. The edit tool's floor price moves to $0.05 (nano-banana, nano-banana-2-lite). - The parity test against brand-numbers.json allows for the one id dropped ahead of blockrun's published count and fails, on purpose, once a refresh brings models.image to 15, so the allowance gets removed. - README, docs/image-generation.md, skills/imagegen and skills/clawrouter, /cr-imagegen and /img2img help text, reinstall.sh, and tests that used gpt-image-1 as a sample model follow.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Implements the ClawRouter row of §5 of blockrun spec
specs/2026-12-04-gpt-image-1-retire.md(owner-approved 2026-12-04, D5: clients ship before the gateways retire gpt-image-1).Merge order: after #725 (v0.12.342). This PR bumps to 0.12.343; if #725 lands first, rebase and rebuild
dist/(conflicts are only CHANGELOG top, version lines and dist). Do not merge this ahead of #725, or 0.12.342 would follow 0.12.343.Why
GPT Image 1's provider shut it down on 2026-10-23. Solana retired it on 2026-11-24; Base, Arc and the API-key rail retire it next with 400
model_retiredbefore payment. ClawRouter still sent it as the default for every unpinned edit off Solana, so those edits would start failing the moment the gateways retire it.Changes
DEFAULT_IMAGE_EDIT_MODEL = "openai/gpt-image-2"replacesdefaultImageEditModel(apiBase)(and itsisSameGatewayhelper). Used by/v1/images/image2image, theimage_edittool and/img2img.gpt-image→openai/gpt-image-2inMODEL_ALIASES,IMAGE_MODEL_ALIASESand the/img2imgtable. Thegpt-image-1alias is removed, not redirected: a request naming it reaches the gateway as typed and getsmodel_retired(no charge), instead of silently getting another model.openai/gpt-image-1removed fromIMAGE_PRICINGand the OpenClaw image picker; image tool now says 15 models;image_editfloor price $0.05 (nano-banana, nano-banana-2-lite)./cr-imagegenand/img2imghelp,partners/registry.ts, README,docs/image-generation.md,skills/imagegen/SKILL.md,skills/clawrouter/SKILL.md,scripts/reinstall.shupdated.brand-numbers.json(still 16 until Base deploys) allows for this one id and fails on purpose once a refresh bringsmodels.imageto 15, so the allowance gets removed then.Checks
npm run typecheck,npm run lint,prettier --check .,sync-brand-numbers.mjs --check: clean.npm test: 1602 passed, 1 skipped.src/index.lifecycle.test.ts(2 tests) andsrc/index.plugin-id-migration.test.ts(1 test) are flaky on this machine: they failed on some runs here and also failed on unmodifiedorigin/mainin isolation; they pass on rerun.Left alone
br:models.imagemarkers stay at 16 (brand-synced; they move when blockrun.ai publishes 15).@blockrun/model-catalogsnapshot indist/still lists gpt-image-1; that is the model-catalog package's follow-up.Summary by CodeRabbit
New Features
gpt-imageshorthand also routes to GPT Image 2.Changes