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 theDGrid-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-IDwith your own request logs so you can reconcile usage later. - Treat
pricing_snapshotas 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.

