Search: $1 per 1,000 queries. **Parse:** $7.50 per 1,000 pages. Extract: $20 per 1,000 pages. $5 of free credit to start, then pay as you go, billed monthly.Ledger prices every API product per unit, down to fractions of a cent, gives each signup free credit before a card, and bills usage monthly. Build it from one feature per product and a $0 pay-as-you-go plan. Each request tracks its unit count as
quantity. Choose the feature type by how you want the bill to read:
With credits features
This uses the same scale as the dollar balance: **1 credit = $0.0001**, so $1 is 10,000 credits and a price per 1,000 units becomes a whole number of credits per unit. Each product’screditCost is its price per 1,000 units, in dollars, times 10:
quantity is the page or query count; the use costs quantity × creditCost.
Response
availableCredits / 10_000, here $4.20.
When the starting credit runs out, attach pay as you go. check answers reason: "no_plan"; attach payg, and Checkout collects a card for a $0 subscription ([Checkout and attach](/billing/checkout-and-attach)). From then on every unit past the leftover credit is overage, and the renewal invoice has one line: "Pay as you go – overage, 420,000 credits", $42.00.
With metered features
Each product has its own allowance and its own overage price.overageUnitAmountCents is whole cents, so a sub-cent price bills per batch with overageBillingUnits: parse at $7.50 per 1,000 is 3 cents per 4 pages, and extract at $20 per 1,000 is 2 cents a page. The free starting credit is a monthly allowance per product: 1,000 parsed and 250 extracted pages.
payg at signup: the allowance comes with the plan, so the card comes first. The check and track calls are the same as above, with quantity as the page count. The track answers with the product’s balance:
Response
Rules
quantityis a whole number of units, from 1 to 2,147,483,647 on one track.- One use is at most 2,147,483,647 credits ($214,748.36 at this scale), the same 32-bit limit as on the dollar balance:
quantity × creditCostmust fit, so oneextracttrack covers up to 10,737,418 pages. AcreditCostand the overage cap fit the same limit. - The scale sets the smallest price. At $0.0001 a credit, the cheapest product is 1 credit a unit, $0.10 per 1,000. For cheaper products, pick a smaller credit before you publish.
- Overage rounds once per period. The period’s overage credits are billed at 1 cent per 100, rounded up once: at most 1 cent over the exact total. Metered batches round the same way, per product.
- Caps and overage. Overage has the monthly cap, which cap applies on a metered-only plan, and how overage reaches the invoice.
- Starting credit outlives the plan change. A balance adjustment stands apart from plan grants, so the customer keeps it when
paygis attached. AddexpiresAtto make it lapse. - A feature keeps its type. Choose credits or metered before you publish.
Related
- Free credits, then pay as you go: the signup-credit flow in full.
- Prepaid dollar balance: the same scale, priced at cost.
- Pay as you go: the $0 plan.
- Metered allowances and Credits: the two feature types.