Repository navigation
Add MiniMax H3 text-to-image generation - #4872
Open
octo-patch wants to merge 2 commits into
Open
octo-patch wants to merge 2 commits into
octo-patch wants to merge 2 commits into
Conversation
octo-patch
requested review from
404oops,
ProgrammerIn-wonderland,
Salazareo and
reynaldichernando
as code owners
December 3, 2026 22:11
|
|
Collaborator
|
Please sign the CLA. |
This branch has not been deployed
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.
Reason: Puter's image driver can use the existing MiniMax credentials to generate a single H3 image from a text prompt.
Use
puter.ai.txt2img('a clay bird', { model: 'minimax-h3-image' })or selectminimax-h3-image-highspeed. The provider uses the configured MiniMax host, supports exact pixel dimensions and aspect ratios, and sends one generation request with a ten-minute timeout. It refuses redirects and propagates per-image and HTTP errors. A rate limit returned by H3 marks this request as unsafe to replay, so the SDK sends a single generation POST. Local concurrency gates continue to back off and retry.The driver holds estimated credits before generation and settles using the reported input and output tokens. Its USD catalog uses MiniMax's global list prices for both regional endpoints. The 4K discount applies to the delivered resolution. API reference · Image pricing
I exercised the built Node SDK against a local Puter server and a mock H3 HTTP server, including a successful image, a moderation error, and upstream rate limits using model IDs and provider aliases. The provider tests cover both model routes, credits, timeout handling, and requests to the configured CN host. All generation checks used mocked HTTP.
npm run checkpassed lint, backend and SDK type checks, the benchmark comparison, 12,110 backend tests and 5,212 SDK tests. The repository skipped 47 backend tests and 237 SDK tests, with one SDK test marked TODO.