gateway.openapi_Gateway
Query grouped usage cost subtotals for an account.
Changed onReturns rated dollar subtotals for usage over a time range, grouped by up to two of: HOUR, DAY, MODEL, USER, or API_KEY. Unlike GET /billingUsage (metered quantities) and GET /billing/summary (line items by billing category), this endpoint returns rated costs broken down by caller-supplied dimensions, with pagination and an account-wide subtotal. Requires account administrator access for ACCOUNT scope; SELF scope returns costs for the authenticated principal only.
post/v1/accounts/{account_id}/usageCosts:query
Request
- Base URLhttps://api.fireworks.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
account_idstring required
The Account Id
Request body
Response
A successful response.
Changes
- info
endpoint added
- info