Balance and billing
API keys in the same organisation use one prepaid USD balance. Unused funds carry over.
Balance calculation
balance = every top-up credited to your balance - everything spent
VAT and the payment processing fee are paid on top of a top-up and are never credited to the balance.
The console shows the organisation's balance on every page. This month on the Keys tab shows spend for the current month.
Get the balance
GET /v1/balance returns the organisation's remaining USD balance. Running generations are reflected after settlement. Some models also check funds held for concurrent work. For example, ClarityAI can refuse a submit if pending upscales have already reserved the available funds.
curl https://api.sociaro.com/v1/balance -H "Authorization: Bearer $SOCIARO_API_KEY"
# Requires Python 3 and requests (pip install requests).
import os
import requests
response = requests.get(
'https://api.sociaro.com/v1/balance',
headers={
'Authorization': 'Bearer ' + os.environ['SOCIARO_API_KEY'],
},
timeout=120,
)
response.raise_for_status()
print(response.text)// Run as an .mjs file with Node.js 22 or later.
const response = await fetch("https://api.sociaro.com/v1/balance", {
headers: {
"Authorization": "Bearer " + process.env.SOCIARO_API_KEY,
},
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log(await response.text());Example response:
{"remaining": 312.58}
| HTTP status | Meaning |
|---|---|
401 |
Missing or invalid API key. |
404 |
No organisation associated with the key. |
409 |
No organisation spending limit configured. Contact your account manager. |
429 |
Balance exhausted or request rate exceeded. Read error.message. An exhausted balance returns no remaining field. |
502, 503 |
Balance check temporarily unavailable. Retry later. |
Top-ups
- Card. Open Billing in the console and complete the payment with Stripe.
- Automatic top-up. Set the balance threshold, payment amount and daily maximum. If the card requires customer action, automatic top-up is disabled and the organisation receives an email.
- Bank transfer. Arrange payment with your account manager. Credited transfers appear under Billing → Payments. The owner receives an email.
VAT and invoices. VAT is added to a top-up made in the console where it applies, on top of the amount you choose, and your balance gets the amount you chose. A company can enter its VAT number on the payment page; a company that enters its EU VAT number there is not charged VAT where the reverse charge applies, and the invoice says reverse charge. A top-up made in the console after invoices were introduced, single or automatic, has an invoice: open it from the Invoice link next to it in the payments list under Payments on the Billing tab. It is also e-mailed to you. Earlier payments have no link.
Payment processing fee. A payment processing fee of 2.9% + $0.30 is added to each top-up made in the console. It covers the third-party provider that handles payment processing, tax calculation and invoicing. The Billing tab shows it before you pay and the invoice lists it on its own line. It is never added to your balance.
Insufficient balance
Below $10, a low-balance banner appears in the console. Before the first top-up, the Keys and Users tabs display a top-up notice. An exhausted balance blocks spending requests. A refused request incurs no charge.
Example balance error:
{"error": {"message": "budget exceeded for this organisation: its spend has reached the balance it was topped up to. Top up in the console to continue."}}
Billing units
Use the model catalogue for public list rates. For Jobs API models, GET /v2/models returns the rates applicable to your organisation. Billing units depend on the model and can include tokens, images, seconds, megapixels or requests. Some rates depend on measured inputs or delivered output.
cost_usd on a finished job is the settled charge. A job whose price cannot be determined is withheld. Model-specific billing rules are on the model page. For example, Ideogram models can charge for generated images subsequently withheld by safety checks.
A promotion can change the applicable rate or grant free generations per period. A free generation settles with cost_usd: 0. The estimate reports any remaining free generations. A job retains the promotion in effect at submission.
Estimate a job
POST /v2/jobs/estimate accepts the same model and input as a job. It returns estimated_cost_usd and estimate_kind. An estimate creates no job, incurs no charge and reserves no funds. It is available with an exhausted balance. See estimate kinds and response fields.
Usage and exports
Spend breaks down usage by key and day. Logs lists model, duration and charge for individual requests. CSV exports support up to 10,000 requests per key for the selected period. Select a shorter period for larger exports.