Skip to content

gitstq/blueeagle-api-gateway-pro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🦅 蓝鹰AI网关 | BlueEagle AI Gateway

全球顶尖大模型统一API网关 — 一站式接入所有主流AI模型

The Unified API Gateway for World-Class AI Models

🌐 官方网站:https://ahg.codes

0.09x Multiplier 1:1 Recharge 100% Official Pool OpenAI Compatible Pay As You Go Never Expires

💡 Zero-Code Migration | 零代码迁移 | Pay Only 9% of Official Pricing | 仅付官方价格9%


🔹 充1元 = 1美元官方额度 | ¥1 Recharge = $1 Official Credit 🔹 消耗仅为官方0.09倍 | Cost Only 0.09x of Official API 🔹 注册即送测试额度 | Free Trial Credits on Signup


📖 项目简介 | About

蓝鹰AI网关(BlueEagle AI Gateway) 是一款面向开发者和企业的专业AI大模型API中转服务。通过一个统一的API端点,您即可无缝访问 OpenAI GPT、Anthropic Claude、Google Gemini 等全球顶尖大模型,无需分别注册和管理多个平台账号。

BlueEagle AI Gateway is a professional API relay service for AI large language models. Through a single unified API endpoint, you can seamlessly access OpenAI GPT, Anthropic Claude, Google Gemini and other world-class LLMs — no need to register and manage multiple platform accounts separately.

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

  • 💰 极致性价比:消耗倍率仅 0.09x,即花费仅为官方定价的 9%。充1元人民币获得1美元官方等值额度。
  • 🏢 100%原生官方号池:所有模型均从官方API直连,无掺假、无共享、无二次中转,确保最高质量输出。
  • 毫秒级故障切换:多账号智能负载均衡,单节点故障毫秒级自动切换,保障99.9%服务可用性。
  • 🔌 零代码迁移:完全兼容OpenAI接口规范,仅需修改 base_url,即可将现有项目无缝迁移。
  • 🎁 免费测试:注册即赠送测试额度,零成本体验所有模型。

✨ 核心优势 | Key Advantages

特性 Feature 详情
💰 0.09x 超低倍率 Ultra-Low Multiplier 消耗仅为官方价格的9%,极致节省成本
💱 1:1 充值比例 1:1 Recharge Rate 充1元人民币 = 1美元官方额度
🏢 100%原生官方号池 100% Official API Pool 无掺假、无共享、无二次中转
智能负载均衡 Smart Load Balancing 多账号调度,毫秒级自动故障切换
🔌 OpenAI兼容 OpenAI Compatible 零代码迁移,修改base_url即可
🎁 免费测试额度 Free Trial Credits 注册即送,零成本体验
♾️ 额度永不过期 Credits Never Expire 充值额度永久有效,不清零
📊 按量计费 Pay As You Go 用多少付多少,无包月绑定

📋 支持模型 | Supported Models

模型厂商 Model Provider 模型列表 状态
OpenAI GPT-4o, GPT-4o-mini, GPT-4-Turbo, GPT-4, GPT-3.5-Turbo, o1, o1-mini, o3, o3-mini, DALL·E 3 ✅ 已支持
Anthropic Claude 4 Opus, Claude 4 Sonnet, Claude 3.5 Sonnet, Claude 3.5 Haiku, Claude 3 Opus ✅ 已支持
Google Gemini 2.5 Pro, Gemini 2.5 Flash, Gemini 2.0 Flash, Gemini 1.5 Pro ✅ 已支持
Antigravity Antigravity 全系列 ✅ 已支持
DeepSeek DeepSeek V3, DeepSeek-R1 🔜 即将支持
通义千问 Qwen-Max, Qwen-Plus 🔜 即将支持
Meta Llama Llama 3, Llama 3.1 🔜 即将支持

📌 持续更新中,更多模型即将上线!| More models coming soon!


🚀 快速开始 | Quick Start

仅需 3步 即可开始使用,完全兼容OpenAI SDK。

方式一:Python(推荐)

from openai import OpenAI

