Skip to content

Add MiniMax H3 text-to-image generation - #4872

Open
octo-patch wants to merge 2 commits into
HeyPuter:mainfrom
octo-patch:octo/20261203-h3-text-to-image-tool-reczz28hETf7CtWS
Open

octo-patch wants to merge 2 commits into
HeyPuter:mainfrom
octo-patch:octo/20261203-h3-text-to-image-tool-reczz28hETf7CtWS

Conversation

@octo-patch

@octo-patch octo-patch commented Dec 3, 2026 •

Copy link
Copy Markdown

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 select minimax-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 check passed 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.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@404oops

404oops commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Please sign the CLA.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants