muapi-media-editing

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

✏️ MuAPI Media Editing & Enhancement

✏️ MuAPI 媒体编辑与增强

Advanced editing and enhancement operations for images and videos.
Apply AI-powered edits, enhancements, and effects to existing media. Supports prompt-based editing with Flux Kontext, GPT-4o, and Midjourney, plus one-click operations like upscaling and background removal.
针对图片和视频的高级编辑与增强操作。
为现有媒体应用AI驱动的编辑、增强和特效。支持通过Flux Kontext、GPT-4o和Midjourney进行基于提示词的编辑,还支持画质提升、背景移除等一键操作。

Available Scripts

可用脚本

ScriptDescription
edit-image.sh
Prompt-based image editing (Flux Kontext, GPT-4o, Midjourney, Qwen, and more)
enhance-image.sh
One-click operations: upscale, background removal, face swap, colorize, Ghibli style, product shots
lipsync.sh
Sync video lip movement to audio (Sync Labs, LatentSync, Creatify, Veed)
video-effects.sh
Video/image effects: Wan AI, face swap, dance, dress change, Luma modify/reframe
ScriptDescription
edit-image.sh
基于提示词的图片编辑(支持Flux Kontext、GPT-4o、Midjourney、Qwen等模型)
enhance-image.sh
一键操作:画质提升、背景移除、人脸互换、色彩还原、吉卜力风格转换、商品图优化
lipsync.sh
视频唇形与音频同步(支持Sync Labs、LatentSync、Creatify、Veed)
video-effects.sh
视频/图片特效:Wan AI、人脸互换、舞蹈特效、换装、Luma修改/重构图

Quick Start

快速开始

bash
undefined
bash
undefined

Edit an image with a prompt

Edit an image with a prompt

bash edit-image.sh --image-url "https://..." --prompt "add sunglasses" --model flux-kontext-pro
bash edit-image.sh --image-url "https://..." --prompt "add sunglasses" --model flux-kontext-pro

Upscale an image

Upscale an image

bash enhance-image.sh --op upscale --image-url "https://..."
bash enhance-image.sh --op upscale --image-url "https://..."

Remove background

Remove background

bash enhance-image.sh --op background-remove --image-url "https://..."
bash enhance-image.sh --op background-remove --image-url "https://..."

Lipsync a video

Lipsync a video

bash lipsync.sh --video-url "https://..." --audio-url "https://..." --model sync
bash lipsync.sh --video-url "https://..." --audio-url "https://..." --model sync

Apply dance effect

Apply dance effect

bash video-effects.sh --op dance --image-url "https://..." --audio-url "https://..."
undefined
bash video-effects.sh --op dance --image-url "https://..." --audio-url "https://..."
undefined

Common Flags

通用参数

All scripts support:
--async
,
--json
,
--timeout N
,
--help
所有脚本均支持:
--async
,
--json
,
--timeout N
,
--help

Requirements

依赖要求

  • MUAPI_KEY
    environment variable (set via
    core/platform/setup.sh
    )
  • curl
    ,
    jq
    ,
    python3
  • MUAPI_KEY
    环境变量(可通过
    core/platform/setup.sh
    进行配置)
  • curl
    ,
    jq
    ,
    python3