Fireworks AI billing usage
Use the bundled script to export Fireworks billing metrics and summarize prompt tokens, completion tokens, accelerator seconds, models, and usage types. Do not describe these usage totals as currency spend.
Prerequisites
firectlinstalled using the official instructionsuvinstalled to run the bundled Python script- An authenticated Fireworks profile; use
firectl signin
Never ask the user to paste an API key into chat or place one directly on a
command line. Let firectl use its authenticated profile.
Workflow
- Run the bundled
fireworks-billing.pyfrom this skill directory. - Use
usagefor a billing-usage summary.spendremains as a compatibility alias, but the result contains usage quantities, not dollar costs. - Explain that start dates are inclusive and end dates are exclusive.
- Split ranges longer than 31 days into separate calls.
- For credit balance or monetary charges, direct the user to the Fireworks billing dashboard; the documented CLI does not expose a stable balance query.
Commands
# Previous UTC calendar day
./fireworks-billing.py usage
# Explicit inclusive-start/exclusive-end range
./fireworks-billing.py usage \
--start-time 2026-02-17 \
--end-time 2026-02-18
The script exports into a private temporary directory, validates the current CSV schema, summarizes it, and removes the temporary data. It does not retain raw billing records.
Troubleshooting
- Missing
firectl: follow the official installation instructions. - Authentication failure: run
firectl signin, then retry. - Missing CSV columns: update
firectland this skill before trusting results. - No rows: report that no usage was recorded for the requested interval.
- More than 31 days: split the interval; Fireworks limits each export to 31 days.
Current skill version: 1.1.0.