feat(image): add GPT Image 2.5 tiers, align aspect ratios with the server, drop nano-banana [ENG-3054] - #7
Merged
Merged
Conversation
…rver, drop nano-banana [ENG-3054]
meshyd (PRO-2839, #5891) exposes two new public ai_model names on
/openapi/v1/text-to-image and /openapi/v1/image-to-image:
gpt-image-2-5-flare (fast tier) and gpt-image-2-5-sunburst (precision-edit
tier). Add both to the shared --ai-model table so the 2D image commands
accept them; gpt-image-2 stays the default.
Mirror the server's per-model aspect-ratio rule (ENG-2233, #5506): every
GPT Image model accepts all seven ratios, only the nano-banana family
rejects 3:2 and 2:3. The CLI previously refused gpt-image-2 with 4:3/3:4
even though the API accepts them.
Drop the first-generation nano-banana from the flag surface. The API still
accepts it; --data '{"ai_model":"nano-banana"}' remains the escape hatch.
Verified live: gpt-image-2-5-flare + 3:4 through the built CLI
(task 01a0a308-cdab-765f-a182-3755ece5ce7c, SUCCEEDED, 9 credits).
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…ite one [ENG-3054] Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.
Linear: ENG-3054
What
gpt-image-2-5-flare(fast tier) andgpt-image-2-5-sunburst(precision-edit tier) to--ai-modelontext-to-image createandimage-to-image create.gpt-image-2stays the default.3:2/2:3. The CLI previously refusedgpt-image-2 --aspect-ratio 4:3even though the API accepts it.nano-bananafrom the flag surface. The API still accepts it;--data '{"ai_model":"nano-banana"}'remains the escape hatch. README example switched tonano-banana-2-lite.--ai-model/--aspect-ratioupdated; no pricing added to the command surface.Why
meshyd shipped the 2.5 tiers in PRO-2839 (taichi-dev/meshyd#5891) and widened
gpt-image-2to4:3/3:4in ENG-2233 (#5506).docs.meshy.aihas not caught up yet, so the rules here were taken frompkg/server/api_image_generation_handlers.goandpkg/taskservice/imagegen.goon meshydorigin/main, and cross-checked against the live API (a bogusai_modelreturns the full valid list, which includes both 2.5 names).Verification
pnpm typecheckandpnpm testgreen (559 tests).text-to-image create --ai-model gpt-image-2-5-flare --aspect-ratio 3:4→ task01a0a308-cdab-765f-a182-3755ece5ce7c, SUCCEEDED,consumed_credits: 9.gpt-image-2+4:3→ task01a0a304-da6f-750b-b8f9-3bc3d2c6b836, SUCCEEDED (confirms the widened ratio set).--ai-model nano-banana-2-lite --aspect-ratio 3:2still fails locally with exit 2 before any request.Follow-up (separate)
docs.meshy.aitext-to-image / image-to-image / pricing / changelog pages still list four models and the old five-ratio set forgpt-image-2.🤖 Generated with Claude Code
Co-Authored-By: Claude Fable 5.1 noreply@anthropic.com