Billing (on v2)

Get paginated billing usage data for the authenticated user. NOTE: This is a beta endpoint and may be subject to change.

Export Billing Usage API

This endpoint allows you to export usage data for a user. Below are the details of the response fields, authorization, headers, and query parameters.


Response Fields

Field
Description

timestamp

The timestamp when the billing usage entry was created.

sku

The product associated with the billing usage entry.

pricePerUnitUsd

Price per unit in USD.

unit

Number of units consumed.

amount

Total amount charged for this entry.

currency

Currency charged for this entry.

notes

Additional notes about the billing usage entry.

inferenceDetails.requestId

Request ID associated with the inference.

inferenceDetails.inferenceExecutionTime

Inference execution time in milliseconds.

inferenceDetails.promptTokens

Number of tokens requested in the prompt (only for LLM usage).

inferenceDetails.completionTokens

Number of tokens used in the completion (only for LLM usage).


Authorization

  • Header: Authorization: Bearer <token>

  • Required for access. Replace <token> with your authentication token.


Headers

Header
Type
Description
Example

Accept

string

Specify the response format

"application/json, text/csv"


Query Parameters

Parameter
Type
Description
Example

currency

enum<string>

Filter results by currency

"USD" Options: USD, VCU, DIEM

startDate

string<date-time>

Start date for filtering records (ISO 8601)

"2025-00-00T00:00:00.000Z"

endDate

string<date-time>

End date for filtering records (ISO 8601)

"2025-00-00T23:59:59.000Z"

limit

integer

Number of items per page (0 < x ≤ 500)

200 (default)

page

integer

Page number for pagination (x > 0)

1 (default)

sortOrder

enum<string>

Sort order for createdAt field

"desc" (default) Options: asc, desc

// QUANTWARE //

Last updated