Official Python SDK & Examples for DZRouter — The unified AI API Gateway for Algeria. Access ChatGPT, Claude, and 100+ models paying in Dinar (Edahabia/CIB).
# 🇩🇿 DZRouter Python SDK
**Access 100+ AI Models from Algeria — Pay in Dinar**
**DZRouter** is an **OpenAI-compatible API gateway** built for **Algeria**. Use a single API key to access ChatGPT, Claude, Gemini, and 100+ other models — **pay locally in Algerian Dinar (DZD)** via **Edahabia**, **CIB**, or **BaridiMob**. No VPN, no foreign card, no hassle.
Get Started · Supported Models · Payment Guide
---
## ✨ Why DZRouter?
| Feature | Description |
|---|---|
| 🔁 **One API, 100+ Models** | Switch between ChatGPT, Claude, Gemini, and more by changing a single string |
| 🇩🇿 **Pay in Algerian Dinar** | Edahabia (BaridiMob), CIB card, Chargily Pay — all local payment methods supported |
| 🔌 **OpenAI-Compatible** | Drop-in replacement for the OpenAI SDK — change `base_url` and you're done |
| 🚫 **No VPN Required** | Direct access from Algeria, fully compliant and authorized |
| ⚡ **Low Latency** | Optimized routing to the nearest inference endpoint |
---
## 🚀 Quick Start
### 1. Install the OpenAI Python package
```bash
pip install openai
```
### 2. Point it at DZRouter
```python
from openai import OpenAI
client = OpenAI(
base_url="
api.dzrouter.tech",
api_key="dz-your-api-key-here", # Get yours at
dzrouter.tech
)
response = client.chat.completions.create(
model="openai/gpt-5.3", # Any supported model
messages=[{"role": "user", "content": "Hello from Algeria!"}],
)
print(response.choices[0].message.content)
```
### 3. Switch models instantly
No code changes needed — just swap the model string:
```python
# Use ChatGPT 5.3
response = client.chat.completions.create(model="openai/gpt-5.3", messages=messages)
# Switch to Claude 4.6
response = client.chat.completions.create(model="anthropic/claude-4.6", messages=messages)
# Try Gemini 3.1 Pro
response = client.chat.completions.create(model="google/gemini-3.1-pro", messages=messages)
```
> 💡 **That's it.** Your existing OpenAI code works with DZRouter — just change `base …