Skip to content

feat(media): support MiniMax H3 text-to-image generation - #421

Open
octo-patch wants to merge 1 commit into
AVIDS2:mainfrom
octo-patch:octo/20261202-h3-text-to-image-tool-reczz28gppuGXOlq
Open

octo-patch wants to merge 1 commit into
AVIDS2:mainfrom
octo-patch:octo/20261202-h3-text-to-image-tool-reczz28gppuGXOlq

Conversation

@octo-patch

Copy link
Copy Markdown
Contributor

Reason: The media CLI and MCP tool currently support only the legacy MiniMax image models. Operators need an explicit way to select H3 for text-to-image generation.

Register MiniMax-H3-Image and MiniMax-H3-Image-Highspeed on the global and China endpoints. The existing image-01 default and reference-image workflow stay available. H3 uses one HTTPS POST with a ten-minute minimum deadline. A partial batch imports successful images into the media store and reports each item-level failure.

Validation used Node 22 and mocked provider responses. The built CLI was exercised against a local HTTPS server for a partial HTTP 200 response and an HTTP 422 response. Each invocation sent one generation request.

  • npm run build
  • npm run lint
  • npm --workspace @memorix/ai test -- minimax-images.test.ts minimax-h3-images.test.ts (17 tests)
  • npm test -- tests/media/minimax.test.ts tests/integration/media-mcp.test.ts tests/cli/media-command.test.ts tests/evaluation/media-schema-honesty.test.ts (24 tests)
  • npm test in a private temporary directory (3,366 passed, 5 skipped)

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.

1 participant