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

# Credits

> API calls are free. Paid operations cost what they cost in the app.

Calling the API costs nothing. An operation that spends credits in the app spends the same credits through the API.

At launch one operation spends credits: starting an inbox placement test. It is charged per sender tested. The test takes about 15 minutes: see [Waiting for a long-running operation](https://docs.getcluster.ai/rate-limits.md#waiting-for-a-long-running-operation). The test takes about 15 minutes; see [Waiting for a long-running operation](https://docs.getcluster.ai/rate-limits.md#waiting-for-a-long-running-operation).

The response to a paid operation reports what was charged and what is left:

```json theme={null}
{ "id": "…", "status": "sending", "credits_charged": 40, "credits_remaining": 960 }
```

There is no separate confirmation step. Calling the endpoint accepts the current price, so check your balance first if it matters.

When the workspace does not have enough credits, the request returns `400 bad_request` and nothing is charged.

Paid operations require an `Idempotency-Key` header, so a retry never pays twice. See [Idempotency and safe retries](https://docs.getcluster.ai/idempotency.md).


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