Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Video Effects API

Turn a still image into a video with a named effect — viral transformations, cinematic VFX and camera moves — through one REST API. This guide covers all 161 supported video effect presets across four endpoints, the request fields, pricing and runnable curl, Python and JavaScript examples.

Muapi AI Video Effects API landing page · API reference · Video effects docs · Playground · Create an API key

Related Projects

  • MuAPI — Unified API for image, video, and audio generation across hundreds of AI models.
  • AI-Photo-Effects-API — Companion guide for 48 photo effects (figurines, comics, decade looks) on still images.
  • AI-Video-Editing-API — Restyle, extend, reframe and clip existing video.
  • Image-to-Video-API — Prompt-driven image-to-video models for open-ended motion.
  • AI-Video-API — Compare text-to-video and image-to-video models behind one API.
  • awesome-ai-video-models — Model, API and price comparison list for AI video.
  • Open-Generative-AI — Open-source generative media studio built on MuAPI.
  • muapi-cli — Terminal interface for the MuAPI endpoints used here.

What this API covers

Four effect endpoints share one authentication scheme and the same submit-and-poll flow. A fifth endpoint, ai-dance-effects, transfers the motion of a reference video onto a character image (image_url + video_url, optional prompt and resolution; billed at $0.05/sec for 480p or $0.10/sec for 720p of input video).

Endpoint What it does Presets Price
ai-video-effects AI Video Effects 64 $0.30–$1.20 (by quality, resolution, duration)
video-effects Viral Video Effect Templates 41 $0.30 flat
vfx VFX 9 $0.30–$1.20 (by quality, resolution, duration)
motion-controls Camera Motion Controls 47 $0.30–$1.20 (by quality, resolution, duration)

The effect is chosen with the name parameter. Effects are fixed, tuned templates, so output is repeatable — unlike a free-form image-to-video prompt.

Request fields

Field Endpoints Requirement Notes
image_url all Required Public URL of the input image (or upload with POST /api/v1/upload_file).
name all Required Effect preset, exactly as listed below (case-sensitive).
prompt ai-video-effects, vfx, motion-controls Required Short text inserted into the effect's template, e.g. the subject. Not used by video-effects.
aspect_ratio ai-video-effects, vfx, motion-controls Optional 16:9 (default) or 9:16.
resolution same Optional 480p (default) or 720p.
quality same Optional medium (default) or high.
duration same Optional 5 (default) or 10 seconds.
webhook_url all Optional Receive the result by callback instead of polling.

Pricing for ai-video-effects, vfx and motion-controls

Quality Resolution 5 s 10 s
medium 480p $0.30 $0.60
medium 720p $0.45 $0.90
high 480p $0.40 $0.80
high 720p $0.60 $1.20

video-effects is a flat $0.30 per video. Verify current pricing on the landing page before production use.

Choosing an endpoint

Compare the kind of effect first, then price and controls:

  • Viral transformations, characters, human moments, styles → ai-video-effects (prompt + duration/quality controls).
  • Social-style templates (kisses, hugs, morphs, memories) → video-effects (image + name only, flat price).
  • Cinematic VFX (explosions, disintegration, lightning) → vfx.
  • Camera moves (dolly, crane, crash zoom, FPV, whip pan) → motion-controls.
  • Open-ended, directed motion → use an image-to-video model instead; see Image-to-Video-API.

Quick start

Muapi uses an asynchronous REST contract. Submit a JSON request with your API key, save the returned request_id, then poll the result endpoint (or pass a webhook_url). Replace sample URLs with files you control.

export MUAPI_API_KEY=your_key_here
bash examples/submit.sh                 # curl
pip install -r requirements.txt && python examples/submit_and_poll.py
node examples/submit_and_poll.mjs       # Node 18+

Poll for the result:

curl "https://api.muapi.ai/api/v1/predictions/$REQUEST_ID/result" \
  -H "x-api-key: $MUAPI_API_KEY"

A completed response looks like:

{
  "id": "abc123xyz",
  "status": "completed",
  "outputs": ["https://cdn.muapi.ai/...output"],
  "cost": { "amount_usd": 0.3, "amount_credits": 30, "refunded": false }
}

