# Credits and pricing

> Each successful call costs 0.1 credit. Failed calls and empty results are free. Buy credit packs on any plan, Free included.

Each successful call costs 0.1 credit. Failed calls and empty results cost nothing. Credits come
from your plan or from credit packs, which any account can buy, Free included.

## What a call costs

| Call                                                        | Cost       |
| ----------------------------------------------------------- | ---------- |
| A successful answer with data                               | 0.1 credit |
| An error (`401`, `402`, `404`, `409`, `422`, `429`, `5xx`)  | Free       |
| An empty result (no posts, no creators, no words to return) | Free       |
| A "still fetching" answer (`202`)                           | Free       |
| Any call with a test key (`eden_test_...`)                  | Free       |

The price is the same whether Eden already had the data or had to fetch it fresh. A transcript
Eden fetches for you is saved for good, so the next call for that link is instant.

## Free calls

Every workspace starts with 50 free API calls (worth 5 credits), once, on any plan. They
only work for API calls, and only successful answers use one. Each answer while you're on free calls
carries the header `Eden-Free-Calls-Left` with how many are left. After that, calls spend credits.

## Credit packs

Buy packs in Eden on any plan, Free included:

| Pack          | Price | Calls  |
| ------------- | ----- | ------ |
| 300 credits   | $19   | 3,000  |
| 1,000 credits | $59   | 10,000 |
| 3,000 credits | $129  | 30,000 |

Turn on **auto-refresh** and Eden buys a pack for you when your credits run low, so your app never
stops. The credits that come with a paid plan work for API calls too, so a plan makes calls cheaper.

## Which credits a call spends

A call spends the credits of the key's workspace. See [Which workspace pays](https://eden.so/developers/keys/#which-workspace-pays).

## When credits run out

The call answers `402`:

```json
{
  "ok": false,
  "status": "out-of-credits",
  "message": "This workspace is out of credits. Add credits to keep calling the Eden API.",
  "add_credits_url": "https://app.eden.so/?settings=usage"
}
```

Show `add_credits_url` to whoever owns the key. Nothing is charged for a `402`.
