curl https://api.runmoth.si/v1/images \
-H "Authorization: Bearer $MOTH_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "flux-3-klein",
"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.00942 per image
With MothAt listYou save
Per call$0.009412––
Per day$0.9412––
Over 30 days$28.236––
The Moth price is what your balance is charged, settled to the micro-dollar on each call. This model sells above its maker's list price, so no saving is shown.
Your use
Last 30 days
Parameters
What POST /v1/images takes for this model
modelstringRequired
flux-3-klein
promptstringRequired
Up to 5,000 characters.
ninteger
Images per call, 1 to 4. Each is billed.
aspect_ratiostring
One of 1:1, 4:3, 3:4, 3:2, 2:3, 16:9, 9:16, 21:9, 9:21.