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 β¦