Developers

MotionForge API

Get an API keyCredits & pricing

Use the MotionForge API to run any of our video, image and audio models from your own code, scripts or automation tools (n8n, Make, Zapier webhooks). It uses the same credits and prices as the app.

1. Get a key Create a key in Account โ†’ API keys. Keep it secret โ€” anyone with it can spend your credits. Send it on every request:

Authorization: Bearer mf_live_โ€ฆ

2. Pick a model GET https://motionforgeapp.com/api/v1/models lists every tool with its modes and input fields (keys, types, options, defaults). Image, video and audio inputs are public HTTPS URLs.

3. Start a generation POST https://motionforgeapp.com/api/v1/generate with JSON:

{ "tool": "kling-4", "input": { "mode": "text", "prompt": "A red fox runs through snow at dawn, tracking shot", "duration": "5", "aspect": "9:16", "resolution": "720p" } }

The response (202) contains the generation id, its status (queued) and the credits reserved.

4. Get the result GET https://motionforgeapp.com/api/v1/generations/{id} โ€” poll every 5โ€“10 seconds until status is completed (then outputs holds the file URLs) or failed (credits are refunded automatically; see error).

Upload a file POST https://motionforgeapp.com/api/v1/upload with multipart form data (field file: png, jpg, webp, mp4, mov, mp3, wav or m4a, up to 5 minutes) returns { "url" } to use as an image, video or audio input.

Check your balance GET https://motionforgeapp.com/api/v1/me returns your plan, credits and API cashback.

API cashback Every job you run through the API or a connector (Claude, ChatGPT, MCP) gives back 10% of its credits as bonus credits when it finishes, up to 2,000 credits a month. Failed jobs are refunded in full instead. See it in GET /api/v1/me โ†’ cashback.

Command line (CLI) One file, nothing to install. Needs Node.js 18 or newer. Handy for scripts, batch jobs and coding agents (Claude Code, Codex, Cursor).

curl -fsSL https://motionforgeapp.com/cli/motionforge.mjs -o motionforge.mjs

node motionforge.mjs login mf_live_โ€ฆ saves your key. Then:

  • node motionforge.mjs models --kind video lists tools; model kling-4 shows one tool's fields.
  • node motionforge.mjs generate nano-banana-pro --prompt "a lighthouse at dusk" --count 2 --wait --out ./out makes images and saves them.
  • node motionforge.mjs generate kling-4 --mode image --image ./start.png --prompt "slow push in" --wait uploads the local photo for you.
  • status <id> --wait --out ./out, upload <file>, me. Add --json for machine-readable output.

Plugins for Blender, After Effects and Premiere Pro Generate without leaving your editor: download the plugins. They use the same API key.

Errors Errors return JSON { "error": { "code", "message" } }:

HTTPcodeMeaning
400invalid_input / bad_requestMissing or invalid fields โ€” the message says which
401missing_key / invalid_keyNo key, or a revoked key
402insufficient_creditsTop up or turn on auto-refill; needed shows the cost
403plan_requiredThat model needs a higher plan
404unknown_tool / not_foundCheck the tool id or generation id
429rate_limited / concurrency_limit60 requests/minute per key; plan limits on running jobs

Use MotionForge from Claude, Cursor and other AI apps (MCP) MotionForge is also an MCP server, so AI assistants can generate for you: "make a 10-second vertical video ofโ€ฆ".

One-click (no API key): in Claude go to Settings โ†’ Connectors โ†’ *Add custom connector*, paste https://motionforgeapp.com/api/mcp and click Connect. In ChatGPT go to Settings โ†’ Apps & Connectors โ†’ *Create* (developer mode), paste the same URL and choose OAuth. Sign in to MotionForge and click Allow. Disconnect any time in Account.

Server URL: https://motionforgeapp.com/api/mcp ยท Transport: Streamable HTTP ยท Auth header: Authorization: Bearer mf_live_โ€ฆ (or an OAuth token from the one-click flow)

Claude Code: claude mcp add --transport http motionforge https://motionforgeapp.com/api/mcp --header "Authorization: Bearer mf_live_โ€ฆ"

Claude Desktop, Cursor, Windsurf and others (add to the app's MCP config):

{"mcpServers":{"motionforge":{"command":"npx","args":["-y","mcp-remote","https://motionforgeapp.com/api/mcp","--header","Authorization: Bearer mf_live_โ€ฆ"]}}}

Tools: list_models, quote, generate, get_generation, get_balance. Same credits, prices and content rules as the app.

Limits - 60 requests per minute per key, up to 5 active keys. - Running jobs at once follow your plan (Free 1 video/2 images, Starter 2/4, Plus 6/8). - Output URLs are hosted by our providers; download files you want to keep.

Questions? support@motionforgeapp.com