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

# Usage and Billing

> Prepaid wallet billing in MYR, cost calculation, and usage tracking.

## Prepaid wallet

AtlasFlux uses a prepaid wallet system. You add credit (MYR) to your wallet, and each API request deducts the actual cost.

### Adding credit

Add credit via the [Billing Dashboard](https://platform.atlasflux.my/dashboard/billing) or through the API:

| Amount | Sen    |
| ------ | ------ |
| RM 10  | 1,000  |
| RM 25  | 2,500  |
| RM 50  | 5,000  |
| RM 100 | 10,000 |
| RM 250 | 25,000 |
| RM 500 | 50,000 |

### How billing works

1. **Reservation** — Before execution, AtlasFlux estimates the cost and reserves it from your balance
2. **Execution** — The request is processed by the selected model
3. **Settlement** — Actual cost is charged; excess reservation is released
4. **If request fails** — The full reservation is released back to your balance

### Cost components

| Component                 | Rate                 |
| ------------------------- | -------------------- |
| Input tokens              | RM 5.00 / 1M tokens  |
| Output tokens             | RM 25.00 / 1M tokens |
| Reasoning tokens          | RM 25.00 / 1M tokens |
| Web search (instant/fast) | RM 0.05 / search     |
| Web search (balanced)     | RM 0.06 / search     |
| Web search (deep)         | RM 0.08 / search     |
| Web search (reasoning)    | RM 0.10 / search     |
| Content extraction        | RM 0.01 / page       |

### Unit system

All internal values use **micro-MYR** (1 RM = 1,000,000 micro-MYR). The API returns costs as MYR strings for display.

### Insufficient balance

If your wallet balance is insufficient, the request returns:

```json theme={null}
{
  "error": {
    "message": "Insufficient balance.",
    "code": "insufficient_balance"
  }
}
```

### Usage tracking

Every request is logged with:

* Token counts (input, output, reasoning, cached)
* Cost in micro-MYR
* Latency
* Routing category
* Upstream model used

View usage in the [Dashboard](https://platform.atlasflux.my/dashboard/overview).
