Edit and transform videos with Video Edit via the Muapi REST API. Pay per generation — no subscription needed.
POST https://api.muapi.ai/api/v1/happy-horse-1.1-video-edit-1080pSubmit a job with your MuApi API key in the x-api-key header, then poll https://api.muapi.ai/api/v1/predictions/{request_id}/result until status is completed.
| Name | Type | Required | Description |
|---|---|---|---|
| prompt | string | Yes | Edit instruction describing the change to apply to the video. |
| video_url | string | Yes | Source video URL. MP4/MOV (H.264 recommended), 3-60s, <=100 MB, longer side <=2160px, shorter >=320px, frame rate >8 fps. |
| images_list | array | No | Optional 0-5 reference image URLs to guide the edit. |
| audio_setting | string | No | Audio strategy: 'auto' lets the model decide, 'origin' preserves source audio.Options: auto, originDefault: "auto" |
| seed | int | No | Optional random seed for reproducibility (0-2147483647).Default: 0 |
REQUEST_ID=$(curl -s -X POST https://api.muapi.ai/api/v1/happy-horse-1.1-video-edit-1080p \
-H "x-api-key: $MUAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt":"<prompt>","video_url":"https://example.com/your-video_url"}' | jq -r .request_id)
curl -s https://api.muapi.ai/api/v1/predictions/$REQUEST_ID/result -H "x-api-key: $MUAPI_API_KEY"import os, time, requests
API = "https://api.muapi.ai/api/v1"
headers = {"x-api-key": os.environ["MUAPI_API_KEY"]}
r = requests.post(f"{API}/happy-horse-1.1-video-edit-1080p", headers=headers, json={"prompt":"<prompt>","video_url":"https://example.com/your-video_url"})
request_id = r.json()["request_id"]
while True:
res = requests.get(f"{API}/predictions/{request_id}/result", headers=headers).json()
if res["status"] == "completed":
print(res["outputs"]); break
if res["status"] == "failed":
raise RuntimeError(res.get("error"))
time.sleep(3)Full docs and agent/MCP integration: llms.txt. Get an API key at muapi.ai/access-keys.