# Billing

> goodapi uses prepaid credit and charges for the tokens you actually use. How to top up, how pricing works, where to see each charge, and what a negative balance means.

Top up first, then make requests; each request is charged against your balance based on actual usage.

## Topping up

Sign in to the console and top up on the [Wallet](https://api.goodapi.tech/wallet) page. All keys on the account share this balance.

## How pricing works

- You pay for the tokens you actually use, priced in **US dollars per million tokens**.
- Input, output and cache reads are priced separately.
- Some models have peak / off-peak prices, or a separate long-context tier.
- Prices already include the group of each model; see [Models and pricing](/en/docs/models).

Example: a model costs $1 / 1M input and $4 / 1M output. A request with 2,000 input tokens and 500 output tokens costs 2,000 × $1 / 1,000,000 + 500 × $4 / 1,000,000 = $0.004.

## Seeing each charge

The [Usage Logs](https://api.goodapi.tech/usage-logs) page in the console lists the time, key, model, token counts and charge for every request, and you can filter by key, model and time.

Your code can also query a key's balance and request history with the key itself; see [Balance and usage](/en/docs/usage).

## Quota units

The console shows amounts in US dollars. Some query endpoints return "quota" units instead. The conversion is:

**500,000 quota = 1 US dollar**

For example, `total_used: 15000` from `/api/usage/token` means $0.03 has been used.

## Negative balance

Charges such as the content violation fee can take your balance below zero. While the balance is negative you can't make requests; access resumes automatically once you top up enough to cover it. For the violation fee rules, see [Violations and restrictions](/en/docs/policy-violations).
