跳转到主要内容
GET
/
openapi
/
v1
/
billing
/
apikey
/
bill
/
list
curl --request GET \
  --url 'https://api.ppio.com/openapi/v1/billing/apikey/bill/list?cycleType=Day&category=llm&startTime=1767225600&endTime=1769817599' \
  --header 'Authorization: Bearer <API_KEY>'
{
  "bills": [
    {
      "userId": "<string>",
      "startTime": "1767225600",
      "endTime": "1767311999",
      "billingMethod": 1,
      "productName": "<string>",
      "category": "llm",
      "ownerID": "<api_key_id>",
      "billNum0": "1000",
      "billNum1": "500",
      "basePrice0": "0",
      "basePrice1": "0",
      "discountPrice0": "0",
      "discountPrice1": "0",
      "amount": "10000",
      "voucherAmount": "0",
      "payAmount": "10000",
      "payAmountDisplay": 1,
      "pricePrecision": 1,
      "productId": "<string>",
      "apikeyName": "<string>",
      "apikeyMask": "sk-****"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://ppio.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

请求头

Authorization
string
必填
Bearer 身份验证格式,例如:Bearer {{API 密钥}}。

查询参数

cycleType
string
必填
统计粒度。取值:
  • Day:按天。
  • Week:按周。
  • Month:按月。
category
string
产品类型或业务分类。常用值:llmgen_apiweb_search
productName
string
产品名称,支持模糊匹配。
startTime
int64
必填
查询开始时间,秒级 Unix 时间戳,必须晚于或等于 2026-01-01 00:00:00
endTime
int64
必填
查询结束时间,秒级 Unix 时间戳,必须大于 startTime
该接口仅支持查询 2026-01-01 00:00:00 之后的数据。当前接口不分页,建议单次查询时间范围不超过 31 天。如需拉取更长时间,建议按自然月或自然周分段请求。

响应参数

bills
object[]
必填
API Key 账单列表。
curl --request GET \
  --url 'https://api.ppio.com/openapi/v1/billing/apikey/bill/list?cycleType=Day&category=llm&startTime=1767225600&endTime=1769817599' \
  --header 'Authorization: Bearer <API_KEY>'
{
  "bills": [
    {
      "userId": "<string>",
      "startTime": "1767225600",
      "endTime": "1767311999",
      "billingMethod": 1,
      "productName": "<string>",
      "category": "llm",
      "ownerID": "<api_key_id>",
      "billNum0": "1000",
      "billNum1": "500",
      "basePrice0": "0",
      "basePrice1": "0",
      "discountPrice0": "0",
      "discountPrice1": "0",
      "amount": "10000",
      "voucherAmount": "0",
      "payAmount": "10000",
      "payAmountDisplay": 1,
      "pricePrecision": 1,
      "productId": "<string>",
      "apikeyName": "<string>",
      "apikeyMask": "sk-****"
    }
  ]
}