API reference
Video generation
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
| Field | Type | Description |
|---|---|---|
| promptrequired | string | The scene to render. |
| model | string | Only eroq-motion-one today. |
| duration | string | 5s (default) or 10s. |
| store | boolean | Persist to the eroq Store and answer with a CDN URL. +2 credits per started 10MB. Default false. |
Example
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"
}'Response
application/json
{
"created": 1756118400,
"model": "eroq-motion-one",
"data": [{ "b64_json": "AAAAIGZ0eXBpc281…", "content_type": "video/mp4" }],
"usage": { "credits_spent": 100, "credits_remaining": 887 }
}