Mizan is an OpenAI-compatible gateway for Algeria. It routes across free tiers, your own keys, and a domestic GPU mesh — meters every token in DZD centimes, enforces data residency per project, and proves it with a tamper-evident audit chain.
Every serious AI tool bills in dollars. Mizan never touches USD — capacity comes from free tiers, customer-owned keys, and Algerian GPUs, and money moves in DZD.
CIB, EDAHABIA, cash top-ups. Wallets meter in integer centimes — a 500 DA top-up buys real API calls, no card required.
Per-project residency: strict routes only to dz-sovereign providers. Requests never leave the country — enforceable, auditable.
University labs, gaming rigs, ex-mining cards. Run one binary, join the mesh, earn 70% of every token served.
Double-entry journal, hash-chained audit log. integrity_ok: true is the artifact you show a bank or a ministry.
Send model: "auto" and the router picks the cheapest healthy route your policy allows — with failover, quota-aware free-tier harvesting, and an optional laya sidecar that reads prompt complexity and steers simple traffic to cheap models. An explicit model choice is a contract: never steered.
| Alias | Behavior | Sovereignty | Price / 1M tok |
|---|---|---|---|
| auto | cheapest-first across allowed providers, failover + cooldowns | policy | from 0 DA |
| sovereign | only sovereignty: dz providers — requests never leave Algeria | dz only | 32–147 DA |
| free | free provider tiers, quota-budgeted so the day's pool lasts the day | egress | 0 DA |
| byok | your own provider keys, governance fee, full metering | policy | fee only |
Every request debits a project wallet in integer centimes, double-entry, hash-chained, replayable. GPU owners see their split accrue per token. Reconcile against bank statements monthly — the journal is the financial system of record.
airgap: true hard-disables all egress. Intelligence flows in as ed25519-signed packages through a one-way valve — anti-rollback, optional expiry. Nothing flows out.strict projects route only to dz providers, while standard projects on the same gateway use the world.Pilot cohorts open in waves. SMEs, developers, GPU owners, and public-sector teams — tell us who you are and we'll onboard you with a DZD wallet and a free-tier allowance.