curl https://api.runmoth.si/v1/images \
-H "Authorization: Bearer $MOTH_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "flux-2-pro",
"prompt": "A lighthouse on a cliff at dusk",
"aspect_ratio": "1:1"
}'
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.0295 per image
With MothAt listYou save
Per call$0.029412$0.030000$0.000588
Per day$2.9412$3.0000$0.0588
Over 30 days$88.236$90.000$1.764
The Moth price is what your balance is charged, settled to the micro-dollar on each call. Over 30 days that is 1% below list.