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

# Credits per API Function

> Estimate PDF.co API credit usage by endpoint. See how many credits each API function uses and whether the charge is per page or per API call.

Every PDF.co API endpoint consumes credits when you call it. This page lists the credit cost of each endpoint so you can estimate how many credits a workflow will use before you run it. Endpoints are charged in one of two ways, **per processed page** or **per API call**, and the tables below are grouped accordingly.

<Tip>
  For a quick estimate, use the interactive **Credit Calculator** on the [Subscriptions](https://app.pdf.co/subscriptions) page. It lets you pick an endpoint and page count and shows the credit cost instantly.
</Tip>

## How to estimate credits

| Usage type   | Formula                                              |
| ------------ | ---------------------------------------------------- |
| Per page     | `total credits = endpoint credits × pages processed` |
| Per API call | `total credits = endpoint credits × API calls`       |

For example, converting 5,000 one-page PDFs to JPG with `/v1/pdf/convert/to/jpg` uses `5,000 × 12 = 60,000 credits`.

If each document has multiple pages, multiply by the total number of pages. For example, 5,000 documents with 3 pages each is 15,000 pages, so PDF to JPG would use `15,000 × 12 = 180,000 credits`.

## Endpoints charged per page

| Endpoint                                         | API path                               | Credits (per page) |
| ------------------------------------------------ | -------------------------------------- | -----------------: |
| Parse invoices with AI                           | `/v1/ai-invoice-parser`                |                100 |
| Extract data with Document Parser template       | `/v1/pdf/documentparser`               |                 42 |
| Add text, images, and fill form fields           | `/v1/pdf/edit/add`                     |                 21 |
| Merge PDFs into one                              | `/v1/pdf/merge`                        |                  2 |
| Merge images, documents, and PDFs into a new PDF | `/v1/pdf/merge2`                       |                 35 |
| Split PDF by page numbers                        | `/v1/pdf/split`                        |                  2 |
| Split PDF by text search                         | `/v1/pdf/split2`                       |                 35 |
| Convert XLS or XLSX to PDF                       | `/v1/xls/convert/to/pdf`               |                 21 |
| Convert CSV to PDF                               | `/v1/pdf/convert/from/csv`             |                 21 |
| Convert DOC, DOCX, RTF, TXT, or XPS to PDF       | `/v1/pdf/convert/from/doc`             |                 21 |
| Convert HTML to PDF                              | `/v1/pdf/convert/from/html`            |                  9 |
| Convert images to PDF                            | `/v1/pdf/convert/from/image`           |                  9 |
| Convert URL to PDF                               | `/v1/pdf/convert/from/url`             |                  9 |
| Convert EML or MSG to PDF                        | `/v1/pdf/convert/from/email`           |                 56 |
| Convert PDF to CSV (AI-powered)                  | `/v1/pdf/convert/to/csv`               |                 28 |
| Convert PDF to HTML                              | `/v1/pdf/convert/to/html`              |                 21 |
| Convert PDF to JSON (legacy)                     | `/v1/pdf/convert/to/json`              |                 28 |
| Convert PDF to JSON (AI-powered)                 | `/v1/pdf/convert/to/json2`             |                 28 |
| Convert PDF to JSON with metadata (AI-powered)   | `/v1/pdf/convert/to/json-meta`         |                 42 |
| Convert PDF to text (AI-powered)                 | `/v1/pdf/convert/to/text`              |                 21 |
| Convert PDF to text (simple, no AI)              | `/v1/pdf/convert/to/text-simple`       |                  4 |
| Convert PDF to XLS (AI-powered)                  | `/v1/pdf/convert/to/xls`               |                 35 |
| Convert PDF to XLSX (AI-powered)                 | `/v1/pdf/convert/to/xlsx`              |                 28 |
| Convert PDF to XML (AI-powered)                  | `/v1/pdf/convert/to/xml`               |                 35 |
| Render PDF to JPG                                | `/v1/pdf/convert/to/jpg`               |                 12 |
| Render PDF to PNG                                | `/v1/pdf/convert/to/png`               |                 15 |
| Render PDF to WebP                               | `/v1/pdf/convert/to/webp`              |                 18 |
| Render PDF to TIFF                               | `/v1/pdf/convert/to/tiff`              |                 28 |
| Convert XLS or XLSX to CSV                       | `/v1/xls/convert/to/csv`               |                  9 |
| Convert XLS or XLSX to HTML                      | `/v1/xls/convert/to/html`              |                  9 |
| Convert XLS or XLSX to JSON                      | `/v1/xls/convert/to/json`              |                 15 |
| Convert XLS or XLSX to TXT                       | `/v1/xls/convert/to/txt`               |                  9 |
| Convert XLS or XLSX to XML                       | `/v1/xls/convert/to/xml`               |                 15 |
| Rotate pages                                     | `/v1/pdf/edit/rotate`                  |                  7 |
| Detect and fix page rotation                     | `/v1/pdf/edit/rotate/auto`             |                 28 |
| Remove pages from PDF                            | `/v1/pdf/edit/delete-pages`            |                  5 |
| Replace text in PDF                              | `/v1/pdf/edit/replace-text`            |                 21 |
| Replace text with an image in PDF                | `/v1/pdf/edit/replace-text-with-image` |                 77 |
| Delete text in PDF                               | `/v1/pdf/edit/delete-text`             |                 21 |
| Read barcodes from URL or file                   | `/v1/barcode/read/from/url`            |                 35 |
| Extract attachments from MSG or EML              | `/v1/email/extract-attachments`        |                 35 |
| Decode email from MSG or EML                     | `/v1/email/decode`                     |                 35 |
| Send email with attachments                      | `/v1/email/send`                       |                 21 |
| Add security protection to PDF                   | `/v1/pdf/security/add`                 |                  3 |
| Remove protection from PDF                       | `/v1/pdf/security/remove`              |                  3 |
| Extract PDF attachments                          | `/v1/pdf/attachments/extract`          |                  8 |
| Classify document based on rules                 | `/v1/pdf/classifier`                   |                 42 |
| Compress PDF to reduce file size                 | `/v2/pdf/compress`                     |                 35 |
| Read PDF file information                        | `/v1/pdf/info`                         |                  7 |
| Find text inside PDFs and images                 | `/v1/pdf/find`                         |                 35 |
| Return JSON with table information               | `/v1/pdf/find/table`                   |                 21 |
| Convert scanned PDF to text-searchable PDF       | `/v1/pdf/makesearchable`               |                 35 |
| Convert PDF to scanned (unsearchable) PDF        | `/v1/pdf/makeunsearchable`             |                 35 |

## Endpoints charged per API call

| Endpoint                                      | API path                               | Credits (per API call) |
| --------------------------------------------- | -------------------------------------- | ---------------------: |
| Generate barcode image                        | `/v1/barcode/generate`                 |                      7 |
| Generate file upload URL                      | `/v1/file/upload/get-presigned-url`    |                      7 |
| Upload a small local file as a temporary file | `/v1/file/upload`                      |                     11 |
| Upload file from URL                          | `/v1/file/upload/url`                  |                     11 |
| Upload file from Base64                       | `/v1/file/upload/base64`               |                     21 |
| Get HTML templates                            | `/v1/templates/html`                   |                      2 |
| Get Document Parser templates                 | `/v1/pdf/documentparser/templates`     |                      2 |
| Get Document Parser template by ID            | `/v1/pdf/documentparser/templates/:id` |                      2 |
| Read PDF form fields                          | `/v1/pdf/info/fields`                  |                      8 |
| Check background job status                   | `/v1/job/check`                        |                      2 |

## Notes

* [Estimated credits](/api-reference/async-and-sync-mode) are calculated for sync mode and could differ in async mode.
* Some workflows make more than one API call. For example, uploading a file separately before processing it consumes upload endpoint credits in addition to the processing endpoint credits.
* Async jobs may require status checks with `/v1/job/check`, which is listed separately in the per API call table.
* To check the remaining credits in an account, use [`/v1/account/credit/balance`](/api-reference/account-balance-info).
* You can also estimate costs with the [Credit Calculator](https://app.pdf.co/subscriptions) on the Subscriptions page.
