Motion Graphics Edit API: AI Video Editing

Edit and transform videos with Motion Graphics Edit via the Muapi REST API. Pay per generation — no subscription needed.

Motion Graphics Edit API Reference

Endpoint

POST https://api.muapi.ai/api/v1/motion-graphics-edit

Submit 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.

Parameters

NameTypeRequiredDescription
request_idstringYesThe request_id from a completed motion-graphics generation.
edit_promptstringYesDescribe what to change (e.g. 'change the background to dark blue and make the bars gold').
duration_secondsintNoOverride the output duration (5–30 s). Defaults to the original generation’s duration.Default: 6
aspect_ratiostringNoOverride the output canvas aspect ratio. Defaults to the original generation’s ratio.Options: 16:9, 9:16, 1:1Default: "16:9"

cURL example

REQUEST_ID=$(curl -s -X POST https://api.muapi.ai/api/v1/motion-graphics-edit \
  -H "x-api-key: $MUAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"request_id":"<request_id>","edit_prompt":"<edit_prompt>"}' | jq -r .request_id)

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

Python example

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}/motion-graphics-edit", headers=headers, json={"request_id":"<request_id>","edit_prompt":"<edit_prompt>"})
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.