# Pricing and billing

> Hapti bills only tasks that succeed, per 10 actions of the agent, from a prepaid credit. Test mode is free. How credit, pauses and refunds work.

## You pay for success

A live task is billed only when it succeeds. Failed, blocked, incomplete and cancelled tasks cost nothing, and test mode is always free.

| | Price |
| --- | --- |
| A successful live task | $0.10 per 10 actions of the agent |
| Time spent waiting for an answer | Free |
| Residential proxy, when you ask for it | $2.90 per GB, only when the task succeeds |

A task of 1 to 10 actions costs $0.10, 11 to 20 actions twice that, and so on. The price is in `price_cents` once the task succeeds. Use [`POST /v1/tasks/estimate`](/docs/api-tasks#estimate-a-task) to know the likely price first, and `max_price_cents` to set a ceiling.

## Credit

Live tasks are paid from a prepaid credit, in the console under **Billing**. Add a card to receive a first credit offered once, top up any amount, or turn on automatic top-up with a monthly cap.

When the credit is not enough for a new live task, the task is created `paused` and starts by itself as soon as credit is added. A paused task that never gets credit stops after 7 days, unbilled. Set `"on_insufficient_credit": "refuse"` to get a `402` instead.

## Disputes

If a billed task did not do what it should have, [open a dispute](/docs/api-tasks#dispute-a-billed-task). The proof of the task is checked and the price is refunded to your credit when the claim is right.

## Usage

[`GET /v1/usage`](/docs/api-account#usage-by-day) gives what was billed per day, and `GET /v1/usage/users` per person you act for.
