v56

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,4581,08113.3 MB
billing

Get billing AI credit usage report for an enterprise

Gets a report of AI credit usage for an enterprise. To use this endpoint, you must be an administrator or billing manager of the enterprise.

Note: Only data from the past 24 months is accessible via this endpoint.

get/enterprises/{enterprise}/settings/billing/ai_credit/usage

Path parameters

enterprisestring required

The slug version of the enterprise name.

Query parameters

yearinteger

If specified, only return results for a single year. The value of year is an integer with four digits representing a year. For example, 2025. Default value is the current year.

monthinteger

If specified, only return results for a single month. The value of month is an integer between 1 and 12. Default value is the current month. If no year is specified the default year is used.

dayinteger

If specified, only return results for a single day. The value of day is an integer between 1 and 31. If no year or month is specified, the default year and month are used.

organizationstring

The organization name to query usage for. The name is not case sensitive.

userstring

The user name to query usage for. The name is not case sensitive.

modelstring

The model name to query usage for. The name is not case sensitive.

productstring

The product name to query usage for. The name is not case sensitive.

cost_center_idstring

The ID corresponding to a cost center. An ID of 'none' will target usage not associated to any cost center.

Response

Response when getting a billing AI credit usage report

enterprisestring required

The name of the enterprise for the usage report.

userstring

The name of the user for the usage report.

organizationstring

The name of the organization for the usage report.

productstring

The product for the usage report.

modelstring

The model for the usage report.