全球大模型,一个API搞定 | One API for All AI Models
9%的价格,100%的官方品质 — Official Quality at 9% of the Cost
蓝鹰AI网关(BlueEagle AI Gateway) 是一个全球顶尖大模型统一API网关,提供一站式接入所有主流AI模型的能力。
BlueEagle AI Gateway is a unified API gateway for the world's leading AI models, providing one-stop access to all mainstream AI models.
| 特性 | 蓝鹰AI网关 | 其他中转站 |
|---|---|---|
| 💰 消耗倍率 | 0.09x(仅9%) | 0.3x ~ 1.0x |
| 💵 充值比例 | 1:1(1元=1美元) | 1:5 ~ 1:10 |
| 🏭 号池质量 | 100%原生官方号池 | 共享/掺假/二次中转 |
| 🔄 负载均衡 | 多账号智能切换 | 单点故障 |
| ⚡ 故障切换 | 毫秒级自动切换 | 手动/无切换 |
| 🔌 接口兼容 | 完全兼容OpenAI规范 | 部分兼容 |
| ⏰ 额度有效期 | 永久有效,不清零 | 30天~90天 |
| 🎁 免费测试 | 注册即送测试额度 | 需付费 |
仅需官方定价的 9% 即可调用全球顶尖大模型。充1元人民币 = 1美元官方额度,按量计费,用多少付多少,额度永久有效。
Only 9% of official pricing. Top up 1 CNY = 1 USD official credit. Pay-as-you-go, credits never expire.
所有模型均来自官方原生账号,无掺假、无共享、无二次中转,确保输出质量和速度与官方完全一致。
All models are served from 100% native official accounts — no mixing, no sharing, no secondary proxying. Output quality identical to official.
多账号智能调度,自动分配最优节点;毫秒级故障检测与切换,确保服务 99.9% 可用性。
Multi-account intelligent scheduling with automatic optimal node allocation. Millisecond-level fault detection and failover ensuring 99.9% uptime.
完全兼容 OpenAI API 接口规范,只需修改 base_url,无需修改任何代码即可从官方或其他中转站无缝迁移。
Fully compatible with OpenAI API specification. Simply change base_url — zero code changes needed for seamless migration.
注册即送测试额度,零成本体验所有支持模型的完整能力。
Free test credits upon registration. Zero-cost experience of all supported models.
| 模型厂商 | 模型系列 | 状态 |
|---|---|---|
| OpenAI | GPT-4o, GPT-4o-mini, GPT-4-Turbo, GPT-4, GPT-3.5-Turbo, o1, o1-mini, o3-mini, DALL·E 3, Whisper, TTS | ✅ 已支持 |
| Anthropic | Claude 4 Opus, Claude 4 Sonnet, Claude 3.5 Sonnet, Claude 3.5 Haiku, Claude 3 Opus, Claude 3 Sonnet, Claude 3 Haiku | ✅ 已支持 |
| Gemini 2.5 Pro, Gemini 2.5 Flash, Gemini 2.0 Flash, Gemini 1.5 Pro, Gemini 1.5 Flash | ✅ 已支持 | |
| Antigravity | Antigravity 系列 | ✅ 已支持 |
| DeepSeek | DeepSeek-V3, DeepSeek-R1 | 🔜 即将支持 |
| 通义千问 | Qwen-Max, Qwen-Plus, Qwen-Turbo | 🔜 即将支持 |
| Meta Llama | Llama 3, Llama 3.1 | 🔜 即将支持 |
📌 持续更新中,更多模型即将上线!访问 https://ahg.codes 查看最新模型列表。
- 前往 https://ahg.codes 注册账号
- 获取你的 API Key(注册即送免费测试额度)
curl https://ahg.codes/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "gpt-4o",
"messages": [
{"role": "user", "content": "Hello, BlueEagle!"}
],
"temperature": 0.7
}'from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://ahg.codes/v1"
)
response = client.chat.completions.create(
model="gpt-4o",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello, BlueEagle!"}
],
temperature=0.7
)
print(response.choices[0].message.content)import OpenAI from 'openai';
const client = new OpenAI({
apiKey: 'YOUR_API_KEY',
baseURL: 'https://ahg.codes/v1'
});
const response = await client.chat.completions.create({
model: 'gpt-4o',
messages: [
{ role: 'system', content: 'You are a helpful assistant.' },
{ role: 'user', content: 'Hello, BlueEagle!' }
],
temperature: 0.7
});
console.log(response.choices[0].message.content);from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://ahg.codes/v1"
)
stream = client.chat.completions.create(
model="claude-3-5-sonnet-20241022",
messages=[
{"role": "user", "content": "用中文写一首关于蓝鹰的诗"}
],
stream=True
)
for chunk in stream:
if chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)💡 提示:只需将你现有的 OpenAI SDK 中的
base_url替换为https://ahg.codes/v1,api_key替换为蓝鹰的 API Key,即可零代码迁移!
实际费用 = 官方Token消耗量 × 0.09 × 单价
以 GPT-4o 为例(官方定价:$5/百万输入Token,$15/百万输出Token):
| 操作 | 官方费用 | 蓝鹰费用 | 节省 |
|---|---|---|---|
| 100万输入Token | $5.00 | $0.45 | 91% |
| 100万输出Token | $15.00 | $1.35 | 91% |
| 充值100元人民币 | — | 获得 $100 官方额度 | — |
访问 https://ahg.codes 查看支持的充值方式。
- 💳 支持多种支付方式
- 💰 1元人民币 = 1美元官方额度
- ⏰ 额度永久有效,不清零
- 📊 按量计费,用多少付多少
| 对比项 | 蓝鹰AI网关 | OpenAI官方 | 某中转站A | 某中转站B |
|---|---|---|---|---|
| GPT-4o 百万Token价格 | $0.45 | $5.00 | $2.50 | $1.50 |
| 充值比例 | 1:1 | — | 1:7 | 1:5 |
| 号池质量 | 100%官方原生 | 官方 | 混合 | 共享 |
| 支持模型数 | 30+ | 20+ | 15+ | 10+ |
| 负载均衡 | ✅ 智能多账号 | — | ❌ | ❌ |
| 故障切换 | ✅ 毫秒级 | — | ❌ | 手动 |
| 额度有效期 | 永久 | — | 30天 | 90天 |
| 免费测试 | ✅ | ❌ | ❌ | ❌ |
BlueEagle-AI-Gateway/
├── README.md # 项目说明文档
├── LICENSE # MIT 开源协议
├── examples/
│ ├── python_example.py # Python 调用示例
│ ├── nodejs_example.js # Node.js 调用示例
│ └── curl_example.sh # curl 调用示例
└── docs/
└── MIGRATION_GUIDE.md # 迁移指南
- 🌐 官方网站:https://ahg.codes
- 📧 邮箱:通过官网联系
- 💬 技术支持:注册后通过官网获取技术支持
本项目为蓝鹰AI网关的介绍与使用说明仓库。蓝鹰AI网关仅提供API中转服务,用户需自行确保其使用行为符合当地法律法规及AI模型提供商的服务条款。使用本服务所产生的任何后果由用户自行承担。
This repository serves as an introduction and usage guide for BlueEagle AI Gateway. BlueEagle AI Gateway only provides API relay services. Users are responsible for ensuring their usage complies with local laws, regulations, and the terms of service of AI model providers. Users bear full responsibility for any consequences arising from the use of this service.
⭐ 如果这个项目对你有帮助,请给一个 Star!⭐
If you find this project helpful, please give it a Star! ⭐
Made with ❤️ by BlueEagle AI Gateway