Skip to content

gitstq/ahg-codes-official-unified-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

🦅 蓝鹰AI网关 · BlueEagle AI Gateway

全球顶尖AI大模型统一API网关 | 0.09x官方价格 | 1:1人民币充值 | 100%原生官方号池

Price Top-up Models Official Website API


✨ 核心优势 · 📋 支持模型 · 🚀 快速开始 · 💰 充值与计费 · ⚔️ 竞品对比

🇨🇳 中文 · 🇬🇧 English


🌟 项目简介

蓝鹰AI网关(BlueEagle AI Gateway) 是一个面向开发者和企业的 全球顶尖AI大模型统一API网关。通过一个接入点,即可调用 OpenAI GPT全系列、Anthropic Claude全系列、Google Gemini全系列 等主流大模型。

我们致力于解决AI开发者的三大痛点:

  • 价格贵 → 仅 0.09x 官方价格,节省 91% 成本
  • 接入繁琐 → 完全兼容OpenAI接口规范,零代码迁移
  • 稳定性差 → 多账号智能负载均衡 + 毫秒级自动故障切换

🌐 官方网站https://ahg.codes | 注册即送 免费测试额度


✨ 核心优势

💰 极致性价比 — 0.09x官方价格

项目 蓝鹰AI网关 官方直连 其他中转站
价格倍率 0.09x 1x 0.5x ~ 0.9x
充值比例 1:1 (1元=1美元) 需外币信用卡 0.6~0.8:1
节省比例 91% 0% 10%~40%

🏆 100% 原生官方号池

  • ✅ 所有API调用均使用 原生官方账号,无掺假、无共享、无二次中转
  • ✅ 响应质量与官方完全一致,无任何降级或限速
  • ✅ 定期自动轮换账号池,保障稳定性

🔄 完全兼容 OpenAI 接口

只需将 base_url 修改为 https://ahg.codes/v1,已有代码 一行不改 即可运行:

https://api.openai.com/v1  →  https://ahg.codes/v1

⚡ 企业级高可用

  • 🔀 多账号智能负载均衡 — 自动分发请求,避免单点压力
  • 毫秒级自动故障切换 — 遇故障自动切换健康节点,零感知
  • 📊 实时用量监控 — 透明展示调用量、延迟、成功率

📋 支持模型

模型系列 支持状态 说明
OpenAI GPT-4.1 / GPT-4o / GPT-4o-mini ✅ 已支持 最新多模态、推理模型
OpenAI GPT-4 Turbo / GPT-3.5 Turbo ✅ 已支持 成熟稳定
OpenAI o1 / o3 / o4-mini ✅ 已支持 OpenAI推理系列
Anthropic Claude 4 Sonnet / Opus ✅ 已支持 最新长上下文模型
Anthropic Claude 3.5 Sonnet / Haiku ✅ 已支持 高性价比
Anthropic Claude 3 Opus / Sonnet ✅ 已支持 成熟稳定
Google Gemini 2.5 Pro / 2.0 Flash ✅ 已支持 谷歌旗舰
Google Gemini 1.5 Pro / Flash ✅ 已支持 成熟稳定
Antigravity ✅ 已支持 极速推理
DeepSeek V3 / R1 🔜 即将支持 国产开源之光
通义千问 Qwen 2.5 🔜 即将支持 阿里通义
Llama 3 / 4 🔜 即将支持 Meta开源

完整实时模型列表请访问:https://ahg.codes/models


🚀 快速开始

1️⃣ 获取API密钥

访问 https://ahg.codes 注册账号 → 登录控制台 → 创建API Key

2️⃣ 调用示例

🔹 curl(通用)

curl https://ahg.codes/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-your-api-key-here" \
  -d '{
    "model": "gpt-4o",
    "messages": [
      {"role": "user", "content": "你好,请用中文介绍一下你自己"}
    ]
  }'

🔹 Python(OpenAI SDK)

from openai import OpenAI

client = OpenAI(
    api_key="sk-your-api-key-here",
    base_url="https://ahg.codes/v1"  # 唯一需要修改的地方
)

response = client.chat.completions.create(
    model="gpt-4o",
    messages=[
        {"role": "user", "content": "你好,请用中文介绍一下你自己"}
    ]
)

print(response.choices[0].message.content)

🔹 Node.js(OpenAI SDK)

import OpenAI from 'openai';

const client = new OpenAI({
  apiKey: "sk-your-api-key-here",
  baseURL: "https://ahg.codes/v1"  // 唯一需要修改的地方
});

async function main() {
  const response = await client.chat.completions.create({
    model: "gpt-4o",
    messages: [
      { role: "user", content: "你好,请用中文介绍一下你自己" }
    ]
  });
  console.log(response.choices[0].message.content);
}

main();

🔹 Claude API 调用

curl https://ahg.codes/v1/messages \
  -H "Content-Type: application/json" \
  -H "x-api-key: sk-your-api-key-here" \
  -H "anthropic-version: 2023-06-01" \
  -d '{
    "model": "claude-sonnet-4-20250514",
    "max_tokens": 1024,
    "messages": [
      {"role": "user", "content": "Hello, how are you?"}
    ]
  }'

📝 注意:将 sk-your-api-key-here 替换为你在 ahg.codes 获取的真实的API Key。


💰 充值与计费说明

充值规则

项目 详情
充值比例 1:1(充1元人民币 = 1美元官方额度)
消耗倍率 0.09x(仅为官方定价的9%)
计费方式 按量计费,用多少付多少
额度有效期 永久有效,不清零

费用示例

GPT-4o 为例(官方价格:$2.50 / 1M 输入tokens):

计算项 官方价格 蓝鹰AI网关价格
每1M输入tokens $2.50 $0.225(约1.6元)
每1M输出tokens $10.00 $0.90(约6.5元)
总计节省 91%

GPT-4o 对话100万token(约75万单词),在蓝鹰只需 1.6元人民币


⚔️ 竞品对比

对比维度 蓝鹰AI网关 🦅 官方直连 其他中转站A 其他中转站B
价格倍率 0.09x 1x ~0.6x ~0.8x
充值比例 1:1(1元=1美元) 需外币信用卡 0.7:1 0.8:1
号池质量 100%原生官方号 官方账号 共享/混用 部分共享
接口兼容 OpenAI标准,零迁移 官方原生 兼容 基本兼容
负载均衡 智能多账号均衡 有限 基础
故障切换 毫秒级自动切换 手动 有限
额度有效期 永久有效 按套餐 有期限 有期限
技术支持 7x24h在线 工单 群聊 群聊

📞 联系与支持

💡 小提示:Star ⭐ 本仓库,第一时间获取模型更新与优惠活动通知!


⚠️ 免责声明

  1. 蓝鹰AI网关 是一个AI模型API聚合网关服务,旨在为开发者提供便捷的多模型接入体验。
  2. 本仓库仅用于 技术展示与宣传推广,不提供任何未经授权的模型访问。
  3. 所有模型调用均通过合法渠道进行,用户需遵守各AI平台的使用条款。
  4. 使用本服务即表示您同意 https://ahg.codes 的服务条款。

🇬🇧 English Version

🦅 BlueEagle AI Gateway

Unified API Gateway for World-Class AI Models | 0.09x Official Price | 1:1 CNY Top-up | 100% Official Account Pool

Price Top-up Models Official Website


🌟 Introduction

BlueEagle AI Gateway is a unified API gateway for world-class AI models. Access OpenAI GPT series, Anthropic Claude series, Google Gemini series, and more through a single endpoint.

Key Pain Points Solved

Problem Solution
💰 Too expensive Only 0.09x official price — save 91%
🔧 Complex integration Fully OpenAI-compatible, zero code migration
Unstable Smart multi-account load balancing + auto failover

🌐 Website: https://ahg.codes | Free trial credits on signup


✨ Core Advantages

💰 Best Value — 0.09x Official Price

  • Price ratio: 0.09x (91% cheaper than official)
  • Top-up ratio: 1:1 (1 CNY = 1 USD credit)
  • Billing: Pay-as-you-go, credits never expire

