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

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
必填
统计粒度。取值:
  • Hour:按小时。
  • Day:按天。
  • Week:按周。
  • Month:按月。
productCategory
string
必填
产品类型。常用值:
  • summary:总账单。
  • gpu:GPU 实例。
  • llm:LLM API。
  • serverless:Serverless Endpoint。
  • cloud_storage:存储资源。
  • gen_api:图像/视频/音频生成 API。
  • cloud_sandbox:Agent 沙箱。
  • llm_dedicated_endpoint:LLM 专属端点。
  • web_search:联网搜索。
  • bare_metal:裸金属。
productName
string
产品名称,支持模糊匹配。
category
string
产品子分类。
startTime
int64
查询开始时间,秒级 Unix 时间戳。
endTime
int64
查询结束时间,秒级 Unix 时间戳。
ownerId
string
资源实例 ID。
当前接口不分页,建议单次查询时间范围不超过 31 天。如需拉取更长时间,建议按自然月或自然周分段请求。

响应参数

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