Skip to main content
GET
/
openapi
/
v1
/
billing
/
bill
/
list
curl --request GET \
  --url 'https://api.novita.ai/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://novita.ai/docs/llms.txt

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

Request Headers

Content-Type
string
required
Enum: application/json
Authorization
string
required
Bearer authentication format, for example: Bearer {{API Key}}.

Query Parameters

cycleType
string
required
Billing cycle granularity. Options: Hour, Day, Week, Month.
productCategory
string
required
Product type. Common values:
  • summary (Summary bill)
  • gpu (GPU instance)
  • llm (LLM API)
  • serverless (Serverless Endpoint)
  • cloud_storage (Storage resources)
  • gen_api (Image/Video/Audio generation)
  • cloud_sandbox (Agent Sandbox)
  • llm_dedicated_endpoint (LLM Dedicated Endpoint)
  • web_search (Web Search)
  • bare_metal (Bare Metal)
productName
string
Product name. Supports fuzzy matching.
category
string
Product subcategory.
startTime
integer
Start time of the billing period to query, Unix timestamp in seconds (int64).
endTime
integer
End time of the billing period to query, Unix timestamp in seconds (int64).
ownerId
string
Resource instance ID.
This endpoint does not support pagination. Keep each query range within 31 days. For longer ranges, split requests by calendar month or calendar week.

Response Parameters

bills
object[]
required
Pay-as-you-go bill list.
curl --request GET \
  --url 'https://api.novita.ai/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>"
    }
  ]
}