Get Account Usage
Authorizations
Bearer authentication using your Fireworks API key. Format: Bearer <API_KEY>
Path Parameters
The Account Id
Query Parameters
Costs returned are inclusive of start_time.
start_time must be before end_time.
Costs returned are exclusive of end_time.
end_time must not be more than 31 days after start_time.
Usage type to query usage for If not specified, returns all usage types (serverless, dedicated deployments, and training).
- USAGE_TYPE_UNSPECIFIED: Default value. When specified (or when usage_type field is not set), returns usage data for all deployment types: serverless requests, dedicated deployments, and training jobs.
- SERVERLESS: Returns only serverless usage data. Filters the response to include only usage from serverless API requests.
- DEDICATED_DEPLOYMENT: Returns only dedicated deployment usage data. Filters the response to include only usage from dedicated deployments.
- TRAINING: Returns only training job usage data (SFT/DPO token usage and RFT / service-mode trainer GPU-seconds usage). Inference deployments serving rollouts for RFT / online RL are reported under DEDICATED_DEPLOYMENT (not TRAINING) to avoid double counting GPU time.
USAGE_TYPE_UNSPECIFIED, SERVERLESS, DEDICATED_DEPLOYMENT, TRAINING IANA timezone identifier for daily aggregation (e.g., "America/Los_Angeles", "Europe/London"). When specified, the returned data will be aggregated into daily buckets based on this timezone. If not specified or empty, defaults to "UTC". See: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
Dimensions to group usage by (multiple values allowed; each is a separate GROUP BY column). Serverless: "model_name", "api_key_id", "api_key_name", "user_id", "session_id", "annotations.team", "annotations.project", "annotations.environment". Dedicated: "deployment_name", "accelerator_type", and the same annotation keys. Training: "job_id", "training_session_id", "job_type", "usage_type", "accelerator_type", "base_model", and the same annotation keys. When usage_type is unspecified, dimensions that apply only to one stream are ignored on the others (e.g. "deployment_name" is ignored for serverless and training; "model_name" / "api_key_id" / "api_key_name" / "user_id" / "session_id" are ignored for dedicated and training; "job_id" / "training_session_id" / "job_type" are ignored for serverless and dedicated). "session_id" is the opaque client session from billing properties (serverless-only, high cardinality): prefer filtering by a single session; grouping by it can fan out to one row per session. Example: ["annotations.team", "model_name"] or ["user_id", "model_name"] or ["api_key_id", "api_key_name"]. If empty: serverless aggregates by model name; dedicated defaults to deployment and accelerator type; training aggregates by job_id, training_session_id, job_type, usage_type, accelerator_type and base_model.
This is a request variable of the map type. The query format is "map_name[key]=value", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age["bob"]=18
Response
A successful response.
List of training costs (SFT / DPO token usage and RFT / service-mode accelerator-second usage). Empty when training usage was not requested or when the account has training usage hidden.