> Documentation index: https://docs.crawlapi.dev/llms.txt
> Fetch the index before exploring further; it lists every page with its description.

# Credits

> What a page costs: three levels, chosen by the service for each page. A failure costs nothing.

## Levels and prices

| Level | Pages | Credits |
| --- | --- | --- |
| Standard | Most pages, JavaScript pages and documents included. | 1 |
| Advanced | Pages from sites that take extra infrastructure to load. | 10 |
| Premium | Pages from the few sites that take the most work to load. | 25 |

Most pages are Standard. JavaScript, documents and `format=json` cost nothing extra.

## How the level is chosen

- The service chooses the level for each page; a request has no option for it.
- Every request starts with the lightest level and moves up only when the page did not come back.
- A failure that no level can fix ends the request at once: `NOT_FOUND`, `GONE`, `UNSAFE_URL`, `HOST_NOT_FOUND`, `UNSUPPORTED_CONTENT`, `LOGIN_REQUIRED`, and a site that asks crawlers to pay.

## What is charged

| Outcome | Credits |
|---|---|
| The page | the price of its level, however many attempts it took |
| A sign-in wall with text to return | `0` |
| A page that does not exist (`NOT_FOUND`, `GONE`) | `0` |
| Any other failure | `0` |

Before a level runs, its price is held from the balance. The hold is returned whole unless that level returned the page, so a failure always settles at 0. The balance never goes negative.

## When the balance is short

The request ends `402 INSUFFICIENT_CREDITS` before that level runs. The message names the level and its price.

**error.message**

```text
"This page needs the Advanced level, which costs 10 credits; the balance is too low. Buy credits at https://app.crawlapi.dev/billing."
```

## The deadline

`timeout` bounds the whole request: every level, every redirect, the conversion and the write that settles it. Default 30000 ms, from 1000 to 60000.
