Skip to content

feat: add MiniMax image-01 and image-01-live - #11860

Merged
rekram1-node merged 1 commit into
devfrom
minimax-image-models
Oct 28, 2026
Merged

rekram1-node merged 1 commit into
devfrom
minimax-image-models

Conversation

@rekram1-node

Copy link
Copy Markdown
Collaborator

I added MiniMax's two image models to the minimax and minimax-cn providers so opencode can offer them.

This depends on anomalyco/opencode#59929, which adds the @opencode/ai/providers/minimax/images entrypoint. Please merge it after that one. Until then, opencode builds just skip these models as an unknown package.

models/minimax/
  image-01.toml          comment only (no longer "no provider entry")
+ image-01-live.toml     new lab file, v2_only
providers/minimax/models/
+ image-01.toml          api.minimax.io/v1, $0.0035/image
+ image-01-live.toml     api.minimax.io/v1, no price listed
providers/minimax-cn/models/
+ image-01.toml          api.minimax.cn/v1, CNY 0.025/image
+ image-01-live.toml     api.minimax.cn/v1, CNY 0.025/image

Each provider file is v2_only, inherits from the lab file, and has one [api.images] table with sdk = { aisdk = "none", opencodeai = "@opencode/ai/providers/minimax/images" }. Both models take text plus a JPG/PNG subject reference and return JPEG.

Sources:

A few things worth knowing:

  • The international pricing page doesn't list image-01-live, so I left its price out there instead of guessing.
  • MiniMax doesn't publish a separate release date for image-01-live, so it uses image-01's 2025-02-15. That's noted in the file.
  • I checked live on api.minimax.io. image-01-live serves text-only and subject reference requests, returns JPEG, and rejects width/height and the 21:9 preset.
  • I didn't add these to the coding plan providers.

Checks: bun validate passes. bun run v1:check says v1 output is byte-identical. The v2 output shows type: image, the images API with the right base URLs, and the costs above. bun test has the same 13 failures as clean dev.

@github-actions

Copy link
Copy Markdown
Contributor

No actionable findings.

@github-actions github-actions Bot added the reviewer: ready Automated review found no actionable items label Oct 28, 2026
@rekram1-node
rekram1-node merged commit ea52597 into dev Oct 28, 2026
2 checks passed
@rekram1-node
rekram1-node deleted the minimax-image-models branch October 28, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reviewer: ready Automated review found no actionable items

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant