Skip to content

feat: add MiniMax image generation tool node - #6686

Open
octo-patch wants to merge 1 commit into
FlowiseAI:mainfrom
octo-patch:octo/20260730-text-to-image-tool-recvqctesokVdv
Open

feat: add MiniMax image generation tool node#6686
octo-patch wants to merge 1 commit into
FlowiseAI:mainfrom
octo-patch:octo/20260730-text-to-image-tool-recvqctesokVdv

Conversation

@octo-patch

Copy link
Copy Markdown

Reason: Flowise has no MiniMax image-generation tool, so agents cannot generate images through the MiniMax text-to-image API.

What this adds

  • MiniMax Image Generation tool node (packages/components/nodes/tools/MinimaxImageGeneration/) in the Tools category. It wraps the POST /v1/image_generation endpoint and is exposed to agents as a StructuredTool (minimax_image_generation) whose input is a text prompt.
  • MiniMax API credential (packages/components/credentials/MinimaxApi.credential.ts) holding the API key, sent as a Bearer token.

Configuration options

  • Region — Global (https://api.minimax.io) or Mainland China (https://api.minimaxi.com).
  • Modelimage-01 (default) or image-01-live.
  • Aspect Ratio1:1 (default), 16:9, 4:3, 3:2, 2:3, 3:4, 9:16, 21:9.
  • Number of Images, Response Format (url default, or base64), and Prompt Optimizer (advanced params).

The tool returns the generated image URLs (valid for 24 hours) or Base64 data, and surfaces API errors via the base_resp.status_code / HTTP status.

Notes

  • Follows the existing tool-node conventions (compare Serper), and the SVG icon is bundled by the existing gulp copyIcons step. The node is auto-discovered by the component loader, so no registry wiring is required.
  • A unit test (MinimaxImageGeneration.test.ts) covers initialization, regional endpoint routing, the request payload, and error handling using a mocked fetch.

Add a Tools-category node that generates images from a text prompt via
the MiniMax image generation API, with a matching credential for the API
key. Supports global and mainland China regions, model and aspect-ratio
selection, URL or Base64 output, and prompt optimization.
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

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