Credit Costs
The credit consumption is determined by the specific API endpoint called.Credit Costs for the Parse APIs
This section explains credit use for these APIs:Documents
This pricing applies when using the parsing model. For pricing, see DPT-2 mini. The number of credits used to parse a document is based on the number of pages and the features used in parsing, as shown in the following table.| Feature | Credit Cost | Notes |
|---|---|---|
| Parsing | 3 credits/page | Each page processed includes parsing. |
| ZDR (HIPAA/BAA) | +1 credit/page | Additional charge when enabled. Available on Team and Enterprise plans. |
Spreadsheets
This pricing applies when using the parsing model. For pricing, see DPT-2 mini. The number of credits used to parse a spreadsheet is based on the number of sheets and embedded images. For supported spreadsheet formats, see Supported File Types.| Feature | Credit Cost | Notes |
|---|---|---|
| Parsing | 1 credit/sheet | Each sheet processed includes parsing. |
| Embedded images | 3 credits/image | Cost per embedded image, chart, or logo. |
| ZDR (HIPAA/BAA) | +1 credit/sheet +1 credit/image | Additional charge when enabled. Available on Team and Enterprise plans. |
- Base cost: 1 credit (sheet) + 6 credits (2 images) = 7 credits
- With ZDR enabled: 7 credits (base) + 1 credit (sheet) + 2 credits (2 images) = 10 credits
DPT-2 mini
is a lightweight model that consumes fewer credits than other parsing models. The number of credits used to parse a document is based on the number of pages and the features used in parsing, and is rounded up to the nearest tenth decimal place.| Feature | Credit Cost | Notes |
|---|---|---|
| Parsing | 1.5 credits/page | Each page processed includes parsing. |
| ZDR (HIPAA/BAA) | +1 credit/page | Additional charge when enabled. Available on Team and Enterprise plans. |
Credit Costs for the Extract API
This section explains credit use for these APIs: The number of credits used to extract data is based on both the number of input characters and output characters, and is rounded up to the nearest tenth decimal place. The same credit costs apply whether you extract data synchronously with the API or asynchronously with the ADE Extract Jobs API.| Factor | Credit Cost | Notes |
|---|---|---|
| 5,000 input characters | 1 credit | Input characters are the number of characters in the Markdown file that is passed to the API. |
| 1,000 output characters | 1 credit | Output characters are the number of characters in the extraction object returned by the API, excluding whitespace used for indentation. (Other spaces, like the spaces after colons in key-value pairs, are not removed.) |
Sample Cost for the Extract API
Input Characters Let’s say you run the API on a Markdown file with the following content. The file has 2,270 characters. Therefore, the number of input characters is 2,270.extraction object returned by the API. The response has 475 characters. Therefore, the number of output characters is 475.
| Step | Calculation | Result |
|---|---|---|
| Input credits | 2,270 ÷ 5,000 | 0.454 |
| Output credits | 475 ÷ 1,000 | 0.475 |
| Total (before rounding) | 0.454 + 0.475 | 0.929 |
| Final cost | Round up to nearest tenth decimal place | 1.0 credit |
Credit Costs for the Build Extract Schema API
This section explains credit use for this API: The number of credits used to build an extraction schema is based on both the number of input characters and output characters, and is rounded up to the nearest tenth decimal place.| Factor | Credit Cost | Notes |
|---|---|---|
| 5,000 input characters | 1 credit | Input characters are the combined total number of characters in the markdowns, markdown_urls, prompt, and schema parameters. |
| 1,000 output characters | 1 credit | Output characters are the number of characters in the schema returned by the API. |
Sample Cost for the Build Extract Schema API
Let’s say you have an existing schema built from two bank statements. You want to add and remove some fields in the schema, so you call the API to refine the schema. Input Characters The API includes the following parameters.| Parameter | Content | Characters |
|---|---|---|
markdowns | The parsed output of the first bank statement | 9,116 |
markdowns | The parsed output of the second bank statement | 7,314 |
schema | The existing extraction schema that you want to refine | 9,089 |
prompt | Instructions to add and remove specific fields | 214 |
| Total | 25,733 |
| Content | Characters |
|---|---|
| Updated schema | 8,585 |
| Step | Calculation | Result |
|---|---|---|
| Input credits | 25,733 ÷ 5,000 | 5.1466 |
| Output credits | 8,585 ÷ 1,000 | 8.585 |
| Total (before rounding) | 5.1466 + 8.585 | 13.7316 |
| Final cost | Round up to nearest tenth decimal place | 13.8 credits |
Credit Costs for the Classify API
This section explains credit use for this API: The number of credits used to classify a document is based on the number of pages, and is rounded up to the nearest tenth decimal place.| Factor | Credit Cost | Notes |
|---|---|---|
| Per page | 0.5 credits/page | Each page processed by the Classify API consumes 0.5 credits. |
Credit Costs for the Section API
This section explains credit use for this API: The number of credits used to section a document is based on both the number of input characters and output characters, and is rounded up to the nearest tenth decimal place.| Factor | Credit Cost | Notes |
|---|---|---|
| 5,000 input characters | 1 credit | Input characters are the number of characters in the Markdown file passed to the API. |
| 1,000 output characters | 1 credit | Output characters are the number of characters in the table_of_contents field returned by the API. |
Credit Costs for the Split API
This section explains credit use for this API: The number of credits used to split documents is based on the number of input characters, and is rounded up to the nearest tenth decimal place.| Factor | Credit Cost | Notes |
|---|---|---|
| 5,000 input characters | 1 credit | Input characters are the number of characters in the Markdown file that is passed to the API. |