cd /news/ai-tools/i-built-an-open-source-api-gateway-f… · home topics ai-tools article
[ARTICLE · art-33870] src=dev.to ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

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

AgentHub has launched an open-source API gateway that provides unified access to over 100 AI models, including DeepSeek, Qwen, and Claude, at a flat rate of $0.14 per million tokens. This pricing is approximately 99% cheaper than GPT-4, and the gateway is compatible with the OpenAI SDK, allowing developers to switch models by changing a single string.

read1 min views1 publishedJun 19, 2026

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.

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.

── more in #ai-tools 4 stories · sorted by recency
── more on @agenthub 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/i-built-an-open-sour…] indexed:0 read:1min 2026-06-19 ·