Automatic face alignment
Position and crop the face according to output dimensions, head size, and eye-line requirements.
Passport / Visa / ID · API
Turn portraits into passport, visa, and ID photos with one API. Background removal, precise cropping, and photo checks, ready to integrate.
Read the API DocsFor photo apps, travel platforms, and identity workflows.
POST /v2/makeIdPhoto
Example output
01 / Photo processing
A focused pipeline for the details that matter: face position, background, image quality, and output size.
Position and crop the face according to output dimensions, head size, and eye-line requirements.
Replace the original background while preserving natural edges around hair, clothing, and facial details.
Identify common issues such as a tilted or turned head, uneven lighting, poor brightness or sharpness, eyeglasses, or a non-neutral expression.
Receive the final image in the API response, through a temporary URL, or as a print-ready layout.
Need a format that is not listed? We can help create a custom photo specification for your use case.
Talk to us about a custom specification02 / Sample results
Compare original portraits with prepared sample outputs. Switch the document type to explore the crop and dimensions.
Want to build this into your product?Generate the same result through the API.
Built for a fast integration
Send a portrait and document specification, then receive a correctly cropped, processed, and sized photo for your product.
Authentication, parameters, issue codes, and complete response schemas are maintained in the API documentation.
POST /v2/makeIdPhoto
{
"apiKey": "••••••",
"apiSecret": "••••••",
"imageBase64": "...",
"specCode": "us-passport",
"outputFormat": "IMAGE_BASE64"
}
"issues": []03 / Document specifications
Generate passport, visa, identity, driver's license, and application photos for countries and regions around the world.
Specification data can be queried through the API, so your product can display supported document types dynamically.
View all photo specifications
04 / Use cases
From consumer-facing photo apps to high-volume organizational workflows, use the same API foundation and adapt the experience to your product.
Launch a customer-facing photo product with direct generation or a watermarked preview workflow.
Help customers prepare correctly sized photos and identify common photo-quality problems before submission.
Automate background processing, cropping, sizing, and printable photo-sheet generation at scale.
Standardize employee badge and profile photos across onboarding, directory, and access-management workflows.
Privacy-conscious by design
Identity photos are sensitive. IDPhoto.ai supports workflows designed to reduce unnecessary image retention and give businesses greater control over delivery.
Read our Data Privacy policyReceive the generated image as Base64 data without storing the photo on our service.
Use temporary AWS S3 delivery, with documented retention ranging from 2 hours to 14 days.
Use US or EU API endpoints, with other regional deployment options available on request.
Data is encrypted during transmission. Our documented practices address GDPR and CCPA requirements.
More from IDPhoto.ai
Use focused APIs and services alongside the complete ID photo workflow.
Process large groups of portraits for organizations, events, schools, or employee directories.
Explore batch generation →Generate UK passport photos and supported digital photo-code workflows through an API.
Explore UK photo codes →Use background removal independently when you do not need the complete ID photo workflow.
Explore background removal →Improve image clarity and visual quality before using photos in professional workflows.
Explore photo enhancement →Frequently asked questions
Still have a question or a custom requirement?
Contact support@idphoto.aiIDPhoto.ai supports more than 150 photo specifications, including passport, visa, ID, driver's license, and application-photo formats from countries around the world. You can query the available specification codes through the API.
Yes. If the format you need is not currently available, contact us with the required dimensions, crop, background, and validation rules. We can review the specification for your use case.
Create or access your account in the IDPhoto.ai Dashboard. Your API credentials and account usage are managed separately from this website.
Yes. Create an account in the Dashboard to check the currently available trial access and account quota.
You can request Base64 output for a workflow that stores no images on our service. URL-based output uses temporary AWS S3 storage, with documented retention ranging from 2 hours to 14 days.
For the best result, provide a clear, front-facing portrait with the face and upper body visible. Avoid strong shadows, blur, extreme head angles, or obstructions around the face.
The API formats photos according to the selected specification and reports detectable quality issues. Final acceptance is determined by the relevant government agency, application platform, or reviewing authority.
US and EU API endpoints are currently documented. Other regional deployment options may be available for enterprise requirements.
Pricing depends on usage volume and workflow requirements. Start with a trial account in the Dashboard or contact us for volume pricing and custom deployment needs.
Start building
Create your API credentials in the Dashboard, then follow the documentation to generate your first photo.
Need help with volume pricing, custom specifications, or regional deployment? Contact support@idphoto.ai