The Cost API is part of the Enterprise Edition, like the Cost dashboard.
Authenticate
Send an API key from Profile → API Keys:Authorization: Bearer bow_... also works. Add X-Organization-Id when the key’s user belongs to more than one organization.
What the caller sees follows Monitoring access:
Monthly cost per model
prompt_tokens, completion_tokens, cache_read_tokens, cache_creation_tokens, input_cost_usd, output_cost_usd and provider_type. The response also carries the same token totals for the whole range.
Parameters
How the numbers add up
- Periods are UTC. Day buckets are keyed
YYYY-MM-DDand month bucketsYYYY-MM. - Every period is present. A period with no usage comes back with zeros, so you can chart or tabulate the series directly.
- Partial months hold only the range. With
start_date=2026-09-15, the2026-09bucket covers September 15 to 30. - Series reconcile with the totals. The
timeseriessums tototal_cost_usd,total_tokensandtotal_calls. Each item’sseriessums to that item’s totals. Formodel,provider,userandscope, the items in a period add up to that period intimeseries. data_sourceandgroupcan count a call more than once. A call in a conversation that used two agents, or made by a user in two groups, counts in full under each. Their rows can add up to more than the total, which stays exact.- Tokens count cache once.
tokensincludes cache reads and writes for providers that report them separately, such as Anthropic. For providers that already include cached tokens in the prompt count, such as OpenAI, they are not added again. - Cost is fixed when the call is made. Each call is priced with the model’s rates at that time. Changing a model’s pricing later does not change past months.
Example: monthly spend by model as CSV
group_by=provider. To set spending caps, see Quotas and usage limits.