Skip to main content
Retrieve the billing record for a single Model API request. Use this endpoint when you need to reconcile user-facing usage, audit model costs, or inspect the pricing snapshot that was applied when a request was billed.
Use the same DGrid API key that made the original model request. Billing records are scoped to the authenticated key and cannot be queried across keys.

Endpoint

Query parameters

Get the request ID

DGrid returns the request ID in the DGrid-Request-ID response header of the original model call. Store this value if you need to retrieve the request’s billing details later.

Request example

Response

200 OK

The billing record was found and belongs to the authenticated API key.

Billing fields

Best practices

  • Save DGrid-Request-ID with your own request logs so you can reconcile usage later.
  • Treat pricing_snapshot as an immutable historical record for the request.
  • All cost and price fields are denominated in USD.
  • Numeric values may contain variable decimal precision. Do not rely on fixed-width decimal formatting.