# I Built an Open-Source API Gateway for 100+ AI Models at $0.14/M Tokens

> Source: <https://dev.to/agenthub_wu/i-built-an-open-source-api-gateway-for-100-ai-models-at-014m-tokens-3m8m>
> Published: 2026-06-19 12:01:19+00:00

**AgentHub** is a unified, OpenAI-compatible API gateway for **100+ models** (DeepSeek, Qwen, Claude, etc.) at **$0.14/M tokens** — about **99% cheaper than GPT-4**.

Most developers juggle multiple API keys, billing dashboards, and SDK quirks. AgentHub gives you **one key, one endpoint, 100+ models**.

| Provider | Price / M tokens |
|---|---|
| GPT-4o | ~$15.00 |
| Claude 3.5 | ~$15.00 |
| OpenRouter | ~$0.09–0.20 |
AgentHub |
$0.14 (all models) |

Same interface. Switch models by changing one string.

``` python
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_KEY",
    base_url="https://api.agenthub-wu.cn/v1",
)

resp = client.chat.completions.create(
    model="deepseek-chat",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)
```

*Feedback and PRs welcome. Happy to answer questions in the comments.*
