---
title: "Get billing AI credit usage report for an organization"
method: GET
path: "/organizations/{org}/settings/billing/ai_credit/usage"
tags: ["billing"]
---

# Get billing AI credit usage report for an organization

`GET /organizations/{org}/settings/billing/ai_credit/usage`

Gets a report of AI credit usage for an organization. To use this endpoint, you must be an administrator of an organization within an enterprise or an organization account.

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

## Path parameters

- `org` string, required

## Query parameters

- `year` integer
- `month` integer
- `day` integer
- `user` string
- `model` string
- `product` string

## Response `200`

Response when getting a billing AI credit usage report

- BillingAiCreditUsageReportOrg
  - `timePeriod` object, required
    - `year` integer, required — The year for the usage report.
    - `month` integer — The month for the usage report.
    - `day` integer — The day for the usage report.
  - `organization` string, required — The unique identifier of the organization.
  - `user` string — The name of the user for the usage report.
  - `product` string — The product for the usage report.
  - `model` string — The model for the usage report.
  - `usageItems` object[], required
    - `product` string, required — Product name.
    - `sku` string, required — SKU name.
    - `model` string, required — Model name.
    - `unitType` string, required — Unit type of the usage line item.
    - `pricePerUnit` number, required — Price per unit of the usage line item.
    - `grossQuantity` number, required — Gross quantity of the usage line item.
    - `grossAmount` number, required — Gross amount of the usage line item.
    - `discountQuantity` number, required — Discount quantity of the usage line item.
    - `discountAmount` number, required — Discount amount of the usage line item.
    - `netQuantity` number, required — Net quantity of the usage line item.
    - `netAmount` number, required — Net amount of the usage line item.

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Resource not found
- `500` — Internal Error
- `503` — Service unavailable

---

[API](https://skmtc.net/github/apis/rest-api.md) · [All operations](https://skmtc.net/github/apis/rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/rest-api/versions/80850db290cd/schema)
