List Generation Costs
List the recorded cost of every generation that finished in a time
range. Each item is the Get Generation Costs
object plus createdAt, finishedAt, model and apiKey.
The range filters on finishedAt (startTime inclusive, endTime
exclusive), oldest first, so back-to-back ranges never overlap. Page
with cursor until nextCursor is null, keeping the same range.
Costs are usually recorded within 10 minutes of completion.
totalCostUsd is null while any part is pending or unavailable. See
Export usage and costs.
Authentifizierung
Abfrageparameter
Start of the range, inclusive. UTC ISO 8601 date-time, such as 2026-11-12T00:00:00Z.
End of the range, exclusive. UTC ISO 8601 date-time. Must be after startTime.
Antwort
Pass as cursor with the same startTime and endTime to get the next page. Null on the last page.

