Invoice OCR API Pricing and Cost per Scan

What invoice OCR costs with StructOCR: 3 credits per successful scan, prepaid credits that never expire, and no charge for failed requests.

What Drives OCR Cost

OCR pricing differs by whether failed requests are billed, whether credits expire, minimum monthly commitments, and the price per document type. Those terms matter more than the headline rate.

How StructOCR Prices It

Each successful invoice request costs 3 credits. Credits are prepaid from $5, never expire, and are only deducted for successful (200 OK) responses. See the full pricing page and start with 200 free credits.

Where This Fits

  • Pilot: 200 free credits cover a realistic test on your own images before you pay anything.
  • Steady volume: Larger packages lower the cost per credit, and unused credits carry over indefinitely.
  • Enterprise: Contact sales for custom volume pricing and support terms.
Need more testing? Create a free account to get 200 free credits (equals 66 Invoice scans).

Track Cost in Your Code

Each successful response consumes a fixed number of credits, so cost per document is predictable.

Prerequisite: Python 3.9+, `pip install requests`, and a STRUCTOCR_API_KEY

PYTHON EXAMPLE
import base64
import os
import requests

with open("invoice.jpg", "rb") as image_file:
    image = base64.b64encode(image_file.read()).decode("ascii")

response = requests.post(
    "https://api.structocr.com/v1/invoice",
    headers={"x-api-key": os.environ["STRUCTOCR_API_KEY"]},
    json={"img": image},
    timeout=30,
)
response.raise_for_status()
data = response.json()["data"]
print("invoice_number:", data.get("invoice_number"))
print("date:", data.get("date"))
print("due_date:", data.get("due_date"))
print("currency:", data.get("currency"))

Technical Specs

  • •Endpoint: POST https://api.structocr.com/v1/invoice
  • •Authentication: x-api-key request header
  • •Inputs: JPG, PNG, or WebP as Base64 JSON; maximum 4.5MB
  • •Price: 3 credits per successful request; failed requests are not billed
  • •Free trial: 200 free credits on sign-up, no credit card required
  • •Mini ($5): about $0.0300 per invoice
  • •Starter ($15): about $0.0250 per invoice
  • •Business ($29): about $0.0218 per invoice
  • •Pro ($99): about $0.0175 per invoice

Key Features

  • •No subscription: Buy credit packages when you need them.
  • •No expiry: Purchased credits are yours until used.
  • •Failures are free: Errors, timeouts, and unreadable images are not billed.
  • •Crypto bonus: Paying with USDT or USDC adds a 10% credit bonus.

Billable Response

Only a successful response like this consumes credits. Field values are illustrative.

{
  "success": true,
  "data": {
    "invoice_number": "…",
    "date": "…",
    "due_date": "…",
    "currency": "…"
  }
}

Frequently Asked Questions

How much does one invoice scan cost?

3 credits, which is roughly $0.0175 on the $99 package and $0.03 on the $5 package.

Am I charged when OCR fails?

No. Only successful extractions are billed.

Do credits expire?

No. Purchased credits never expire.

You May Also Like

Related tutorials, platform guides, and comparisons

Tutorial

C# Invoice OCR API

Upload an image for a free test! Integrate a high-accuracy Invoice OCR API into your C# application. Get structured JSON output for line items, totals, and merchant data. Eliminate Tesseract errors.

C# · Invoice
Tutorial

Rossum Alternative: Invoice OCR API

Rossum compared with the StructOCR REST API for invoice extraction: deployment, pricing model, and when each fits.

Invoice
Tutorial

Nanonets Alternative: Invoice OCR API

Nanonets compared with the StructOCR REST API for invoice extraction: deployment, pricing model, and when each fits.

Invoice
Tutorial

PHP Invoice Line Item OCR API

Struggling with manual invoice data entry? Our PHP invoice line item OCR API processes documents in <3s, outputting structured JSON. Upload an image for a free test! SOC2 compliant & AES-256 encrypted.

PHP · Invoice
Tutorial

Java OCR Invoice API

Upload an invoice to try our live demo. High-accuracy Java OCR invoice API for accounts payable. Extract line items directly into JSON.

Java · Invoice
Country Tutorial

Malaysia MyKad OCR Python SDK

Python Tutorial: Automate KYC in Malaysia. Extract data from the Malaysian Identity Card (MyKad) using StructOCR Python SDK. Supports NRIC extraction and multi-line address parsing.

Python · mykad
Country Tutorial

Morocco CNIE OCR Python SDK

Python Tutorial: Automate KYC in Morocco. Extract data from CNIE using StructOCR Python SDK. Supports native text and MRZ extraction.

Python · cnie
Country Tutorial

Morocco Passport OCR with Python SDK

Use the official StructOCR Python SDK and FastAPI to extract structured MRZ and VIZ data from Morocco passports with a server-side integration.

Python · Passport
Country Tutorial

Mexico INE OCR API & Python SDK

Python Tutorial: Automate KYC in Mexico. Extract data from INE cards using our SDK. Upload your ID image to test the OCR engine live—no signup required. Supports native text and MRZ.

Python · ine credencial
Tutorial

Iowa Driver License & ID Card PDF417 API

Decode the PDF417 barcode on Iowa driver licenses and state ID cards into AAMVA JSON, with document_kind to tell licenses from ID cards.

Driver License

Technical Comparisons & Integrations

Explore platform integrations and competitive analysis

From tutorial to production in 5 minutes.

You've seen the code. Now get your API key, grab your 200 free credits, and see it work with your own images. No credit card required.

Instant Access Cancel Anytime No Credit Card