Pricing, balance and billing
The price up front, before anything runs, and you're only charged for what completes.
How billing works
- When you submit, the request is priced from your actual parameters and that amount is reserved from your balance.
- If the request completes, the reservation becomes a charge and shows up in your statement as
deduct. - If it fails or times out, the reservation is released. The error message ends with "Nada foi cobrado." (nothing was charged).
Your balance is prepaid, in your account's currency: US dollars, or Brazilian reais for accounts in Brazil. Top it up by card on the site, where you can also turn on auto top-up. The price returned when you submit is exactly what you'll be charged.
Get the price before generating
POST https://api.wizzyflow.ai/api/v3/model/price prices a request with your real parameters, without generating anything. Parameters such as duration, resolution and quantity change the price.
curl https://api.wizzyflow.ai/api/v3/model/price \
-H "Authorization: Bearer $WIZZYFLOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model_id": "wizzyflow/flux-schnell",
"inputs": { "prompt": "A lighthouse at sunset" }
}'The response includes price and currency (your account's currency), plus quote_id and expires_at: a submission with the same parameters before that time uses this same price.
LLMs are priced per token, for input and output. Each one's rates are on the LLMs page and in the model's reference.
Balance
GET https://api.wizzyflow.ai/api/v3/balance returns your available balance and the amount reserved by requests in progress.
| Field | What it is |
|---|---|
balance | Balance available for new requests. |
reserved | Amount reserved by requests that haven't finished yet. |
currency | Your account's currency: USD or BRL. |
environment | live or test, depending on the key used. |
topup_url | The page on the site where you top up. |
If your balance doesn't cover the price of a request, it's rejected with 402.
Top up through the API (BRL accounts)
For accounts billed in Brazilian reais, POST https://api.wizzyflow.ai/api/v3/topups opens a Pix payment (Brazil's instant payment system) for the amount in reais and returns its copy-and-paste code. The balance is credited as soon as the payment is made in the banking app. The call only creates the charge: nothing is paid until someone pays it. The Pix expires after one hour, and the page at pay_url shows its QR code. Accounts in US dollars top up by card on the site; the endpoint returns 400 for them. Test keys can't top up, since the test balance resets every day.
curl https://api.wizzyflow.ai/api/v3/topups \
-H "Authorization: Bearer $WIZZYFLOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "amount": 50 }'Statement
POST https://api.wizzyflow.ai/api/v3/billings/search lists your top-ups, charges and refunds. All filters are optional.
| Field | What it does |
|---|---|
page, page_size | Page number and page size (up to 100). |
billing_type | topup, deduct (charge), refund or adjustment. |
start_time, end_time | Only entries between these dates. |
access_key_uuid | Only entries for one key. |
Each item includes billing_type, price (always positive, in your account's currency), currency, created_at and description. Reservations for requests in progress don't appear in the statement.