Skip to content

Passport and Visa Photo API ​

Turn an ordinary portrait into a properly sized passport, visa, or ID photo through one API integration.

For details on how we process personal data, see Data Privacy.

What the API does ​

Provide:

  • one portrait photo; and
  • a specCode for the required document, such as a passport or visa photo.

The API processes the portrait for the selected specification and returns the generated ID photo together with any detected photo-quality issues.

Choose an integration flow ​

Direct result ​

Use POST /v2/makeIdPhoto when your server should receive the final photo in one request.

text
Upload a portrait + choose a specCode → Receive the final ID photo

Preview before delivery ​

Use the watermark flow when your application needs to show a preview before releasing the final photo.

text
Create a watermarked preview → User confirms → Retrieve the final photo

Start integrating ​

POST/v2/makeIdPhoto
Read the API reference

The API reference explains authentication, regional endpoints, request fields, response fields, specification lookup, watermarked previews, issue codes, and working examples.

A portrait transformed into a watermarked passport photo preview
Illustrative input and watermarked preview.

Keep your API key and secret on your server. Do not embed them in browser code, mobile applications, or public repositories.

For questions or customized requirements, contact mark@idphoto.ai.