Poll until status is completed or failed. Download outputs you need to keep, since hosted URLs can expire. Sandbox API keys return mock results instantly without spending credits, which is handy for building your integration first.

Errors and production notes

  • Keep the API key in an environment variable; never commit credentials.
  • name is case-sensitive and must match a preset in the lists below exactly; an unrecognised name is rejected or fails the task.
  • Handle non-2xx responses and failed task states explicitly; check the cost.refunded field on failed tasks.
  • Do not resubmit after a timeout without checking the original request_id, to avoid duplicate billable jobs.
  • Only submit images of people who have agreed to be used this way.
  • Confirm current pricing and availability on the Muapi page before estimating production cost.

Supported video effects

Pass any name below as name on its endpoint.

AI Video Effects — ai-video-effects (64 effects)

Fun Effects (33)

360 Rotation, Assassin It, Baby It, Bride It, Cakeify, Cartoon Jaw Drop, Crush It, Deflate It, Disney Princess It, Gun Reveal, Hug Jesus, Hulk Transformation, Inflate It, Jungle It, Jumpscare, Kamehameha, Melt It, Mona Lisa It, Museum It, Muscle Show Off, Pirate Captain, Princess It, Puppy it, Samurai It, Sharingan Eyes, Skyrim Fus-Ro-Dah, Snow White It, Squish It, Super Saiyan Transformation, VIP It, Warrior It, Wind Blast, Zen It

Characters (4)

Cats, Dogs, Goblin, Orc

Human Moments (9)

Angry, Boxing, Crying, Eye Close-Up, Glamor, Kiss Cam, Kissing, Laughing, Younger Self Selfie

Style (15)

Abandoned Places, Animal Documentary, Cyberpunk 2077, Fantasy Landscapes, Film Noir, Lego, Little Planet, Live Wallpaper, Looping Pixel Art, Pixar, POV Driving, Steamboat Willie, Ultra Wide, VHS Footage, Zoom Call

VFX (3)

Fire, Robotic Face Reveal, Tsunami

Viral Video Effect Templates — video-effects (41 effects)

Balloon Flyaway, Blow Kiss, Body Shake, Break Glass, Carry Me, Cartoon Doll, Cheek Kiss, Child Memory, Couple Arrival, Fairy Me, Fashion Stride, Fisherman, Flower Receive, Flying, French Kiss, Gender Swap, Golden Epoch, Hair Swap, Hugging, Jiggle Up, Kissing Pro, Live Memory, Love Drop, Melt, Minecraft, Muscling, Nap Me 360p, Paperman, Pilot, Pinch, Pixel Me, Romantic Lift, Sexy Me, Slice Therapy, Soul Depart, Split Stance Human, Squid Game, Toy Me, Walk Forward, Zoom In Fast, Zoom Out

VFX — vfx (9 effects)

Building Explosion, Car Explosion, Decay Time-Lapse, Disintegration, Electricity, Flying, Huge Explosion, Levitate, Tornado

Camera Motion Controls — motion-controls (47 effects)

Cinematic (22)

360 Orbit, Arc Shot, Crane Down, Crane Overhead, Crane Punch-In, Crane Up, Dolly In, Dolly Left, Dolly Out, Dolly Right, Dolly Zoom In, Dolly Zoom Out, Dutch Angle, Fast Dolly Zoom In, Fast Dolly Zoom Out, Focus Shift, Lazy Susan, Overhead, Tilt Down, Tilt Up, Zoom In, Zoom Out

High-Energy Motion (13)

Car Chase, Crash Zoom In, Crash Zoom Out, Hero Run, Human Timelapse, Landscape Timelapse, Matrix Shot, Motion Blur, Rap Video Cam, Robotic Cam, Whip Pan, Wiggle, Zoom Into Mouth

POV & Immersive (12)

Car Mount Cam, Dirty Lens, Fisheye Lens, FPV Drone Cam, Handheld Cam, Head Tracking, Lens Crack, Lens Flare, Object POV, Snorricam, Zoom In Through Object, Zoom Out Through Object

Releases

Packages

Contributors