Meiguo 旗下 AI 中转站 Aiberm — Claude Opus 5.5 1 折,GPT-5.5 1.3 折aiberm.com →
Meiguo

API 文档

通过接口读取您名下 AI 账号的列表和邮件(例如自动读取登录验证码),以及设置邮件转发。先在 控制台 → 设置 → API 密钥 创建密钥。

身份认证

所有请求需在请求头中携带您的 API 密钥:

x-api-key: mg_xxxxxxxxxxxx

每个密钥限流 60 次/分钟,超出返回 429。

获取 AI 账号列表

返回您名下各平台的 AI 账号,按分配时间倒序。返回的email可直接用于下方的邮件查询接口。

GET /api/v1/accounts?provider=claude&limit=50&offset=0
  • provider可选,按平台筛选:claude、chatgpt、grok、muse、gemini、commandcode、factory、devin
  • status可选,按状态筛选:available、sold 或 banned
  • limit可选,返回数量(1-100,默认 50)
  • offset可选,分页偏移(默认 0)

示例

curl "https://meiguo.app/api/v1/accounts?provider=claude" \
  -H "x-api-key: mg_xxxxxxxxxxxx"

响应

{
  "total": 1,
  "limit": 50,
  "offset": 0,
  "accounts": [
    {
      "id": "aa_xxx",
      "provider": "claude",
      "email": "[email protected]",
      "password": null,
      "mfaCode": null,
      "status": "sold",
      "subscribeStatus": "active",
      "subscribeMonths": 3,
      "forwardTo": null,
      "product": "Claude Pro 账号",
      "warnedAt": null,
      "assignedAt": "2026-07-01T00:00:00.000Z",
      "createdAt": "2026-06-20T00:00:00.000Z"
    }
  ]
}

查询 AI 账号邮箱的最新邮件

返回您名下 AI 账号邮箱最近收到的邮件(按时间倒序),常用于自动化读取登录验证码。

GET /api/v1/emails?email=<AI账号邮箱>&limit=1
  • email必填,您购买的 AI 账号的邮箱地址
  • limit可选,返回邮件数量(1-20,默认 1,即最新一封)

示例

curl "https://meiguo.app/api/v1/[email protected]&limit=1" \
  -H "x-api-key: mg_xxxxxxxxxxxx"

响应

{
  "email": "[email protected]",
  "messages": [
    {
      "id": "aae_xxx",
      "from": "Anthropic <[email protected]>",
      "subject": "Your verification code",
      "body": "……",
      "html": "……",
      "receivedAt": "2026-07-17T08:30:00.000Z"
    }
  ]
}

增量拉取全部账号的新邮件(事件接口)

一次调用返回您名下所有 AI 账号邮箱的新增邮件,按到达顺序排列。账号较多时,用它替代逐个邮箱轮询:每分钟带上次的nextCursor请求一次即可,不会漏信,请求量也不随账号数量增长。

GET /api/v1/email-events?after=<cursor>&limit=100
  • after可选。传上次响应的 nextCursor 只取增量;传 latest 从当前时刻开始(跳过历史邮件);不传则从最早一封开始
  • limit可选,单页事件数量(1-100,默认 100)

推荐用法:首次调用after=latest获得起始游标;此后每分钟轮询一次,处理完一页后保存返回的 nextCursor 作为下次的 after;当hasMore为 true 时立即继续拉取下一页。游标是不透明字符串,请勿自行构造。

示例

curl "https://meiguo.app/api/v1/email-events?after=djE6MTIzNDU&limit=100" \
  -H "x-api-key: mg_xxxxxxxxxxxx"

响应

{
  "events": [
    {
      "id": "aae_xxx",
      "type": "email.received",
      "email": "[email protected]",
      "from": "Anthropic <[email protected]>",
      "subject": "Your verification code",
      "body": "……",
      "html": "……",
      "receivedAt": "2026-08-05T08:30:00.000Z"
    }
  ],
  "nextCursor": "djE6MTIzNDY",
  "hasMore": false
}

设置邮件转发

把 AI 账号邮箱收到的邮件自动转发一份到指定邮箱。

GET /api/v1/forwarding?email=<AI账号邮箱>
PUT /api/v1/forwarding
  • email必填,您购买的 AI 账号的邮箱地址
  • forwardToPUT 请求体字段。填同事邮箱即开启;传 null 表示停止转发

同一邮箱下其他平台的账号共用一个转发地址。同一个邮箱每小时最多更换 5 次地址,所有邮箱合计每小时最多 50 次。

示例

# 开启
curl -X PUT "https://meiguo.app/api/v1/forwarding" \
  -H "x-api-key: mg_xxxxxxxxxxxx" \
  -H "content-type: application/json" \
  -d '{"email":"[email protected]","forwardTo":"[email protected]"}'

# 停止
curl -X PUT "https://meiguo.app/api/v1/forwarding" \
  -H "x-api-key: mg_xxxxxxxxxxxx" \
  -H "content-type: application/json" \
  -d '{"email":"[email protected]","forwardTo":null}'

响应

{
  "email": "[email protected]",
  "forwardTo": "[email protected]"
}