> ## Documentation Index
> Fetch the complete documentation index at: https://docs.codex.io/llms.txt
> Use this file to discover all available pages before exploring further.

# ApiUsageUnit

> What the numbers in `ApiUsage` are measured in. Reference for the ApiUsageUnit enum in the Codex API: every value and where it is accepted.

## GraphQL

```
enum ApiUsageUnit {
  COMPUTE_UNITS
  REQUESTS
}
```

### Used By

**Returned by**

* [apiUsage](https://docs.codex.io/api-reference/queries/apiusage.md): Usage for the caller's account in the current billing period, compared with the plan quota. Free to call, and callable when the account is over its limit. Numbers are aggregated by the usage pipeline, not updated per request; see `updatedAt`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.