Claude Usage and Cost API

API for tracking token consumption and costs across your organization with breakdowns by model workspace and service tier.

Documentation

API entry from apis.yml

apis.yml Raw ↑
name: Claude Usage and Cost API
description: API for tracking token consumption and costs across your organization with breakdowns by
  model workspace and service tier.
image: https://www.anthropic.com/images/icons/anthropic-icon.png
humanURL: https://docs.anthropic.com/en/api/usage-cost-api
baseURL: https://api.anthropic.com/v1
tags:
- AI
- Analytics
- Cost Tracking
- Usage
properties:
- type: Documentation
  url: https://docs.anthropic.com/en/api/usage-cost-api
contact:
- type: Support
  url: https://support.anthropic.com
endpoints:
- name: Get Usage Report
  method: GET
  path: /organizations/usage_report/messages
  description: Retrieve token usage report with breakdowns by model workspace and service tier
- name: Get Cost Report
  method: GET
  path: /organizations/cost_report
  description: Retrieve service-level cost breakdowns in USD including token usage web search and code
    execution costs