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",
"originAmountDecimal": "1.23456789",
"amountDecimal": "1.000019",
"payableDecimal": "1.000019",
"voucherAmountDecimal": "0",
"originAmount": "12345",
"amount": "10000",
"voucherAmount": "0",
"payAmount": "10000",
"payAmountDisplay": 1,
"pricePrecision": 1,
"productId": "<string>"
}
]
}
账单管理
查询账单列表
PPIO 管理 API 文档说明“查询账单列表”的使用方式,帮助开发者整理账户服务费用记录,了解相关请求与结果处理。
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",
"originAmountDecimal": "1.23456789",
"amountDecimal": "1.000019",
"payableDecimal": "1.000019",
"voucherAmountDecimal": "0",
"originAmount": "12345",
"amount": "10000",
"voucherAmount": "0",
"payAmount": "10000",
"payAmountDisplay": 1,
"pricePrecision": 1,
"productId": "<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:裸金属。
当前接口不分页,建议单次查询时间范围不超过 31 天。如需拉取更长时间,建议按自然月或自然周分段请求。
金额精度说明
originAmountDecimal、amountDecimal、payableDecimal 和 voucherAmountDecimal 为高精度金额字段,类型为十进制字符串,单位为元,无需除以 10000。
具有对应 Decimal 字段的旧整数金额字段已标记为【弃用】,仍保留兼容,JSON 中以字符串返回,单位为 1/10000 元。
响应参数
账单列表。
隐藏 properties
隐藏 properties
用量字段 0。不同产品类型含义不同:
llm:输入 Token 数。gpu:卡数 × 计费时长。cloud_storage:存储容量 × 计费时长。serverless:所有 worker 数量 × 时长之和。
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",
"originAmountDecimal": "1.23456789",
"amountDecimal": "1.000019",
"payableDecimal": "1.000019",
"voucherAmountDecimal": "0",
"originAmount": "12345",
"amount": "10000",
"voucherAmount": "0",
"payAmount": "10000",
"payAmountDisplay": 1,
"pricePrecision": 1,
"productId": "<string>"
}
]
}
最后修改于 2026年10月21日