feat(video): add direct MiniMax (Hailuo) video generation tool - #198
Open
huzy1234 wants to merge 1 commit into
Open
feat(video): add direct MiniMax (Hailuo) video generation tool#198huzy1234 wants to merge 1 commit into
huzy1234 wants to merge 1 commit into
Conversation
Adds `minimax_video_direct`, a video_generation provider that talks straight to the MiniMax open platform instead of routing through fal.ai (the existing `minimax_video` tool requires FAL_KEY). Why: users with a native MiniMax API key had no way to use it — the only MiniMax path went through fal.ai. This unlocks direct access. - Reads MINIMAX_API_KEY / MINIMAX_API_BASE / MINIMAX_VIDEO_MODEL - Supports both China (api.minimaxi.com) and global (api.minimax.io) bases - Implements the async flow: submit -> poll query -> retrieve file -> download mp4 - text_to_video and image_to_video (URL or local image as base64) - Follows the BaseTool contract; auto-discovered by the registry and surfaced by video_selector with no further wiring - Documents the new env vars in .env.example Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
What
Adds
minimax_video_direct, a newvideo_generationprovider tool that calls the MiniMax open platform directly instead of routing through fal.ai.Why
Today the only MiniMax path is
minimax_video, which goes through fal.ai and requiresFAL_KEY. Users who hold a native MiniMax API key had no way to use it. This tool closes that gap.How
MINIMAX_API_KEY/MINIMAX_API_BASE/MINIMAX_VIDEO_MODELfrom the environment.https://api.minimaxi.com, default) and the global platform (https://api.minimax.io).POST /v1/video_generation→ pollGET /v1/query/video_generation→GET /v1/files/retrieve→ download the mp4.text_to_videoandimage_to_video(image as a public URL or a local file sent as a base64 data URI).BaseToolcontract, so it is auto-discovered by the registry and surfaced byvideo_selectorwith no additional wiring..env.example.Notes for reviewers
provideris set tominimax(same family as the fal-routed tool); the two coexist andfallback_toolschains tominimax_videoand others.MiniMax-Hailuo-02text-to-video request completed successfully and downloaded a valid mp4.🤖 Generated with Claude Code