A prompt to start fromA slow pan across a rainy neon street at night
The Playground opens on Grok Imagine Video with that prompt in the box. A run there is paid from your balance and shows the result with its exact charge.
curl https://api.runmoth.si/v1/jobs \
-H "Authorization: Bearer $MOTH_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-imagine-video",
"prompt": "A lighthouse on a cliff at dusk",
"duration_seconds": 6,
"aspect_ratio": "16:9"
}'
# Then poll the job until it succeeds, and fetch its output
curl https://api.runmoth.si/v1/jobs/$JOB_ID -H "Authorization: Bearer $MOTH_API_KEY"
curl https://api.runmoth.si/v1/jobs/$JOB_ID/output/0 -H "Authorization: Bearer $MOTH_API_KEY" -o out
Image calls answer at once, and video and music calls return a job to poll. Keys start with moth_, and every reply reports its charge in the moth-charged-micros header.
What a workload costs
At $0.035 per second of video
With MothAt listYou save
Per call$0.28$0.56$0.28
Per day$28.00$56.00$28.00
Over 30 days$840.00$1,680.00$840.00
The Moth price is what your balance is charged, settled to the micro-dollar on each call. Over 30 days that is 50% below list.
Your use
Last 30 days
Parameters
What POST /v1/jobs takes for this model
modelstringRequired
grok-imagine-video
promptstringRequired
Up to 5,000 characters.
duration_secondsinteger
Clip length, one of 6, 10. Billed per second.
aspect_ratiostring
One of 16:9, 9:16, 1:1, 3:2, 2:3.
Similar video models
17 video models among 48 from 13 makers, nearest in price firstSee every video model