API reference · Media
Video generation
Generate a short 720p clip from a text prompt.
POST/v1/videos/generations100 for 5s · 180 for 10s · + storage with store: true
Motion One renders 5 or 10 second clips. Video is slow by nature: the request holds until the clip is ready, typically one to five minutes — set your HTTP client timeout accordingly.
The clip returns inline as base64 MP4 and is not retained — or set store: true to persist it to the eroq Store in the same call and receive a durable CDN URL instead, with the Store's rate (2 credits / started 10MB) charged on top.
Request body
promptstringrequired
The scene to render.
modelstring
Only eroq-motion-one today.
durationstring
5s (default) or 10s.
storeboolean
Persist to the eroq Store and answer with a CDN URL. +2 credits per started 10MB. Default false.
curl https://eroq.ai/v1/videos/generations \
-H "Authorization: Bearer $EROQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "eroq-motion-one",
"prompt": "slow dolly through a neon-lit hangar, rain on the windows",
"duration": "5s"
}'/v1/videos/generations
→ POST /v1/videos/generations
Press run — this replays a real exchange from the docs' own data. No key, no request, no charge.
Response
200 · application/json
{
"created": 1756118400,
"model": "eroq-motion-one",
"data": [{ "b64_json": "AAAAIGZ0eXBpc281…", "content_type": "video/mp4" }],
"usage": { "credits_spent": 100, "credits_remaining": 887 }
}