Use motionfield from code.
The same models, prices and credits as the studio, over HTTP or from your AI assistant.
API
Base URL https://motionfield.smynt.nl. Requests and responses are JSON.
This server runs without accounts, so it issues no keys. Use mf_demo to try every endpoint: takes come back as sample footage after a few seconds and no credits move. Put [fail] in a prompt to see a failed take.
- Create a keyIn Settings, API keys. It is shown once, so store it as a secret.
- Start a generationmodel takes any id from the Models page, or auto. The credit cost is worked out on our side from the live price list and held until the take finishes.
- Poll until it is doneEvery few seconds, until the status is done, failed or canceled. Outputs are URLs. A failed or canceled take returns its credits.
Start a generation
curl https://motionfield.smynt.nl/api/v1/generations \
-H "Authorization: Bearer mf_demo" \
-H "Content-Type: application/json" \
-d '{
"mode": "video",
"model": "auto",
"prompt": "A lighthouse in a storm at night, slow push-in",
"params": { "aspect": "16:9", "duration": 8 }
}'Example response
HTTP/1.1 202 Accepted
{
"model": "veo-3.1-fast",
"generations": [
{ "id": "…", "status": "queued", "credits": 186, "eta_seconds": 9 }
]
}Check a generation
curl https://motionfield.smynt.nl/api/v1/generations/$ID \
-H "Authorization: Bearer mf_demo"Example response, once done
{
"id": "…",
"status": "done",
"mode": "video",
"model": "veo-3.1-fast",
"prompt": "A lighthouse in a storm at night, slow push-in",
"credits": 186,
"outputs": [
{ "kind": "video", "url": "https://…", "poster": "https://…", "width": 1280, "height": 720, "duration": 8 }
],
"created_at": "2026-11-27T09:00:00.000Z",
"finished_at": "2026-11-27T09:00:41.000Z"
}Endpoints
Send your key as a Bearer token on every request except the public model list. These endpoints take no cookies, so they answer calls from any origin.
| Method | Path | Auth | What it does |
|---|---|---|---|
| POST | API key | Start a generation. Answers 202 with one id per take and the credits reserved for each. | |
| GET | API key | Status (queued, generating, done, failed, canceled) and, once done, the URLs of the outputs. | |
| POST | API key | Stop a queued or running generation and return its credits. 409 once it has finished. | |
| POST | API key | The credit cost of a request, with the same body as a generation. Nothing runs or is charged. | |
| GET | None | Every model and tool with its id, capabilities and credit price. | |
| POST | API key | The MCP server: JSON-RPC 2.0 over Streamable HTTP, no sessions. |
Request body
For a generation and for a quote.
- modestring
- Required. image, video, audio or edit.
- promptstring
- What to make, up to 4,000 characters. For a voiceover, the line to speak.
- modelstring
- A model id from /api/models. Leave it out, or pass auto, to let us pick.
- paramsobject
- Settings such as aspect, duration, resolution, audio, camera and seed.
- inputsarray
- Up to 8 references by URL: { role, kind, url }.
- batchnumber
- 1, 2 or 4 takes. Each take is charged on its own.
Errors
Every error is JSON with a sentence in error that says what to change.
- 400
- The body is not JSON, a field is invalid, or the model cannot run this mode. The message names the field.
- 401
- The API key is missing, malformed or revoked.
- 402
- Not enough credits. The body adds needed and available.
- 404
- No generation with this id for your key, or no such endpoint.
- 405
- The endpoint exists but not for this method. The Allow header lists the right one.
- 409
- Cancel on a generation that has already finished. The body adds its final state.
- 502 / 503
- The model provider refused the job. Nothing was reserved.
MCP server
Use motionfield from Claude, ChatGPT or any client that speaks the Model Context Protocol. Point the client at the endpoint and pass your API key. It spends your credits, so it quotes first.
MCP client configuration
{
"mcpServers": {
"motionfield": {
"type": "http",
"url": "https://motionfield.smynt.nl/api/mcp",
"headers": { "Authorization": "Bearer mf_demo" }
}
}
}list_models
The models, optionally of one kind, with their strengths and credit prices.
quote
The credit cost of a generation. Nothing runs and nothing is charged.
generate
Start a generation. Reserves credits and returns its ids.
get_generation
Status and output URLs of a generation.
The server answers initialize, ping, tools/list and tools/call. A tool that fails returns its reason as a result with isError set, so the assistant can read it.
Plugins and extension
Send a frame or a clip to motionfield and get the result back on your timeline. None of these are available yet.
After Effects
In developmentDaVinci Resolve
In developmentPremiere
In developmentFigma
In development- In development
Chrome extension
Save any image or video on the web as a reference, straight into your Library.
- In development
Publishing
Direct to TikTok, Instagram and Meta Ads.
Every model id, with its price.
The Models page lists each id you can pass to the API and what one take costs.
Browse models