Anthropic
Anthropic API cost by workspace, model and API key
AI Connects with Admin API key
Costfluent reads your Anthropic organization's API spend from its cost report and the tokens from its usage report. Both feed cost reports, budgets and the “AI spend” dashboard.
Permanent Free plan with no time limit
What arrives
What arrives from Anthropic
Cost by workspace and model
Each line arrives with its workspace as the account, its model as the service and Anthropic's line item as the SKU.
Tokens by type
Token lines carry their count from the usage report, web search lines their requests. The ai:token_type tag tells input, output, cache_read and cache_write tokens apart.
US dollars, as Anthropic reports them
Cost arrives by UTC day in the currency Anthropic states on each row: US dollars. A row without a currency is held back, never given a default one.
Keys by name, accounts by ID
API keys show by name and ID, and a line several keys used is split by each key's share of its tokens. Workspaces arrive as IDs, and OAuth users as an ai:user ID, never a name or email address.
What you do with it
What you do with your Anthropic cost
Claude API spend by model and token type
When a workspace first reads AI spend, Costfluent adds the “AI spend” dashboard: spend by model, and cost per million tokens by model and token type. The same model on Amazon Bedrock carries the same ai:model value.
Anthropic cost per workspace and API key
Group a cost report by account for workspaces, by resource for API keys or by ai:user for OAuth users, then save the view.
A budget on one Anthropic workspace
Put a budget on a saved report for one workspace or API key and follow actual spend and its forecast for the period.
How Costfluent connects
One admin API key per organization
- An admin API key, which only an organization admin can create; individual accounts have none. Anthropic has no read-only key, and an admin key cannot be narrowed: it can also manage members, workspaces and keys, so create one for Costfluent alone.
- Costfluent stores the key encrypted and uses it for four reads only: the organization, the cost and usage reports, and the API key list, keeping each key's ID and name. “Priority Tier” usage is not in the cost report, so it is not collected.
- A connection syncs once a day by default and can be set as often as hourly. Before saving, Costfluent reads one day of cost, so a connection that saves can read your cost.
- Connecting imports your plan's backfill, at most six months, as far back as Anthropic reports cost. The billing period is the calendar month, as Anthropic bills it.
Related pages
- AI cost tracking
Where AI spend arrives from, the cloud bills and the AI providers, and how its lines are tagged by model.
- LLM prices
The price per million input and output tokens of the models on Amazon Bedrock, Azure and Vertex AI, in euro.
- LLM cost calculator
Tokens in and out a month give a model's monthly cost in a European region.
- Budgets
Set a workspace budget and follow actual spend and the forecast against it.
Articles on this topic
See your Anthropic API cost in Costfluent
Start on the Free plan and connect your Anthropic organization.
Permanent Free plan with no time limit