How OpenDunes billing works — 1:1 DA deposits and per-surface costs, all in Algerian Dinars.
OpenDunes billing is prepaid and denominated entirely in Algerian Dinars (DA). No subscription, no foreign card, no USD conversion on your end.
402 insufficient_credits until you top up.Deposits go through SATIM — Algeria's national interbank payment network. Two card types are accepted:
Go to Dashboard → Billing to initiate a deposit. There is no minimum deposit amount. Your balance is credited at face value — what you deposit is what you can spend.
Every model's DA price is published in the catalog, per surface unit. That published price is the final price — there are no per-request fees, no deposit fees, and no currency conversion on your end. Deposits are credited 1:1 and usage is billed at the catalog DA price. Nothing else is added.
Internally, all balances and costs are tracked as bigint micro-DA (one-millionth of a Dinar). Money is never represented as a float, so fractions of a Dinar are exact and there are no rounding surprises on your balance. Per-request costs are computed in micro-DA and rounded up to the smallest unit, with a floor of one micro-DA per billable request.
Each model surface is billed in its own unit. The catalog reports the DA price in that unit, and your usage is metered the same way.
| Surface | Billed per | Catalog unit |
|---|---|---|
| Text / chat | input + output tokens | DA / million tokens |
| Embeddings | input tokens | DA / million tokens |
| Image generation | image | DA / image |
| Text-to-speech | character of input | DA / million characters |
| Speech-to-text | second of audio | DA / second |
| Video generation | second of video | DA / second |
| Rerank | search unit | DA / unit (may read "—" when the provider exposes no price) |
Rates are DA per million tokens. Example: a model priced at 12.40 DA/M input and 49.60 DA/M output. A request with 500 input and 200 output tokens:
500 / 1,000,000 × 12.40 DA = 0.0062 DA200 / 1,000,000 × 49.60 DA = 0.00992 DAImage, speech, transcription, video, and rerank are billed by quantity:
For example, an image model at 6.00 DA/image generating n: 2 costs 12.00 DA; a transcription model at 0.04 DA/second on a 30-second clip costs 1.20 DA (audio seconds are rounded up). Video generation reserves the cost of the requested duration up front and settles on completion — a failed or timed-out job releases the full hold and charges nothing.
Your balance is returned on every API response in the X-Balance-Available response header, expressed in micro-DA:
You can also view your balance, transaction history, and per-model usage breakdown in Dashboard → Billing.
All billing metadata (token counts, model slug, timestamps, costs) is retained for audit purposes under Algeria Law 18-07. Request and response content is passed through a PII redaction pipeline before any logging — personal data is not stored in billing records.