Azure Document Intelligence Alternative: Passport OCR API

Azure Document Intelligence compared with the StructOCR REST API for passport, national id card, driver license extraction: deployment, pricing model, and when each fits.

What Azure AI Document Intelligence ID model Is

Azure AI Document Intelligence includes a prebuilt identity document model within Microsoft’s cloud. 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, national id card, driver license. 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.

Azure Document Intelligence and StructOCR Side by Side

Documents coveredAzure Document IntelligenceDocument Intelligence v4.0 2024-11-30 (GA) API for the prebuilt Identity document (ID) model now supports identification documents from all regions worldwide, including expanded coverage across North America, South America, Asia, Europe, Africa, and Oceania.Source: Identity document model (Microsoft Learn)StructOCRSeparate endpoints for passports, national ID cards, and driver licenses, each with its own JSON schema.
PriceAzure Document Intelligence"meterName":"S0 Pre-built Pages" … "retailPrice":10.0 … "unitOfMeasure":"1K"That is 10 USD per 1,000 pages. Azure’s pricing page groups ID with its other prebuilt models.Source: Azure Retail Prices API (US East)StructOCR2 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.
Free usageAzure Document IntelligenceFree - Web/Container … All … 0 - 500 pages free per monthSource: Azure AI Document Intelligence pricingStructOCR200 free credits on sign-up (100 passport or ID scans), no credit card required.
Input filesAzure Document IntelligenceFile size : The file size for analyzing documents is 500 MB for the paid (S0) tier and 4 MB for the free (F0) tier.Source: Identity document model (Microsoft Learn)StructOCRJPG, PNG, or WebP sent as Base64 JSON; maximum 4.5MB per request.

Entries for Azure Document Intelligence 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 Azure AI Document Intelligence ID model when: you run on Azure and want document processing inside your existing Microsoft contracts.
  • Choose StructOCR when: you want a single-purpose REST API with credits that never expire and no cloud account setup.
  • 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 Azure Document Intelligence 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 Azure AI Document Intelligence ID model?

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

Algeria Passport OCR with Python SDK

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

Python · Passport
Country Tutorial

Argentina Passport OCR with Python SDK

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

Python · Passport
Country Tutorial

Tajikistan 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 Tajikistan passports.

Node.js · Passport
Tutorial

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.

Passport
Country Tutorial

Belgium Passport OCR with Python SDK

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

Python · Passport
Country Tutorial

Japan Passport OCR with Python SDK

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

Python · Passport
Tutorial

C# Passport OCR API

Upload an image for a free test! High-accuracy C# Passport OCR API for parsing MRZ data. Get structured JSON output from passport images. Eliminate Tesseract errors and manual entry.

C# · 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

Go Passport OCR API

Upload an image for a free test! Extract passport data via a simple REST API in Go. Get high-accuracy, ICAO-compliant JSON output from noisy images. Eliminate manual entry errors.

Go · Passport
Tutorial

BMW VIN Location and VIN OCR API

Where to find the VIN on a BMW, what its first characters mean, and how to read it from a photo with an API and decode the model year.

VIN
Tutorial

Dynamsoft MRZ Scanner Alternative: Passport OCR API

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

Passport

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