00 / DZD-native AI gateway

One API. Every model. Billed in dinars, audited like a ميزان.

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.

0 USD
in the loop
4 fields
telemetry, provably content-free
100%
dz routes for strict projects
Waitlist opens pilot access in waves — Algiers first.
01 / Why it exists

Algeria can't swipe a Visa for GPT. So we built around it.

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.

P·01

Pay in dinars, not dollars

CIB, EDAHABIA, cash top-ups. Wallets meter in integer centimes — a 500 DA top-up buys real API calls, no card required.

P·02

Data that stays home

Per-project residency: strict routes only to dz-sovereign providers. Requests never leave the country — enforceable, auditable.

P·03

Idle GPUs become income

University labs, gaming rigs, ex-mining cards. Run one binary, join the mesh, earn 70% of every token served.

P·04

Trust you can verify

Double-entry journal, hash-chained audit log. integrity_ok: true is the artifact you show a bank or a ministry.


02 / How it routes

Cheapest-first, sovereignty-always, fail-open everywhere.

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.

AliasBehaviorSovereigntyPrice / 1M tok
autocheapest-first across allowed providers, failover + cooldownspolicyfrom 0 DA
sovereignonly sovereignty: dz providers — requests never leave Algeriadz only32–147 DA
freefree provider tiers, quota-budgeted so the day's pool lasts the dayegress0 DA
byokyour own provider keys, governance fee, full meteringpolicyfee only

03 / Money in DZD

A ledger, not a promise.

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.

journal.jsonl — project acmechain ✓
14:02:11topup · CIB ref cash-001+50,000
14:02:38usage · auto → mesh-oran-1 · 1,204+312 tok−3
14:02:38credit · provider:mesh-oran-1 (70%)+2
14:02:38credit · platform:revenue (30%)+1
14:03:02usage · cache hit · 0 cost−0
14:04:57usage · sovereign → ai-grid · 890+410 tok−12
70%
of every mesh token paid to the GPU owner — the DZD flywheel that grows domestic supply.
402
the status a broke wallet gets on paid routes. Free-tier routes keep serving — free tier as acquisition.
0 floats
near money. Integer centimes only, enforced by the ledger's hash chain and a test suite that fails the build otherwise.

04 / Sovereign by design

Built for the audit before the first customer asks.

4-field telemetry
Route, tokens, latency, cost — nothing else can leave a connected gateway. A CI test fails the build if any payload field could ever carry a prompt.
Air-gapped tier
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.
Residency policy
Per project, not per deployment: strict projects route only to dz providers, while standard projects on the same gateway use the world.
Reproducible builds
CI builds the binary twice and compares SHA-256. The artifact your ministry audits is the artifact we shipped.
05 / Waitlist

Get your mg_ key.

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.

No card. No USD. Your email goes to our waitlist table, nowhere else.