Billing & credits
ozeye uses prepaid credits. Billable inference checks available balance and key limits before routing.
Top up from dashboard
Open Dashboard → Billing, choose an amount, then complete the provider checkout. This is the easiest and safest flow because it shows payment state, VAT, provider details, and payment history.
Create Mollie checkout by API
Call POST /v1/account/topup with a normal API key or an authenticated dashboard session. The endpoint does not charge a card directly; it creates a Mollie payment and returns a checkout_url for the user to open and complete. The body carries pay_eur (the amount to pay, VAT included), credits_eur (the credits the quote showed; the top-up is refused with price_changed if they differ), country (ISO code of where you live or the business is established) and optionally business with name, address and vat_number. terms_accepted is required; consumers also send immediate_start to confirm the credits may be used right away, which ends the withdrawal right for the part they use. Get the figures first from GET /v1/account/topup/quote?pay=12.10&country=DE (add vat_country for a business VAT number).
curl https://ozeye.ai/v1/account/topup \
-H "Authorization: Bearer $OZEYE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"amount":"10.00","terms_accepted":true,"immediate_start":true}'
Response
{
"payment_id": "payment_uuid",
"provider": "mollie",
"provider_payment_id": "tr_abc123",
"amount_eur": "10.00",
"vat_eur": "2.10",
"total_eur": "12.10",
"checkout_url": "https://www.mollie.com/checkout/...",
"status": "open"
}
Monero invoices
POST /v1/account/topup/monero accepts the same body and returns a one-time XMR address and amount instead of a checkout URL. See Anonymous accounts & Monero for the whole flow.
Limits and payment state
- Minimum top-up is €5 and maximum top-up is €1000, excluding VAT (
amountis the credit amount). total_euris what you pay, including VAT;vat_eurshows the VAT.- Credits never expire.
- An account can have up to 5 pending payments at once.
- Credits are added only after the payment provider confirms settlement through webhook.
- Use
GET /v1/account/paymentsor the dashboard to review payment history. - Consumers can withdraw from a top-up within 14 days by emailing support@ozeye.ai; the unused part is refunded. See the terms.
Billing profile and invoices
A business VAT number is checked against VIES inside the top-up request. If VIES says it is not valid the answer is 409 with vat_number_invalid, if VIES cannot answer 409 with vat_check_unavailable; nothing is created, and the request can be sent again with pay_as_consumer: true to pay with VAT. The details of the last top-up are kept and returned by GET /v1/account/billing-profile.
{
"customer_type": "business",
"billing_country": "DE",
"business_name": "Example GmbH",
"business_address": "Musterstrasse 1, 10115 Berlin",
"vat_number": "DE123456789"
}
Every settled top-up gets an invoice: GET /v1/account/invoices lists them, GET /v1/account/invoices/{id} returns one, and GET /v1/account/invoices/{id}/pdf downloads the PDF.
Credit lifecycle
- Create a payment or Monero invoice.
- Open the checkout URL or pay the XMR invoice.
- Payment provider confirms the payment.
- Credits are added to your ozeye balance.
- Billable inference checks balance and key limits before routing.
- Usage is deducted after successful non-streaming responses, or reserved/finalized/refunded for streaming.