client = OpenAI(
    api_key="your-blueeagle-api-key",   # 替换为您的蓝鹰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! 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 response = await client.chat.completions.create({
    model: 'claude-4-sonnet',
    messages: [
      { role: 'system', content: 'You are a helpful assistant.' },
      { role: 'user', content: 'Hello from BlueEagle!' }
    ],
    stream: true
  });

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

main();

方式四:接入现有项目(仅需改一行)

如果您已经在使用OpenAI SDK,只需修改 base_url 即可完成迁移:

# 修改前(直连OpenAI)
client = OpenAI(api_key="sk-xxx", base_url="https://api.openai.com/v1")

# 修改后(使用蓝鹰网关)
client = OpenAI(api_key="your-blueeagle-key", base_url="https://ahg.codes/v1")

就这么简单!✅


💰 充值与计费 | Pricing & Billing

计费示例 | Cost Example

使用场景 官方费用 蓝鹰费用 节省
GPT-4o 输入1M tokens $10.00 $0.90 91%
Claude 4 Sonnet 输入1M tokens $3.00 $0.27 91%
GPT-4o 输出1M tokens $30.00 $2.70 91%
Gemini 2.5 Pro 输入1M tokens $2.50 $0.225 91%

计费规则

  • 充值比例:1元人民币 = 1美元官方额度(1:1)
  • 消耗倍率:0.09x(仅扣官方价格的9%)
  • 计费方式:按量计费,用多少扣多少
  • 额度有效期永久有效,不清零
  • 最低充值:无最低限额

📝 示例:充值10元 = 获得10美元官方额度。调用GPT-4o(官方$5/1M input tokens),实际消耗仅 $0.45,10美元额度可调用约2200万tokens。

如何充值

访问 https://ahg.codes 注册账号后,在控制台即可在线充值,支持多种支付方式。


⚔️ 竞品对比 | Comparison

对比项 蓝鹰AI网关 OpenAI官方 其他中转站
充值比例 1:1(充1元=1美元) 1:1(美元) 通常1:5~1:10
消耗倍率 0.09x 1.0x 0.5x~1.5x
实际成本 约官方9% 100% 50%~150%
号池质量 100%官方原生 官方 多为共享/掺假
故障切换 毫秒级自动 无(单点) 手动或无
兼容性 OpenAI协议 OpenAI 各异
额度过期 永不过期 不过期 常见30天过期
模型覆盖 GPT+Claude+Gemini+更多 仅OpenAI 部分支持
免费测试 ✅ 注册送额度 ❌ 需绑定信用卡 部分支持

📁 项目文件结构 | Project Structure

BlueEagle-AI-Gateway/
├── README.md                 # 项目说明文档(本文件)
├── LICENSE                   # MIT开源协议
├── examples/
│   ├── python_example.py     # Python调用示例
│   ├── node_example.js       # Node.js调用示例
│   └── curl_example.sh       # cURL调用示例
├── docs/
│   ├── pricing.md            # 详细计费说明
│   ├── migration_guide.md    # 迁移指南
│   └── faq.md                # 常见问题
└── .github/
    └── FUNDING.yml           # 赞助配置

📞 联系与支持 | Contact & Support


⚠️ 免责声明 | Disclaimer

本项目为蓝鹰AI网关(BlueEagle AI Gateway)的宣传介绍仓库,旨在帮助开发者了解和使用该服务。所有模型均通过官方API合法调用,用户需遵守各模型服务商的使用条款和法律法规。本仓库不存储任何模型数据,仅提供API中转服务。

This repository is a promotional introduction for BlueEagle AI Gateway, intended to help developers understand and use the service. All models are accessed legally through official APIs. Users must comply with the terms of service and applicable laws of each model provider. This repository does not store any model data and only provides API relay services.


⭐ 如果蓝鹰AI网关对您有帮助,请给一个Star!⭐ ⭐ If BlueEagle AI Gateway helps you, please give us a Star! ⭐

Made with ❤️ by BlueEagle Team

🦅 访问官网 | Visit Website

About

🦅 BlueEagle AI Gateway Pro - Unified API for GPT/Claude/Gemini. Only 0.09x cost, 1:1 recharge rate, 100% official pool. 蓝鹰AI网关Pro - 全球顶尖大模型统一API网关

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors