# Usage and Billing

Query usage, account status, and billing information for a date range.

## Query usage

```bash
curl "https://kaienapi.com/v1/dashboard/billing/usage?start_date=2026-05-01&end_date=2026-05-06" \\
  -H "Authorization: Bearer <YOUR_API_KEY>"
```

Use the `YYYY-MM-DD` format for `start_date` and `end_date`.

## Check balance

Use the account endpoints in the API Reference for the current balance and subscription fields. Preserve the precision returned by the API so small image, audio, and music charges are not rounded away.

## Reconciliation practices

- Save the request time, model, input size, output size, and response ID.
- Save task IDs for image and music jobs so users can resume after refreshing the page.
- Show the actual failure reason for failed tasks instead of displaying only a generic error.
