HaaFoto
Sign inSign up

Passport Photo API

Compliant passport, visa & ID photos in a single API call.

202 countries · 375 document types · AI validation against official government specs · SHA-256 key auth · Redis rate limiting.

Quick start

curl -X POST https://haafoto.com/api/b2b/photo \
  -H "x-api-key: YOUR_API_KEY" \
  -F "file=@photo.jpg" \
  -F "country=us"

Returns a compliance-validated, background-removed, correctly-cropped photo as JPEG.

Pricing tiers

Free

$0

10 req/min · Testing & small projects

  • All endpoints
  • 202 countries
  • Community support

Pro

Custom

100 req/min · Production apps

  • Everything in Free
  • Priority processing
  • Email support

Enterprise

Custom

1,000 req/min · High-volume, SLA

  • Everything in Pro
  • Dedicated support
  • Custom SLA

Endpoints

POST
/api/b2b/photo

Upload + AI-process a photo to compliant specs

GET
/api/b2b/specs

List document types, sizes & requirements per market

GET
/api/b2b/usage

View API key quota & usage

Get an API key

Email business@haafoto.com to request a key, or start with the free tier.

Contact us