---
title: "Get Ai Usage"
method: GET
path: "/api/billing/ai-usage"
tags: ["billing"]
---

# Get Ai Usage

`GET /api/billing/ai-usage`

## Request

- Base URL: `https://softkiln.com` (the document declares no server; this is the origin it was published from)
- URL: `https://softkiln.com/api/billing/ai-usage`
- Auth: none declared

What this organization's AI credit went on over the last 30 days, per
day, product and use. Who can see the balance can see this.

## Query parameters

- `org` string, nullable

## Response `200`

Successful Response

- AiUsageOut
  - `days` integer, required
  - `rows` AiUsageRow[], required
    - `date` string, required
    - `product` string, nullable, required
    - `deleted` boolean, required
    - `kind` string, required
    - `ticket` string, nullable, required
    - `cost_microcents` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/softkiln/apis/app-manager-api.md) · [All operations](https://skmtc.dev/softkiln/apis/app-manager-api/llms.txt) · [OpenAPI document](https://skmtc.dev/softkiln/apis/app-manager-api/revisions/de2b674a7f21?raw)
