{"slug": "i-built-an-open-source-api-gateway-for-100-ai-models-at-0-14-m-tokens", "title": "I Built an Open-Source API Gateway for 100+ AI Models at $0.14/M Tokens", "summary": "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.", "body_md": "**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**.\n\nMost developers juggle multiple API keys, billing dashboards, and SDK quirks. AgentHub gives you **one key, one endpoint, 100+ models**.\n\n| Provider | Price / M tokens |\n|---|---|\n| GPT-4o | ~$15.00 |\n| Claude 3.5 | ~$15.00 |\n| OpenRouter | ~$0.09–0.20 |\nAgentHub |\n$0.14 (all models) |\n\nSame interface. Switch models by changing one string.\n\n``` python\nfrom openai import OpenAI\n\nclient = OpenAI(\n    api_key=\"YOUR_KEY\",\n    base_url=\"https://api.agenthub-wu.cn/v1\",\n)\n\nresp = client.chat.completions.create(\n    model=\"deepseek-chat\",\n    messages=[{\"role\": \"user\", \"content\": \"Hello!\"}],\n)\nprint(resp.choices[0].message.content)\n```\n\n*Feedback and PRs welcome. Happy to answer questions in the comments.*", "url": "https://wpnews.pro/news/i-built-an-open-source-api-gateway-for-100-ai-models-at-0-14-m-tokens", "canonical_source": "https://dev.to/agenthub_wu/i-built-an-open-source-api-gateway-for-100-ai-models-at-014m-tokens-3m8m", "published_at": "2026-06-19 12:01:19+00:00", "updated_at": "2026-06-19 12:07:23.671761+00:00", "lang": "en", "topics": ["ai-tools", "ai-infrastructure", "developer-tools", "large-language-models", "generative-ai"], "entities": ["AgentHub", "DeepSeek", "Qwen", "Claude", "GPT-4", "OpenAI", "OpenRouter"], "alternates": {"html": "https://wpnews.pro/news/i-built-an-open-source-api-gateway-for-100-ai-models-at-0-14-m-tokens", "markdown": "https://wpnews.pro/news/i-built-an-open-source-api-gateway-for-100-ai-models-at-0-14-m-tokens.md", "text": "https://wpnews.pro/news/i-built-an-open-source-api-gateway-for-100-ai-models-at-0-14-m-tokens.txt", "jsonld": "https://wpnews.pro/news/i-built-an-open-source-api-gateway-for-100-ai-models-at-0-14-m-tokens.jsonld"}}