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

# Costs and billing

> What a cluster costs, what share each model takes, and what Rivvr charges.

Rivvr shows three different numbers about money. They're easy to mix up:

| Number | What it is | Where you see it |
| - | - | - |
| Spending limit | The `--max-cost-per-hour` you set on a model. It's a limit you chose, not what was spent. | `rivvr model get` |
| Infrastructure cost | What the AWS GPU machines in a cluster cost, and how much of that is counted toward each model | `rivvr cost` |
| Rivvr charges | What Rivvr recorded for its own service, at the prices that applied at the time | `rivvr billing` |

## Infrastructure costs

```bash theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr cost summary --cluster development --since 24h
rivvr cost series --cluster development --since 24h --step 1h
```

`summary` gives totals for the whole time range: what the cluster cost, its cost per hour right now (burn rate), and the cost per million tokens when Rivvr has token counts. `series` shows the same numbers split by hour (or whatever `--step` you choose), so you can see when costs changed.

To see one model's share, add `--model`:

```bash theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr cost summary --cluster development --model hello --since 24h
```

If costs go up, compare the cluster's total with the model's share for the same time range. That shows you whether this model caused the increase, or something else on the cluster.

> [!WARNING]
>
> With `--model`, the field `totalClusterCostUsd` still shows the cost of the whole cluster, not just that model. If you run the command once for each model and add those totals together, you count the same money several times.

`--json` also shows how many minutes the cluster was costing money, and how much went to reading prompts versus writing answers.

## Rivvr charges

```bash theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr billing summary --since 24h
rivvr billing series --since 24h
```

Billing covers the whole selected project. The cluster you picked with `cluster use` doesn't narrow it. To see only one cluster or model, say so in the command:

```bash theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr billing summary --cluster development --model hello --since 24h
```

The summary shows how much was used, the price per unit, and the total. It uses the prices that applied when the usage happened. If `unitPriceUsd` is empty (`null`), the price may have changed during that time. Trust the recorded total. Don't calculate it yourself from usage times today's price.

See [time ranges](https://docs.rivvr.ai/guides/monitoring.md#choosing-a-time-range) for `--since`, `--from`, and `--to`.


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