🏆 100% Official Account Pool

  • All API calls use genuine official accounts — no mixing, no sharing, no reselling
  • Response quality identical to official API
  • Auto-rotating account pool for stability

🔄 Fully OpenAI-Compatible

Change base_url to https://ahg.codes/v1no code changes needed:

https://api.openai.com/v1  →  https://ahg.codes/v1

⚡ Enterprise-Grade High Availability

  • 🔀 Smart multi-account load balancing
  • ⏱ Millisecond auto failover
  • 📊 Real-time usage monitoring

📋 Supported Models

Model Family Status Notes
OpenAI GPT-4.1 / GPT-4o / GPT-4o-mini ✅ Available Latest multimodal/reasoning
OpenAI GPT-4 Turbo / GPT-3.5 Turbo ✅ Available Stable
OpenAI o1 / o3 / o4-mini ✅ Available Reasoning series
Anthropic Claude 4 Sonnet / Opus ✅ Available Long context
Anthropic Claude 3.5 Sonnet / Haiku ✅ Available Best value
Anthropic Claude 3 Opus / Sonnet ✅ Available Stable
Google Gemini 2.5 Pro / 2.0 Flash ✅ Available Google flagship
Google Gemini 1.5 Pro / Flash ✅ Available Stable
Antigravity ✅ Available Fast inference
DeepSeek V3 / R1 🔜 Coming soon Open-source
Qwen 2.5 🔜 Coming soon Alibaba
Llama 3 / 4 🔜 Coming soon Meta open-source

Full model list: https://ahg.codes/models


🚀 Quick Start

1️⃣ Get API Key

Visit https://ahg.codes → Sign up → Create API Key

2️⃣ Examples

curl

curl https://ahg.codes/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-your-api-key-here" \
  -d '{
    "model": "gpt-4o",
    "messages": [
      {"role": "user", "content": "Hello! Introduce yourself in English."}
    ]
  }'

Python

from openai import OpenAI

client = OpenAI(
    api_key="sk-your-api-key-here",
    base_url="https://ahg.codes/v1"
)

response = client.chat.completions.create(
    model="gpt-4o",
    messages=[
        {"role": "user", "content": "Hello! Introduce yourself."}
    ]
)

print(response.choices[0].message.content)

Node.js

import OpenAI from 'openai';

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

async function main() {
  const response = await client.chat.completions.create({
    model: "gpt-4o",
    messages: [
      { role: "user", content: "Hello! Introduce yourself." }
    ]
  });
  console.log(response.choices[0].message.content);
}

main();

💰 Pricing

Item Detail
Top-up ratio 1:1 (1 CNY = 1 USD credit)
Price ratio 0.09x (only 9% of official price)
Billing Pay-as-you-go
Credit expiry Never expires

Example: GPT-4o (Official: $2.50 / 1M input tokens)

Item Official BlueEagle
Per 1M input tokens $2.50 $0.225
Per 1M output tokens $10.00 $0.90
Total savings 91%

⚔️ Competitor Comparison

Dimension BlueEagle 🦅 Official Competitor A Competitor B
Price ratio 0.09x 1x ~0.6x ~0.8x
Top-up ratio 1:1 Foreign card 0.7:1 0.8:1
Account quality 100% official Official Shared Partial shared
API compatibility OpenAI standard Native Partial Basic
Load balancing Smart multi-account None Limited Basic
Auto failover Millisecond None Manual Limited
Credit expiry Never Per plan Limited Limited
Support 24/7 online Ticket Chat Chat

📞 Contact & Support

💡 Tip: Star ⭐ this repo to get notified of model updates and promotions!


⚠️ Disclaimer

  1. BlueEagle AI Gateway is an AI model API aggregation service providing convenient multi-model access.
  2. This repository is for technical demonstration and promotion purposes only.
  3. All model calls are made through legitimate channels. Users must comply with each AI platform's terms.
  4. By using this service, you agree to the terms at https://ahg.codes.

About

🚀 蓝鹰AI网关 - 全球顶尖AI大模型统一API网关 | 0.09x官方价格 | 1:1充值 | BlueEagle AI Gateway - Unified API at 0.09x price

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors