aigather

一个 API,接入所有主流大模型

国内模型官方直连、海外模型稳定可达。只需把 base_url 指向 aigather,其余代码一行不改。注册即送体验金,先试用再充值。

auto 智能选型,自动省钱

model 填 aigather/auto,系统按任务难度自动分流到够用且最便宜的模型——简单问题不为顶级模型买单。

故障自动切换,业务不中断

同一模型配多渠道,超时/限流/故障自动 fallback 到备用渠道,对你的代码完全透明。

账单透明,分毫可查

预充值按 token 计费,每一次请求的模型、用量、费用、延迟都有明细,杜绝糊涂账。

30 秒接入

curl

curl https://api.aigather.dev/v1/chat/completions \
  -H "Authorization: Bearer sk-ag-..." \
  -H "Content-Type: application/json" \
  -d '{
    "model": "aigather/auto",
    "messages": [{"role": "user", "content": "你好"}]
  }'

Python(官方 openai SDK)

from openai import OpenAI

client = OpenAI(
    base_url="https://api.aigather.dev/v1",
    api_key="sk-ag-...",
)
resp = client.chat.completions.create(
    model="aigather/auto",  # 或指定 deepseek/deepseek-chat 等
    messages=[{"role": "user", "content": "你好"}],
)

完整接入指南见 文档