Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

🦅 蓝鹰AI网关 | BlueEagle AI Gateway

一站式接入全球顶尖大模型 · 成本仅需官方9%

One Gateway to All Leading AI Models at 9% Cost

0.09x Ultra-Low Rate 1:1 Recharge 100% Native Pool OpenAI Compatible Free Trial

🦅 充1元得1美元官方额度,消耗仅为官方定价的9% 🦅 Pay ¥1 CNY → Get $1 USD Official Credit, Consume at Only 9% of Official Pricing

🌐 官方网站 Official Website · 📝 快速开始 Quick Start · 💰 充值说明 Pricing


📖 项目简介 | About

蓝鹰AI网关是一个面向开发者和企业的全球顶尖大模型统一API网关。通过一个API密钥,即可无缝接入OpenAI、Anthropic Claude、Google Gemini等主流大模型,享受极致性价比的AI调用体验。

BlueEagle AI Gateway is a unified API gateway for developers and enterprises to access the world's leading LLMs. With a single API key, seamlessly connect to OpenAI, Anthropic Claude, Google Gemini and more — all at ultra-low cost.

为什么选择蓝鹰? | Why BlueEagle?

特性 Feature 蓝鹰AI网关 BlueEagle 官方直连 Official 其他中转 Others
💰 消耗倍率 Rate 0.09x 1.0x 0.3x ~ 1.5x
💳 充值比例 Recharge 1:1 (¥1=$1) 1:7+ 1:3 ~ 1:10
🔑 号池质量 Pool 100%原生官方 100%官方 掺假/共享
🔄 故障切换 Failover 毫秒级自动 ❌/手动
📡 接口兼容 Compatible OpenAI规范 各自规范 部分兼容
⏰ 额度有效期 Validity 永久有效 按月 不定
🧪 免费测试 Free Trial ✅ 注册即送 ✅ 有限

✨ 核心优势 | Key Advantages

💰 极致性价比 | Ultra Cost-Effective

  • 消耗倍率仅0.09x — 同样的模型调用,成本仅为官方定价的9%
  • 充值比例1:1 — 充1元人民币 = 1美元官方额度,无汇率损耗
  • 按量计费 — 用多少付多少,额度永久有效、不清零
  • Rate: 0.09x — Same model, only 9% of official pricing
  • Recharge 1:1 — ¥1 CNY = $1 USD credit, zero exchange loss
  • Pay-as-you-go — Only pay for what you use, credits never expire

🔑 100%原生官方号池 | 100% Native Official Pool

  • 所有模型均通过原生官方账号池提供,无掺假、无共享、无二次中转
  • 确保每次调用都能获得最高质量的模型响应
  • All models served through native official account pools — no mixing, no sharing, no re-proxying
  • Guaranteed highest quality model responses on every call

🔄 智能高可用 | Intelligent High Availability

  • 多账号智能负载均衡 — 自动分配最优节点,保障调用稳定性
  • 毫秒级自动故障切换 — 某节点异常时瞬间切换,用户无感知
  • Multi-account load balancing — Auto-distribute to optimal nodes
  • Millisecond-level failover — Instant switching on node failure, zero user impact

🔌 零代码迁移 | Zero-Code Migration

  • 完全兼容OpenAI接口规范 — 只需更改 base_url,无需修改任何业务代码
  • 支持Python、Node.js、curl等所有主流调用方式
  • Fully OpenAI API compatible — Just change base_url, no code changes needed
  • Supports Python, Node.js, curl and all mainstream calling methods

📋 支持模型列表 | Supported Models

🟢 已上线 | Available Now

模型系列 Model Series 支持模型 Supported Models 倍率 Rate
OpenAI GPT GPT-4o, GPT-4o-mini, GPT-4-Turbo, GPT-4, GPT-3.5-Turbo, o1, o1-mini, o1-pro, o3, o3-mini, o4-mini 0.09x
Anthropic Claude Claude 4 Opus, Claude 4 Sonnet, Claude 3.5 Sonnet, Claude 3.5 Haiku, Claude 3 Opus, Claude 3 Sonnet 0.09x
Google Gemini Gemini 2.5 Pro, Gemini 2.5 Flash, Gemini 2.0 Flash, Gemini 1.5 Pro, Gemini 1.5 Flash 0.09x
Antigravity Antigravity 全系列 0.09x

🟡 即将上线 | Coming Soon

模型系列 Model Series 预计上线 ETA
DeepSeek 即将支持 Coming Soon
通义千问 Qwen 即将支持 Coming Soon
Llama 3 即将支持 Coming Soon

💡 持续更新中,欢迎关注!| Continuously updating, stay tuned!


🚀 快速开始 | Quick Start

第一步:获取API密钥 | Step 1: Get Your API Key

前往 https://ahg.codes 注册账号,即可获得专属API密钥,注册即送免费测试额度

Sign up at https://ahg.codes to get your API key. Free trial credits included!

第二步:调用模型 | Step 2: Make API Calls

只需将 base_url 替换为 https://ahg.codes/v1,其余参数与OpenAI官方完全一致。

Just replace base_url with https://ahg.codes/v1, everything else stays the same as OpenAI.

🐍 Python 示例

from openai import OpenAI

client = OpenAI(
    api_key="your-blueeagle-api-key",  # 替换为你的蓝鹰API密钥
    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! Tell me about BlueEagle AI Gateway."}
    ],
    stream=True
)

for chunk in response:
    if chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="")

🔗 cURL 示例

curl https://ahg.codes/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer your-blueeagle-api-key" \
  -d '{
    "model": "gpt-4o",
    "messages": [
      {"role": "system", "content": "You are a helpful assistant."},
      {"role": "user", "content": "Hello from BlueEagle!"}
    ],
    "stream": true
  }'

🟢 Node.js 示例

import OpenAI from 'openai';

const client = new OpenAI({
  apiKey: 'your-blueeagle-api-key',
  baseURL: 'https://ahg.codes/v1'
});

async function main() {
  const stream = await client.chat.completions.create({
    model: 'claude-4-sonnet',
    messages: [
      { role: 'system', content: 'You are a helpful assistant.' },
      { role: 'user', content: '你好,介绍一下蓝鹰AI网关。' }
    ],
    stream: true
  });

  for await (const chunk of stream) {
    process.stdout.write(chunk.choices[0]?.delta?.content || '');
  }
}

main();

📁 更多示例代码请查看 examples/ 目录 📁 More examples available in the examples/ directory


💰 充值与计费说明 | Pricing & Billing

计费方式 | Billing Method

项目 Item 说明 Details
充值比例 1元人民币 = 1美元官方额度 (¥1 CNY = $1 USD)
消耗倍率 0.09x(官方定价的9%)
计费单位 按Token计费,与官方一致
额度有效期 永久有效,不清零
最低充值 无最低限制
支付方式 支持多种支付方式

💡 费用对比示例 | Cost Comparison Example

以调用 GPT-4o 处理 100万Token 为例(基于官方定价 $5/1M input tokens):

平台 Platform 费用 Cost 节省 Savings
OpenAI 官方 Official $5.00 USD (≈¥36)
蓝鹰AI网关 BlueEagle $0.45 USD (≈¥0.45) 节省99%

🎯 在蓝鹰,花不到5毛钱人民币就能完成原本需要36元的API调用! 🎯 With BlueEagle, complete a ¥36 API call for less than ¥0.5 CNY!


⚔️ 竞品对比 | Competitive Comparison

对比维度 Dimension 蓝鹰AI网关 BlueEagle OpenRouter API2D OneAPI
充值比例 1:1 1:7+ 1:5 自建
消耗倍率 0.09x 0.7x~1.5x 0.5x~1.0x 取决于源
号池质量 100%原生官方 官方+社区 混合 自建
故障切换 毫秒级自动 有限 需配置
接口兼容 OpenAI规范 自有规范 OpenAI OpenAI
免费测试 ✅ 注册即送 ✅ 有限
额度有效期 永久 按月 不定 不定

🏗️ 架构说明 | Architecture

┌─────────────┐     ┌──────────────────────┐     ┌─────────────────┐
│   Your App  │────▶│  BlueEagle AI Gateway │────▶│  Official APIs  │
│  (OpenAI SDK)│     │  https://ahg.codes/v1 │     │                 │
└─────────────┘     │                      │     │  · OpenAI       │
                    │  · Load Balancing    │     │  · Anthropic    │
                    │  · Auto Failover     │     │  · Google       │
                    │  · Rate Limiting     │     │  · Antigravity  │
                    │  · Usage Tracking    │     │                 │
                    └──────────────────────┘     └─────────────────┘

📞 联系与支持 | Contact & Support


⚠️ 免责声明 | Disclaimer

本项目为蓝鹰AI网关的宣传介绍仓库。蓝鹰AI网关仅提供API中转服务,所有模型响应内容由各模型提供商(OpenAI、Anthropic、Google等)生成,本服务不对模型输出内容的准确性、完整性或适用性作出任何保证。

This repository is a promotional introduction for BlueEagle AI Gateway. BlueEagle AI Gateway only provides API relay services. All model response content is generated by respective model providers (OpenAI, Anthropic, Google, etc.). This service makes no guarantees regarding the accuracy, completeness, or suitability of model output content.


⭐ 如果这个项目对你有帮助,请给一个Star!⭐

⭐ If this project helps you, please give it a Star! ⭐

Made with 🦅 by BlueEagle AI Gateway

About

蓝鹰AI网关 | 全球顶尖大模型统一API网关 | 0.09x超低倍率 · 1:1充值 · 原生官方号池 · OpenAI Claude Gemini GPT API Gateway at 9% Cost

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors