Fireworks AI
Connect your Fireworks AI account to track token usage per model and daily billed spend in StackSpend.
Fireworks AI
Direct API billing — API key + Account ID required
The Fireworks AI provider connects StackSpend to your Fireworks account through its account Billing API. Fireworks reports two things through separate endpoints: token usage per model (prompt and completion tokens) and your rated cost at the account level, daily. StackSpend reads both and folds them into your unified cost view, so a runaway inference job is visible the day it happens — not when the invoice lands.
What StackSpend tracks
- Daily billed Fireworks spend at the account level, in USD — your authoritative cost number
- Token usage broken down by model — prompt (input) and completion (output) tokens per day
- API-equivalent dollar value per model, priced at list rates, so you can attribute spend to specific models
- Anomaly detection and month-end forecast against your baseline
- Up to 90 days of history backfilled on first connection
Prerequisites
- A Fireworks AI account with billing
- An API key (starts with
fw_) with billing access, created in the Fireworks console - Your Fireworks Account ID — it scopes every billing request
Setup
Create an API key
Go to fireworks.ai and open Settings → API Keys. Create an API key with billing access and give it a name such as “StackSpend”. Copy it — it starts with fw_.
Find your Account ID
Your Account ID is the account slug shown in your fireworks.ai/account/… URL and on the account settings page. StackSpend needs it because every Fireworks billing endpoint is scoped to a specific account.
Add to StackSpend
Go to Providers → Add provider → Fireworks AI:
Add Fireworks AI provider
An API key with billing access from the Fireworks console
The account slug from your fireworks.ai/account/… URL
Verify sync
Cost data appears within minutes of saving. StackSpend backfills up to 90 days of daily usage and billed cost on the first sync, then refreshes recent days on each subsequent sync (Fireworks restates the most recent days for a short window as usage settles).
Data summary
| Attribute | Value |
|---|---|
| Granularity | Daily |
| Billed cost | Account-level (authoritative) |
| Token usage | Per model (input / output) |
| Historical data | Up to 90 days |
| Setup time | 3 min |
Frequently asked questions
What credentials does StackSpend need to connect Fireworks AI?
A read-only Fireworks API key (it starts with fw_) with billing access, plus your Fireworks Account ID. Both are required because every Fireworks billing endpoint is scoped to a specific account.
How often does Fireworks cost data update?
Daily. Fireworks reports billed cost and token usage at daily granularity, and StackSpend refreshes the most recent days on each sync because Fireworks restates recent usage for a short window as it settles.
Does StackSpend show Fireworks cost per model?
Fireworks only reports rated dollars at the account level, not per model. StackSpend uses that daily account total as the authoritative billed spend, and attributes cost to individual models by pricing each model’s token usage at list rates — shown as an estimated usage value, the same approach used for OpenAI and Anthropic.
Is the connection read-only?
Yes. StackSpend only reads billing usage and cost through the Fireworks account Billing API and never writes to your account.