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/photoUpload + AI-process a photo to compliant specs
GET
/api/b2b/specsList document types, sizes & requirements per market
GET
/api/b2b/usageView API key quota & usage