Skip to main content
GET
Get credit usage

Authorizations

Authorization
string
header
required

Use a JWT bearer token or a Veryfront API key in the Authorization header.

Path Parameters

account_id
string<uuid>
required

Query Parameters

preset
enum<string>
default:30d

Relative timeframe preset.

Available options:
7d,
30d,
90d
timezone
string
default:UTC

IANA timezone for daily bucket boundaries.

project_reference
string

Project ID or slug that narrows the read to one project of the account. A project of another account is not found.

Minimum string length: 1

Response

Credit usage of the account by day, project and model, optionally for one project.

summary
object
required
timeframe
object
required
series
object[]
required
projects
object[]
required
models
object[]
required
serving
object[]

The same spend cut by the deployment that served it. Ordered by spend descending, then by request count descending, then by host, then by tier; the row whose host and tier are both null is always last, because it is the absence of a record rather than a deployment. Additive: it neither replaces nor re-slices any other field. Omitted where the serving breakdown is not enabled; models is unchanged by it.