Skip to content

feat: add MuAPI video generation tool#107

Open
Anil-matcha wants to merge 1 commit into
calesthio:mainfrom
Anil-matcha:feat/muapi-video-tool
Open

feat: add MuAPI video generation tool#107
Anil-matcha wants to merge 1 commit into
calesthio:mainfrom
Anil-matcha:feat/muapi-video-tool

Conversation

@Anil-matcha

Copy link
Copy Markdown

Summary

Adds tools/video/muapi_video.py — a video generation tool backed by muapi.ai, a unified API aggregator for 400+ generative media models.

What this adds

  • MuApiVideo tool following the BaseTool contract (same pattern as seedance_video.py, kling_video.py)
  • Text-to-video: Veo3, Veo3-fast, Kling, Wan 2.1/2.2, Seedance Pro, Runway, Pixverse, HunyuanVideo, Minimax
  • Image-to-video: Kling, Wan, Seedance, Runway, Pixverse, Vidu, HunyuanVideo
  • Async submit → poll pattern matching muapi's API contract
  • get_status() checks for MUAPI_API_KEY env var
  • estimate_cost() based on per-second pricing

Setup

export MUAPI_API_KEY=your_key_here
# Get one at https://muapi.ai/dashboard/api-keys

Example

from tools.video.muapi_video import MuApiVideo

tool = MuApiVideo()
result = tool.execute({
    "prompt": "A cinematic drone shot over a misty mountain lake at sunrise",
    "operation": "text_to_video",
    "model_variant": "veo3-fast",
    "duration": 5,
    "aspect_ratio": "16:9",
    "output_path": "output.mp4",
})
print(result.data["output"])

@Anil-matcha Anil-matcha requested a review from calesthio as a code owner June 17, 2026 06:23
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