Appearance
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
specCodefor 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 photoPreview 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 photoStart integrating
POST
Read the API reference/v2/makeIdPhotoThe API reference explains authentication, regional endpoints, request fields, response fields, specification lookup, watermarked previews, issue codes, and working examples.

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.
