Billing Usage API (Beta)
Get paginated billing usage data for the authenticated user. DEPRECATED: This endpoint is rate limited to 10 requests per minute per user and will be removed in a future release. Use GET /api/v1/billing/usage-history instead, which provides the same data with keyset pagination. Accounts created on or after 2026-07-07 are blocked with a 410 and must use the replacement endpoint.
- timestamp: Der Zeitstempel, an dem der Billing-Usage-Eintrag erstellt wurde
- sku: Das mit dem Billing-Usage-Eintrag verknüpfte Produkt
- pricePerUnitUsd: Der Preis pro Einheit in USD
- unit: Die Anzahl der verbrauchten Einheiten
- amount: Der Gesamtbetrag, der für den Billing-Usage-Eintrag berechnet wurde
- currency: Die für den Billing-Usage-Eintrag berechnete Währung
- notes: Hinweise zum Billing-Usage-Eintrag
- inferenceDetails.requestId: Die mit der Inferenz verknüpfte Request-ID
- inferenceDetails.inferenceExecutionTime: Zeit für die Inferenzausführung in Millisekunden
- inferenceDetails.promptTokens: Anzahl der im Prompt angeforderten Tokens. Nur bei LLM-Nutzung vorhanden.
- inferenceDetails.completionTokens: Anzahl der in der Completion verwendeten Tokens. Nur bei LLM-Nutzung vorhanden.
Autorisierungen
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Header
Accept header to specify the response format
"application/json, text/csv"
Abfrageparameter
Filter by currency
USD, VCU, DIEM, BUNDLED_CREDITS "USD"
End date for filtering records (ISO 8601)
"2024-12-31T23:59:59.000Z"
Number of items per page
0 < x <= 500200
Page number for pagination
x > 01
Sort order for createdAt field
asc, desc "desc"
Start date for filtering records (ISO 8601)
"2024-01-01T00:00:00.000Z"
Antwort
Successful response
The response schema for the billing usage endpoint
Deprecation notice naming the replacement endpoint
This endpoint is deprecated and will be removed in a future release. Use GET /api/v1/billing/usage-history instead, which provides the same data with keyset pagination.