get
https://api.cloudzero.com/v2/ai_signals/costs
This API returns AI Signals spend or token usage according to the parameters passed in. It works like getBillingCosts, with these differences:
- Data comes from AI Signals telemetry for your whole organization, not from billing data. Your users' data access settings do not apply.
cost_typeaccepts onlybilled_cost(estimated spend in USD, the default) andusage_amount(token count).include_projected_row_countis not supported.- Use
getAiSignalsDimensionsto list the dimensions you can group and filter by. - Your API key needs the AI Signals Read permission. A key that can read billing costs does not get it automatically.
Limits and behavior:
- Rate Limit: 60 requests/day, shared with
/v2/billing/costs. A call to either endpoint counts against the same daily allowance. - Timeout: 30 seconds.
- Pagination: Results are paginated in blocks of 10,000 records.
- Using cursors for pagination doesn't affect the rate limit.
- You have 24 hours to page through your results before you will need to rerun your query.
- While using pagination, your results will be static as of run time.
- This data is statically sorted as
usage_date asc.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…

