curl https://api.runmoth.si/v1/jobs \
-H "Authorization: Bearer $MOTH_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "minimax-h3-768p",
"prompt": "A lighthouse on a cliff at dusk",
"duration_seconds": 5,
"aspect_ratio": "21: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.0471 per second of video
With MothAt listYou save
Per call$0.376472$0.640000$0.263528
Per day$37.6472$64.0000$26.3528
Over 30 days$1,129.416$1,920.000$790.584
The Moth price is what your balance is charged, settled to the micro-dollar on each call. Over 30 days that is 41% below list.
Your use
Last 30 days
Parameters
What POST /v1/jobs takes for this model
modelstringRequired
minimax-h3-768p
promptstringRequired
Up to 7,000 characters.
duration_secondsinteger
Clip length, one of 5, 10. Billed per second.
aspect_ratiostring
One of 21:9, 16:9, 4:3, 1:1, 3:4, 9:16.
Similar video models
17 video models among 48 from 13 makers, nearest in price firstSee every video model