Reference
Pricing
The API is billed at the model's list price in credits, with no subscription discounts or unlimited mode.
How billing works
- 1 credit is $0.002. Check each model's price with credit_cost, price_rules, and price_addons from GET /models.
- For models with a per-character rate (per_prompt_character), the cost is characters × the per-character rate, and the minimum charge is the matching rule's price (credit_cost if there are no rules). Characters are the Unicode code points in the prompt, and emoji and symbols that aren't read aloud count too. See the models docs for details.
- The per-second price (per_second) is calculated from the length of the video you put in input (seconds, rounded up), not the output length. The reference video price (per_reference_video_second) is calculated from the reference video length. See the models docs for details.
- You can use subscription, top-up, and promotional credits.
- Credits are deducted when a generation request is received, and the deducted amount is returned in the response's credit_cost.
- Rejected requests aren't charged. Credits for failed or canceled jobs are refunded automatically, and is_refunded becomes true.
- If you don't have enough credits, you'll get a 402 insufficient_credits. Subscribe or top up.
Credits remaining
curl https://openapi.aistudio.dropshot.io/v1/balance \
-H "Authorization: Bearer $DROPSHOT_API_KEY"
# { "credit_balance": 12090.47 }credit_balance and credit_cost can be decimals.