Get Started
Understanding how credits are calculated across Anesya document workflows.
Credits are the billing unit used for document processing.
The current public credit rates are listed below.
Important rule:
- credits are always calculated from the number of pages in the document
Current public rates:
| Operation | Credits per page |
|---|---|
| Parsing | 2 |
| Extract | 3 |
| Split | 2 |
| Classify | 1 |
The formula is simple:
credits = number_of_pages_in_document × credit_rate_for_operationExamples:
- a 1-page parsing costs
1 × 2 = 2credits - a 3-page extract costs
3 × 3 = 9credits - a 10-page split costs
10 × 2 = 20credits - a 5-page classify costs
5 × 1 = 5credits
The documents resource is used to upload, store, list, retrieve, and download source files.
Document upload and storage do not consume credits.
Credits apply to processing operations such as parsing, extract, split, and classify, not to document storage itself.
Rate:
2credits per page
Formula:
parsing_credits = page_count × 2Examples:
- 2 pages ->
4credits - 8 pages ->
16credits - 25 pages ->
50credits
Rate:
3credits per page
Formula:
extract_credits = page_count × 3Examples:
- 2 pages ->
6credits - 8 pages ->
24credits - 25 pages ->
75credits
Rate:
2credits per page
Formula:
split_credits = page_count × 2Rate:
1credit per page
Formula:
classify_credits = page_count × 1Here are common examples for business documents.
| Document size | Parsing | Extract | Split | Classify |
|---|---|---|---|---|
| 1 page | 2 | 3 | 2 | 1 |
| 3 pages | 6 | 9 | 6 | 3 |
| 5 pages | 10 | 15 | 10 | 5 |
| 10 pages | 20 | 30 | 20 | 10 |
| 20 pages | 40 | 60 | 40 | 20 |
To estimate usage, determine:
- the number of pages in the document
- the operation you are going to run
- the matching public rate
Then apply the formula.
Example:
- document has
7pages - operation is
extract - extract rate is
3
So:
7 × 3 = 21 creditsSince credits scale directly with page count, the most effective optimization is to process fewer pages.
If you only need part of a PDF, trim it during document upload with:
pdf_page_startpdf_page_end
See Documents.
If you only need classification, use classify instead of extract.
If you only need OCR and markdown, use parsing instead of extract.
If you only need structured output, use extract directly.
If a file will be reused, upload it once, keep the document ID, and decide carefully which downstream operation is actually needed each time.
A shorter stored document means:
- lower parsing credits
- lower extract credits
- lower split credits
- lower classify credits
API responses can expose usage information on processing resources.
Example shape:
{
"usage": {
"num_pages": 3,
"credits": 9
}
}When usage is returned, it lets you compare:
- the page count that was processed
- the credits charged for that operation
Yes. Credit usage is calculated from the number of document pages.
No. Credits apply to processing operations such as parsing, extract, split, and classify.
Extract, at 3 credits per page.
Classify, at 1 credit per page.