{"id":51026556,"url":"https://github.com/gitstq/blue-eagle-ai-gateway","last_synced_at":"2026-06-21T20:02:03.329Z","repository":{"id":365360024,"uuid":"1246510587","full_name":"gitstq/blue-eagle-ai-gateway","owner":"gitstq","description":"蓝鹰AI网关 | 0.09x倍率 · 1:1充值 · 100%原生官方号池 · 一站式接入GPT-4o/Claude-4/Gemini-2.5等顶级大模型","archived":false,"fork":false,"pushed_at":"2026-06-17T01:52:21.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-17T03:24:09.363Z","etag":null,"topics":["ai","ai-gateway","ai-proxy","anthropic","api-gateway","chatgpt","claude-api","deepseek","gemini-api","google-gemini","gpt","gpt-4","llm","openai-api","openai-compatible"],"latest_commit_sha":null,"homepage":"https://ahg.codes","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gitstq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-22T09:06:33.000Z","updated_at":"2026-06-17T01:56:21.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/gitstq/blue-eagle-ai-gateway","commit_stats":null,"previous_names":["gitstq/blue-eagle-ai-gateway"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/gitstq/blue-eagle-ai-gateway","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fblue-eagle-ai-gateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fblue-eagle-ai-gateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fblue-eagle-ai-gateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fblue-eagle-ai-gateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gitstq","download_url":"https://codeload.github.com/gitstq/blue-eagle-ai-gateway/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fblue-eagle-ai-gateway/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34623906,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-21T02:00:05.568Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","ai-gateway","ai-proxy","anthropic","api-gateway","chatgpt","claude-api","deepseek","gemini-api","google-gemini","gpt","gpt-4","llm","openai-api","openai-compatible"],"created_at":"2026-06-21T20:02:02.494Z","updated_at":"2026-06-21T20:02:03.324Z","avatar_url":"https://github.com/gitstq.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# 蓝鹰AI网关 | BlueEagle AI Gateway\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003e全球顶尖大模型统一API网关 · 一站式接入所有主流AI模型\u003c/strong\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/倍率-0.09x-blue?style=for-the-badge\" alt=\"0.09x Multiplier\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/充值-1%3A1-green?style=for-the-badge\" alt=\"1:1 Recharge\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/号池-100%25原生官方-orange?style=for-the-badge\" alt=\"100% Official Pool\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/兼容-OpenAI接口-purple?style=for-the-badge\" alt=\"OpenAI Compatible\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/计费-按量付费-yellow?style=for-the-badge\" alt=\"Pay As You Go\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://ahg.codes\"\u003e🌐 官方网站\u003c/a\u003e ·\n  \u003ca href=\"https://ahg.codes\"\u003e📝 注册试用\u003c/a\u003e ·\n  \u003ca href=\"#-快速开始\"\u003e🚀 快速开始\u003c/a\u003e ·\n  \u003ca href=\"#-竞品对比\"\u003e⚔️ 竞品对比\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n\u003e 💡 **一句话介绍**：充1元 = 1美元官方额度，仅按0.09倍率计费——用GPT-4o、Claude-4、Gemini-2.5等顶级模型，成本不到官方的10%。\n\n---\n\n## 🌟 项目简介 | Introduction\n\n**蓝鹰AI网关（BlueEagle AI Gateway）** 是一个面向开发者和企业的高质量AI大模型API中转服务。通过统一的OpenAI兼容接口，一站式接入OpenAI、Anthropic Claude、Google Gemini等全球顶尖大模型，享受极致性价比。\n\n**BlueEagle AI Gateway** is a high-quality AI model API gateway for developers and enterprises. Access the world's top AI models through a unified OpenAI-compatible API with unbeatable cost efficiency.\n\n### 为什么选择蓝鹰？ | Why BlueEagle?\n\n| 特性 | 蓝鹰AI网关 | 其他中转站 |\n|------|-----------|-----------|\n| 充值比例 | **1:1**（1元=1美元） | 1:5 ~ 1:10 |\n| 消耗倍率 | **0.09x** | 0.5x ~ 1.0x |\n| 号池来源 | **100%原生官方** | 掺假/共享/二手 |\n| 故障切换 | 毫秒级自动切换 | 手动切换/无 |\n| 额度有效期 | **永久有效，不清零** | 30天~90天过期 |\n\n---\n\n## ✨ 核心优势 | Core Advantages\n\n### 💰 极致性价比 — 0.09x 倍率\n\n- **充值比例 1:1**：充1元人民币 = 1美元官方额度，无汇率损耗\n- **消耗倍率 0.09x**：实际消耗仅为官方定价的 **9%**\n- **示例**：GPT-4o官方价格 $5/1M tokens，通过蓝鹰仅需 **$0.45/1M tokens**（约3.2元人民币）\n- **按量计费**：用多少付多少，额度永久有效、**永不清零**\n\n### 🛡️ 100%原生官方号池\n\n- 所有API密钥均来自**官方原生账号**，无掺假、无共享、无二次中转\n- 多账号智能负载均衡，确保高可用性\n- 毫秒级自动故障切换，服务不中断\n\n### 🔌 零代码迁移\n\n- **完全兼容OpenAI接口规范**，只需更换 `base_url`\n- 支持所有主流编程语言和框架\n- 提供Python、Node.js、curl等完整调用示例\n\n### 🎁 免费测试\n\n- 注册即送测试额度，零成本体验所有模型\n- 无需绑定信用卡，开箱即用\n\n---\n\n## 📋 支持模型列表 | Supported Models\n\n| 模型系列 | 模型名称 | 状态 |\n|---------|---------|------|\n| **OpenAI GPT** | GPT-4o, GPT-4o-mini, GPT-4-Turbo, GPT-3.5-Turbo, o1, o1-mini, o3, o3-mini, o4-mini | ✅ 已支持 |\n| **Anthropic Claude** | Claude 4 Opus, Claude 4 Sonnet, Claude 3.5 Sonnet, Claude 3.5 Haiku, Claude 3 Opus | ✅ 已支持 |\n| **Google Gemini** | Gemini 2.5 Pro, Gemini 2.5 Flash, Gemini 2.0 Flash, Gemini 1.5 Pro, Gemini 1.5 Flash | ✅ 已支持 |\n| **Antigravity** | Antigravity 全系列 | ✅ 已支持 |\n| **DeepSeek** | DeepSeek-V3, DeepSeek-R1 | 🔜 即将支持 |\n| **通义千问** | Qwen-Max, Qwen-Plus, Qwen-Turbo | 🔜 即将支持 |\n| **Meta Llama** | Llama 3, Llama 3.1, Llama 3.2 | 🔜 即将支持 |\n\n\u003e 📌 持续更新中，更多模型即将上线，敬请关注！\n\n---\n\n## 🚀 快速开始 | Quick Start\n\n### 1. 获取API密钥\n\n访问 [https://ahg.codes](https://ahg.codes) 注册账号，在控制面板获取你的API Key。注册即送免费测试额度！\n\n### 2. 配置Base URL\n\n```\nhttps://ahg.codes/v1\n```\n\n### 3. 开始调用 | Start Using\n\n#### Python 示例\n\n```python\nfrom openai import OpenAI\n\nclient = OpenAI(\n    api_key=\"your-blueeagle-api-key\",  # 替换为你的蓝鹰API密钥\n    base_url=\"https://ahg.codes/v1\"     # 蓝鹰网关地址\n)\n\nresponse = client.chat.completions.create(\n    model=\"gpt-4o\",\n    messages=[\n        {\"role\": \"system\", \"content\": \"你是一个有帮助的AI助手。\"},\n        {\"role\": \"user\", \"content\": \"请用一句话介绍蓝鹰AI网关的核心优势。\"}\n    ],\n    max_tokens=1024,\n    temperature=0.7\n)\n\nprint(response.choices[0].message.content)\n```\n\n#### cURL 示例\n\n```bash\ncurl https://ahg.codes/v1/chat/completions \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer your-blueeagle-api-key\" \\\n  -d '{\n    \"model\": \"gpt-4o\",\n    \"messages\": [\n      {\"role\": \"system\", \"content\": \"You are a helpful assistant.\"},\n      {\"role\": \"user\", \"content\": \"Hello from BlueEagle AI Gateway!\"}\n    ],\n    \"max_tokens\": 1024\n  }'\n```\n\n#### Node.js 示例\n\n```javascript\nimport OpenAI from 'openai';\n\nconst client = new OpenAI({\n  apiKey: 'your-blueeagle-api-key',\n  baseURL: 'https://ahg.codes/v1'\n});\n\nasync function main() {\n  const response = await client.chat.completions.create({\n    model: 'gpt-4o',\n    messages: [\n      { role: 'system', content: 'You are a helpful assistant.' },\n      { role: 'user', content: 'Hello from BlueEagle AI Gateway!' }\n    ],\n    max_tokens: 1024\n  });\n\n  console.log(response.choices[0].message.content);\n}\n\nmain();\n```\n\n\u003e 💡 **提示**：更多示例代码请查看 [`examples/`](./examples) 目录。\n\n---\n\n## 💰 充值与计费说明 | Pricing \u0026 Billing\n\n### 计费公式\n\n```\n实际费用 = 官方标价 × 0.09x\n充值获得额度 = 充值金额(元) × 1(美元/元)\n```\n\n### 费用示例\n\n| 模型 | 官方价格 | 蓝鹰价格 | 节省比例 |\n|------|---------|---------|---------|\n| GPT-4o | $5.00 / 1M input tokens | **$0.45 / 1M tokens** | **91%** |\n| Claude 4 Opus | $15.00 / 1M input tokens | **$1.35 / 1M tokens** | **91%** |\n| Gemini 2.5 Pro | $1.25 / 1M input tokens | **$0.11 / 1M tokens** | **91%** |\n| GPT-4o-mini | $0.15 / 1M input tokens | **$0.014 / 1M tokens** | **91%** |\n\n### 充值说明\n\n- **最低充值**：低门槛，适合个人开发者\n- **额度有效期**：**永久有效，永不清零**\n- **计费方式**：按量计费，精确到token级别\n- **充值入口**：[https://ahg.codes](https://ahg.codes) 控制面板\n\n---\n\n## ⚔️ 竞品对比 | Competitive Comparison\n\n| 对比维度 | 蓝鹰AI网关 | 中转站A | 中转站B | 官方直连 |\n|---------|-----------|--------|--------|---------|\n| **充值比例** | **1:1** | 1:7 | 1:5 | 1:7.2 |\n| **消耗倍率** | **0.09x** | 0.5x | 1.0x | 1.0x |\n| **综合成本** | **~1.3%** | ~14% | ~20% | 100% |\n| **号池质量** | **100%原生官方** | 混合 | 二手中转 | 官方 |\n| **故障切换** | **毫秒级自动** | 手动 | 无 | 无 |\n| **额度有效期** | **永久** | 90天 | 30天 | 按月 |\n| **免费测试** | **✅ 注册即送** | ❌ | ❌ | ❌ |\n| **OpenAI兼容** | **✅ 完全兼容** | ⚠️ 部分 | ❌ | ✅ |\n\n\u003e 🏆 **结论**：蓝鹰AI网关的综合使用成本仅为官方直连的 **~1.3%**，是当前市场上性价比最高的AI API中转方案。\n\n---\n\n## 🏗️ 技术架构 | Architecture\n\n```\n用户请求 → 蓝鹰AI网关 → 智能负载均衡 → 官方API\n                ↓\n         毫秒级故障检测\n                ↓\n         自动切换备用节点\n```\n\n- **多账号池**：智能分配请求，避免单点过载\n- **健康检查**：实时监控每个API节点的可用性\n- **自动切换**：故障节点毫秒级剔除，无缝切换\n- **请求缓存**：对重复请求进行智能缓存，进一步提升速度\n\n---\n\n## 📞 联系与支持 | Contact \u0026 Support\n\n- 🌐 **官方网站**：[https://ahg.codes](https://ahg.codes)\n- 📧 **商务合作**：通过官网联系\n- 💬 **技术支持**：注册后可在控制面板提交工单\n- 🔔 **最新动态**：关注官网获取模型更新和优惠信息\n\n---\n\n## ⚠️ 免责声明 | Disclaimer\n\n本项目为AI API中转服务的技术介绍与使用说明仓库。所有AI模型的输出内容由各模型提供商（OpenAI、Anthropic、Google等）独立生成，蓝鹰AI网关不对模型输出内容的准确性、完整性或适用性做任何保证。用户需自行评估并承担使用AI生成内容的相关风险。\n\nThis repository provides technical documentation for an AI API gateway service. All AI model outputs are independently generated by their respective providers (OpenAI, Anthropic, Google, etc.). BlueEagle AI Gateway makes no warranties regarding the accuracy, completeness, or suitability of AI-generated content. Users assume full responsibility for evaluating and bearing risks associated with AI-generated content.\n\n---\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003e蓝鹰AI网关 — 让每一次AI调用都物超所值\u003c/strong\u003e\n  \u003cbr\u003e\n  \u003ca href=\"https://ahg.codes\"\u003e立即开始免费试用 →\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003csub\u003eBuilt with ❤️ for developers worldwide\u003c/sub\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitstq%2Fblue-eagle-ai-gateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgitstq%2Fblue-eagle-ai-gateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitstq%2Fblue-eagle-ai-gateway/lists"}