by muapi · v0.0.8
Generate images, videos, and audio using MuAPI. Edit images, remove backgrounds, upscale images, and remix audio with 100+ AI models.
This community listing does not yet include every recommended support, privacy, pricing, and permission disclosure. Review the available package permissions before installing.
Available inside your emploidai workspace after installation.
Available inside your emploidai workspace after installation.
A comprehensive Dify Tool Plugin that integrates MuAPI into Dify, enabling AI-powered image generation, video creation, audio production, image editing, and more — directly from Dify workflows, chatflows, and agents.
muapi-dify-plugin/
│
├── main.py
├── manifest.yaml
├── requirements.txt
│
├── provider/
│ ├── muapi.yaml
│ └── muapi_provider.py
│
├── tools/
│ ├── generate_image.py
│ ├── generate_image.yaml
│ ├── generate_video.py
│ ├── generate_video.yaml
│ ├── image_to_video.py
│ ├── image_to_video.yaml
│ ├── edit_image.py
│ ├── edit_image.yaml
│ ├── remove_background.py
│ ├── remove_background.yaml
│ ├── upscale_image.py
│ ├── upscale_image.yaml
│ ├── generate_audio.py
│ ├── generate_audio.yaml
│ ├── remix_audio.py
│ └── remix_audio.yaml
│
└── _assets/
└── icon.png
git clone https://github.com/2005-ab/dify-plugin-muapi.git
cd dify-plugin-muapi
pip install -r requirements.txt
Requirements:
dify-plugin
git+https://github.com/SamurAIGPT/muapi-python.git
Navigate to the Dify Plugin Daemon repository:
cd dify-plugin-daemon
Package the plugin:
go run ./cmd/commandline plugin package <plugin-path>
Example:
go run ./cmd/commandline plugin package D:\dify\muapi-dify-plugin
Output:
muapi-dify-plugin.difypkg
Edit:
dify/docker/.env
Change:
FORCE_VERIFYING_SIGNATURE=true
To:
FORCE_VERIFYING_SIGNATURE=false
Restart Dify:
docker compose down
docker compose up -d
muapi-dify-plugin.difypkg
After installation:
The plugin validates your API key by calling the MuAPI account balance endpoint. If the key is invalid, you will see a credential validation error.
Get your API key from: https://muapi.ai/dashboard
Create images from text prompts.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| prompt | string | Yes | — | Text prompt describing the image |
| model | string | No | flux-dev | Image generation model |
| width | number | No | 1024 | Width in pixels |
| height | number | No | 1024 | Height in pixels |
| num_images | number | No | 1 | Number of images to generate |
Create videos from text prompts.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| prompt | string | Yes | — | Text prompt describing the video |
| model | string | No | kling-master | Video generation model |
| duration | number | No | 5 | Duration in seconds |
| aspect_ratio | string | No | 16:9 | Aspect ratio |
Animate a static image into a video.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| image | string | Yes | — | URL of the source image |
| prompt | string | Yes | — | Animation description |
| model | string | No | kling-std | Image-to-video model |
| duration | number | No | 5 | Duration in seconds |
| aspect_ratio | string | No | 16:9 | Aspect ratio |
Transform existing images with text-guided editing.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| image | string | Yes | — | URL of the source image |
| prompt | string | Yes | — | Edit description |
| model | string | No | flux-kontext-dev | Image editing model |
| aspect_ratio | string | No | — | Output aspect ratio |
Remove the background from an image.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| image | string | Yes | — | URL of the source image |
| model | string | No | bria-rmbg | Background removal model |
Enhance image resolution.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| image | string | Yes | — | URL of the image to upscale |
| scale_factor | number | No | 2 | Upscale factor (e.g. 2 for 2x) |
| model | string | No | aura-sr | Upscaling model |
Create music or audio from text descriptions.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| prompt | string | Yes | — | Audio/music description |
| title | string | No | — | Track title |
| tags | string | No | — | Genre/style tags |
| instrumental | boolean | No | false | Instrumental only |
Transform existing audio with text-guided remixing.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| audio | string | Yes | — | URL of the audio to remix |
| prompt | string | Yes | — | Remix description |
| title | string | No | — | Track title |
| tags | string | No | — | Genre/style tags |
User Input → Generate Image → Output Image
Example prompt:
A futuristic city at sunset with flying cars
User Input → Generate Video → Output Video Link
Example prompt:
A drone flying over a mountain landscape at golden hour
Upload Image → Image to Video → Output Video Link
Generate Image → Edit Image → Upscale Image → Output
Upload Image → Remove Background → Output Transparent Image
User Input → Generate Audio → Output Audio Link
Example prompt:
A chill lo-fi beat with soft piano and rain sounds
{
"files": [
{
"extension": ".avif",
"filename": "generated-image.avif"
}
]
}
{
"video": "https://cdn.muapi.ai/videos/example-output.mp4"
}
{
"audio": "https://cdn.muapi.ai/audio/example-output.mp3"
}
Screenshot placeholder: Plugin installed in Dify
Screenshot placeholder: MuAPI API key configuration
Screenshot placeholder: Image generation workflow in Dify
Screenshot placeholder: Video generation workflow in Dify
Screenshot placeholder: Audio generation workflow in Dify
Dify Workflow
↓
MuAPI Tool
↓
MuAPI SDK
↓
MuAPI API
↓
Generated Output
↓
Returned to Dify
Status:
✅ Plugin Packaging
✅ Plugin Installation
✅ Credential Configuration
✅ Credential Validation (API verification)
✅ Image Generation
✅ Image Editing
✅ Background Removal
✅ Image Upscaling
✅ Video Generation
✅ Image to Video
✅ Audio Generation
✅ Audio Remix
✅ Image Delivery to Dify
✅ Video Link Delivery to Dify
✅ Audio Link Delivery to Dify
tools/<tool_name>.py with a class extending Tooltools/<tool_name>.yaml with Dify tool schemaprovider/muapi.yaml under tools:Every tool parameter must include:
human_description:
en_US: ...
llm_description: ...
form: llm # or form
Every tool must include:
extra:
python:
source: tools/<tool>.py
MIT License
Built using: