Mindee passport API Alternative: Passport OCR API

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

What Mindee passport API Is

Mindee offers document-parsing APIs, including a passport parser, for developers. Choosing between it and an API comes down to where processing runs, how you pay, and which documents you need.

Where StructOCR Differs

StructOCR is a server-side REST API: you send an image and receive structured JSON for passport. There is no SDK to embed, billing is 2 credits per successful request, credits never expire, and failed requests are not billed. See the Passport API docs or try the free scanner.

Mindee passport API and StructOCR Side by Side

Passports coveredMindee passport APIYes, our passport OCR API is able to extract data from multiple languages in any alphabet from all countries.Source: Mindee passport OCR APIStructOCRPassports through /v1/passport, plus separate endpoints for national ID cards and driver licenses.
Output fieldsMindee passport APIYou can customize your data schema, to extract only fields you need and structure them on‑the‑go.Source: Mindee passport OCR APIStructOCRA fixed passport schema (passport_number, surname, given_names, dates in YYYY-MM-DD, and more); fields cannot be customized per account.
Billing unitMindee passport APIBy default, 1 processed page = 1 credit ; 1 processed page with a confidence score = 1.5 creditsSource: Mindee pricing FAQStructOCR2 credits per successful request, about $0.012 to $0.02 per document depending on the credit package ($5 for 500 credits up to $99 for 17,000). Failed requests are not billed.
Credit expiryMindee passport APICredits are valid for the entire duration of your subscription period (monthly or annual) and expire at the end of that period. Unused credits are not carried over from one period to the next.Source: Mindee pricing FAQStructOCRPrepaid credit packages with no subscription; credits never expire.
Going over your allowanceMindee passport APIBy default, we'll automatically charge your payment method for additional credits at your plan's unit rate, with a 20% overage surcharge, so you're never blocked in productionSource: Mindee pricing FAQStructOCRNo automatic charges: requests return 402 INSUFFICIENT_CREDITS when the balance runs out, until you buy another package.
Free trialMindee passport APIWe provide a 14 days free trial so you can fully test our passport OCR API — no credit card required.Source: Mindee passport OCR APIStructOCR200 free credits on sign-up (100 passport or ID scans), no credit card required.

Entries for Mindee passport API are copied word for word from its public pages, checked on . “…” marks text left out. Prices and features change, so follow each source link for current terms.

Where This Fits

  • Choose Mindee passport API when: you already use Mindee for other document types and want one vendor.
  • Choose StructOCR when: you need passports plus national ID cards and driver licenses from many countries with country-specific fields.
  • Use both when: You capture on a device with one tool and need server-side extraction or a fallback for uploaded images with the other.
Need more testing? Create a free account to get 200 free credits (equals 100 Passport scans).

Try the API in a Few Lines

A complete request takes one HTTP call with your API key.

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

PYTHON EXAMPLE
import base64
import os
import requests

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

response = requests.post(
    "https://api.structocr.com/v1/passport",
    headers={"x-api-key": os.environ["STRUCTOCR_API_KEY"]},
    json={"img": image},
    timeout=30,
)
response.raise_for_status()
data = response.json()["data"]
print("passport_number:", data.get("passport_number"))
print("surname:", data.get("surname"))
print("given_names:", data.get("given_names"))
print("date_of_expiry:", data.get("date_of_expiry"))

Technical Specs

  • •Endpoint: POST https://api.structocr.com/v1/passport
  • •Authentication: x-api-key request header
  • •Inputs: JPG, PNG, or WebP as Base64 JSON; maximum 4.5MB
  • •Price: 2 credits per successful request; failed requests are not billed
  • •Free trial: 200 free credits on sign-up, no credit card required

Key Features

  • •Deployment: StructOCR runs as a hosted API, so there is nothing to install or update on devices.
  • •Pricing model: Prepaid credits that never expire; you are billed only for successful extractions.
  • •Evaluate on your own images: Compare tools on real customer photos, including glare, blur, and unusual issuers.
  • •Quotes are dated: Every Mindee passport API entry above is copied from its own public page on 2026-10-17; check the linked page for current terms.

Response Shape

Illustrative fields returned by the StructOCR API for this document type.

{
  "success": true,
  "data": {
    "passport_number": "…",
    "surname": "…",
    "given_names": "…",
    "date_of_expiry": "…"
  }
}

Frequently Asked Questions

Is StructOCR a drop-in replacement for Mindee passport API?

It replaces the data-extraction step when you can send images to a server. It does not replace on-device capture SDKs or verification features that StructOCR does not offer.

How can I compare them fairly?

Run the same set of real, consented customer images through both and compare field accuracy, failure handling, and cost per successful result.

Is there a free trial?

Yes. New accounts receive 200 free credits with no credit card.

You May Also Like

Related tutorials, platform guides, and comparisons

Country Tutorial

US Passport OCR with Python SDK

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

Python · Passport
Country Tutorial

Kenya Passport OCR with Python SDK

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

Python · Passport
Country Tutorial

Saudi Arabia Passport OCR with Node.js SDK

Use the official StructOCR Node.js SDK with TypeScript and Express to extract structured MRZ and VIZ data from Saudi Arabia passports.

Node.js · Passport
Tutorial

Java Passport OCR API

Extract passport MRZ and VIZ data in Java. Upload an image for a free test! Our API provides structured JSON output, handling glare and blur automatically.

Java · Passport
Tutorial

MRZ Check Digit Calculation with 7-3-1 Weights

How passport and ID card MRZ check digits work, with character values, the 7-3-1 weighting, and Python code for validation.

Passport
Country Tutorial

Sweden Passport OCR with Node.js SDK

Use the official StructOCR Node.js SDK with TypeScript and Express to extract structured MRZ and VIZ data from Sweden passports.

Node.js · Passport
Country Tutorial

Sweden Passport OCR with Python SDK

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

Python · Passport
Country Tutorial

Switzerland Passport OCR with Node.js SDK

Use the official StructOCR Node.js SDK with TypeScript and Express to extract structured MRZ and VIZ data from Switzerland passports.

Node.js · Passport
Country Tutorial

Sri Lankan Passport OCR with Python SDK

Use the StructOCR Python SDK and FastAPI to extract visible identity, validity and MRZ fields from Sri Lankan passports.

Python · Passport
Tutorial

Mindee receipt API Alternative: Receipt OCR API

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

Receipt

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