A developer at his desk, code on one half of the monitor and a checked passport photo on the other

Self-service API

Passport & visa photo API.

Crop, replace backgrounds and check photos against published document specifications in one request. Get the output image, the check results and an advisory quality score.

Key available after email verification. Prepaid processing from $20. No card to sign up.
166 countries
555+ document types
~20 seconds
typical processing time
One call
from a phone photo to a checked output

How it works

Get your key. Send your first request.

Self-service from sign-up to production.

  1. 01

    Sign up

    An account after email verification. No card, no contract.

  2. 02

    Get your key

    It is on the dashboard as soon as your email is verified.

  3. 03

    Add credits

    Buy a pack when you are ready to go live, from $20. One credit per photo processed; processing failures are not charged.

  4. 04

    Build

    Integrate with the reference docs and code examples.

// Server-side JavaScript — never send your key from a browser
const response = await fetch(
  'https://api.snap2pass.com/process-photo',
  {
    method: 'POST',
    headers: {
      'Authorization': 'Bearer YOUR_API_KEY',
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({
      photo: base64Image,
      document_id: 'us-passport'
    })
  }
);

const result = await response.json();
// {
//   success: true,
//   request_id: "uuid-v4-request-id",
//   image_urls: {
//     output: "https://images.snap2pass.com/..."
//   },
//   validation: {
//     passed: true,
//     score: 94
//   }
// }

Code examples on GitHub →

Features

Everything you need, built in.

The same engine behind Snap2Pass and the agency workspace, one call away.

Processing in about 20 seconds
A phone photo becomes a passport or visa photo: cropped, background replaced, sized.
Checks against the specification
Every output is measured against the published specification and returns what passed, what failed and an advisory quality score.
Background replacement
Removal and replacement with the colour each document requires.
Document-specific cropping
Face detection and cropping to the head size and position each document requires.
Exact output
Required dimensions, DPI and file-size limit for the destination, in one file.
A plain REST API
Reference documentation and code examples in several languages.

Checks and quality scores do not guarantee acceptance by any passport office or consulate.

Pricing

Pay per API call. No subscription.

One credit pays for one API call processed. Credits never expire. An API call that fails to process is not charged.

How billing works
Credits pay for processing, not acceptance. An API call that processes but fails a check is still charged, and you get the reasons. Sending the photo again is a new call and uses another credit.

Every pack includes all processing features, instant activation and email support. Need more than 500 API calls? sales@snap2pass.com

Not writing code?

Agencies and photo studios get the same engine as a ready workspace: cases, a branded link for each client, review and export.

See the agency workspace →

Build your photo workflow with Snap2Pass.

Your API key is on the dashboard after email verification. No card required to start.