Skip to content

gitstq/BlueEagle-AI-Gateway-v2024

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

🦅 蓝鹰AI网关 | BlueEagle AI Gateway

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

Price Ratio Cost Rate Official Pool OpenAI Compatible

🌐 官方网站 · 📖 使用文档 · 💬 技术支持


📝 项目简介 | Introduction

蓝鹰AI网关(BlueEagle AI Gateway)是一个高性能、低成本、高可用的AI大模型统一API网关。我们提供一站式接入全球顶尖大模型的能力,让您以官方定价9%的成本享受100%原生官方号池服务。

核心优势:1元人民币 = 1美元官方额度,消耗仅为官方定价的0.09倍

BlueEagle AI Gateway is a high-performance, low-cost, and highly available unified API gateway for AI large models. Access world-leading AI models at just 9% of official pricing with 100% native official account pools.


✨ 核心优势 | Key Features

特性 说明 Feature
💰 极致性价比 消耗倍率仅 0.09x,为官方定价的9% 0.09x cost rate, only 9% of official pricing
💱 1:1充值比例 充1元人民币 = 1美元官方额度 1:1 ratio: 1 CNY = 1 USD official quota
🔐 原生官方号池 100%官方账号,无掺假、无共享、无二次中转 100% native official accounts, no mixing
智能负载均衡 多账号毫秒级自动故障切换 Multi-account load balancing with auto-failover
🔄 OpenAI兼容 完全兼容OpenAI接口规范,零代码迁移 Fully OpenAI-compatible API, zero migration cost
🎁 免费测试 注册即送测试额度,先体验后付费 Free trial credits upon registration
♾️ 永久有效 额度永久有效,永不清零 Credits never expire
📊 按量计费 用多少付多少,灵活透明 Pay-as-you-go, transparent pricing

📋 支持模型 | Supported Models

厂商 模型系列 状态 Provider Models Status
OpenAI GPT-4o, GPT-4, GPT-3.5-Turbo 全系列 ✅ 已支持 OpenAI GPT-4o, GPT-4, GPT-3.5-Turbo ✅ Available
Anthropic Claude 3.5, Claude 3 全系列 ✅ 已支持 Anthropic Claude 3.5, Claude 3 ✅ Available
Google Gemini 1.5, Gemini Pro 全系列 ✅ 已支持 Google Gemini 1.5, Gemini Pro ✅ Available
Antigravity Antigravity 全系列 ✅ 已支持 Antigravity All models ✅ Available
DeepSeek DeepSeek-V2, DeepSeek-Coder 🔜 即将支持 DeepSeek DeepSeek-V2, Coder 🔜 Coming Soon
阿里云 通义千问 Qwen 全系列 🔜 即将支持 Alibaba Qwen series 🔜 Coming Soon
Meta Llama 3 全系列 🔜 即将支持 Meta Llama 3 series 🔜 Coming Soon

🚀 快速开始 | Quick Start

1. 获取API密钥

访问 https://ahg.codes 注册账号并获取您的API Key。

Visit https://ahg.codes to register and get your API Key.

2. 修改Base URL

将API请求的Base URL设置为:https://ahg.codes/v1

Set the Base URL to: https://ahg.codes/v1


cURL 示例 | cURL Example

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

Python 示例 | Python Example

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!"}
    ]
)

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

Node.js 示例 | Node.js Example

import OpenAI from 'openai';

const openai = new OpenAI({
  apiKey: 'YOUR_API_KEY',
  baseUrl: 'https://ahg.codes/v1'
});

async function main() {
  const completion = await openai.chat.completions.create({
    model: 'gpt-4o',
    messages: [
      { role: 'system', content: 'You are a helpful assistant.' },
      { role: 'user', content: 'Hello!' }
    ]
  });

  console.log(completion.choices[0].message.content);
}

main();

💰 充值与计费说明 | Pricing

价格优势示例 | Cost Comparison Example

假设您使用GPT-4o模型,官方定价为$0.005/1K tokens:

项目 官方价格 蓝鹰价格 节省
1K tokens $0.005 $0.00045 91%
100元充值 $100额度 $100额度 -
实际获得 $100额度 $1111等值额度 10倍+

Example: For GPT-4o at $0.005/1K tokens official pricing:

Item Official BlueEagle Savings
1K tokens $0.005 $0.00045 91%
100 CNY $100 quota $100 quota -
Actual Value $100 quota $1111 equivalent 10x+

计费规则 | Billing Rules

  • 1:1充值比例:1元人民币 = 1美元官方额度
  • 0.09x消耗倍率:实际消耗 = 官方定价 × 0.09
  • 按量计费:用多少扣多少,无最低消费
  • 永久有效:额度永不过期,不清零
  • 实时计费:精确到小数点后6位

⚔️ 竞品对比 | Comparison

特性 蓝鹰AI网关 其他中转站A 其他中转站B 官方直连
充值比例 1:1 1:0.8 1:0.9 -
消耗倍率 0.09x 0.15x 0.12x 1.0x
原生号池 ✅ 100% ⚠️ 混合 ⚠️ 共享
负载均衡 ✅ 智能 -
故障切换 ✅ 毫秒级 ❌ 手动 ❌ 手动 -
免费测试 ⚠️ 限量
额度有效期 ♾️ 永久 1年 6个月 -

📞 联系与支持 | Contact & Support


⚠️ 免责声明 | Disclaimer

  1. 本服务仅供学习和研究使用,请遵守当地法律法规。
  2. 请勿将API用于任何违法、违规或侵犯他人权益的用途。
  3. 用户需对自身使用行为负责,本平台不对用户的使用行为承担任何责任。
  4. 服务可能因不可抗力因素(如官方API调整、网络问题等)暂时中断,我们会尽力恢复服务。
  5. 最终解释权归蓝鹰AI网关所有。

🦅 蓝鹰AI网关 - 让AI更普惠

🦅 BlueEagle AI Gateway - Making AI Accessible

🌐 立即访问 ahg.codes

About

🦅 蓝鹰AI网关 - 全球顶尖大模型统一API网关 | 0.09x消耗倍率 1:1充值比例 | 100%原生官方号池 | OpenAI Claude Gemini

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors