Documentation Index
Fetch the complete documentation index at: https://docs.agipower.ai/llms.txt
Use this file to discover all available pages before exploring further.
Get Subscription Detail
鉴权
Authorization Header 必选
- 参数名:
Authorization - 格式:
Bearer <API_KEY> - 说明:Management API Key,在 AGIPower 控制台 创建
限流
每个接口独立计数,每分钟最大请求数由平台统一配置。超出限制时返回422 错误。
返回值
data.plan object
当前套餐信息:
tierstring— 套餐等级,如"free"/"pro"/"max"/"ultra"amount_usdnumber— 套餐月费(美元)intervalstring— 计费周期,固定为"month"expires_atstring— 当前订阅周期到期时间(ISO 8601)
data.currency string
货币单位,固定为 "usd"。
data.base_usd_per_flow number
当前套餐的平台基准汇率(美元/Flow)。
data.effective_usd_per_flow number
账号实际有效汇率(美元/Flow)。正常情况下与基准汇率相同,存在异常时可能更高。
data.account_status string
账号当前状态,枚举值:
| 值 | 说明 |
|---|---|
healthy | 正常 |
monitored | 监控中,用量异常但仍可正常使用 |
abusive | 滥用,已触发限制 |
suspended | 已暂停 |
banned | 已封禁 |
data.quota_5_hour object
5 小时滚动窗口配额(高频保护机制):
usage_percentagenumber— 当前周期已用百分比(0–1),精确到 4 位小数resets_atstring | null— 当前窗口重置时间(ISO 8601);窗口未开始时为nullmax_flowsnumber— 窗口内最大可用 Flow 数used_flowsnumber— 已使用 Flow 数remaining_flowsnumber— 剩余可用 Flow 数used_value_usdnumber— 已使用对应的美元价值max_value_usdnumber— 窗口总额度对应的美元价值
data.quota_7_day object
7 天滚动窗口配额,字段结构与 quota_5_hour 相同。
data.quota_monthly object
当月订阅周期总配额(仅含上限,无实时用量):
max_flowsnumber— 当月最大可用 Flow 数max_value_usdnumber— 当月总额度对应的美元价值
quota_5_hour和quota_7_day均为滚动窗口,每次请求后实时更新quota_monthly为固定的订阅周期上限,不含实时用量数据- 三个维度同时生效,任一维度超限均会限制请求