Developer API

Photo Processing API for Developers

Integrate professional background removal, AI face enhancement, EXIF handling, and watermarks into your application with our simple REST API.

Quick Start
curl -X POST "https://visapics.org/api/v1/photo/remove-background" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "photo=@portrait.jpg" \
  -F "background_color=white"
API Endpoints

Powerful Endpoints

Everything you need for professional photo processing

Background Removal

AI-powered background removal with support for white, transparent, or custom colors including hex values.

$0.10/request ~2s

AI Face Enhancement

GFPGAN-powered face enhancement to improve quality, fix blemishes, and enhance facial details.

$0.15/request ~3s

Custom Watermarks

Add text or image watermarks with customizable position, opacity, rotation, and tile patterns.

$0.05/request ~1s

EXIF Metadata

Extract complete EXIF data including camera info, GPS coordinates, and exposure settings.

FREE <1s

Privacy Protection

Strip all EXIF metadata for privacy while optionally preserving image orientation.

FREE <1s

Visa Photo Processing

Complete visa/passport photo processing with 952+ document specifications from 172 countries.

$0.20-0.50 ~5s
Volume Discounts

Simple Pay-As-You-Go Pricing

Deposit funds to your API balance. Get automatic discounts with higher deposits.

Base

$0.50

per photo

Any deposit amount

20% OFF

Starter

$0.40

per photo

$50+ deposit

40% OFF

Professional

$0.30

per photo

$100+ deposit

60% OFF

Enterprise

$0.20

per photo

$500+ deposit

Utility endpoints priced as percentage of photo rate: BG Removal (20%), Enhancement (30%), Watermark (10%)

EXIF endpoints are always free

API Cookbook

Complete Code Examples

Ready-to-use examples in multiple languages

Background Removal

Remove background and replace with white, transparent, or custom color.

POST /api/v1/photo/remove-background
# White background
curl -X POST "https://visapics.org/api/v1/photo/remove-background" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "photo=@portrait.jpg" \
  -F "background_color=white"

# Transparent background (PNG output)
curl -X POST "https://visapics.org/api/v1/photo/remove-background" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "photo=@portrait.jpg" \
  -F "background_color=transparent"

# Custom hex color
curl -X POST "https://visapics.org/api/v1/photo/remove-background" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "photo=@portrait.jpg" \
  -F "background_color=#87CEEB"

AI Face Enhancement

Enhance facial features and improve photo quality using GFPGAN.

POST /api/v1/photo/enhance
curl -X POST "https://visapics.org/api/v1/photo/enhance" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "photo=@portrait.jpg" \
  -F "output_format=url"

Custom Watermarks

Add text or image watermarks with full customization options.

POST /api/v1/photo/watermark
# Text watermark in corner
curl -X POST "https://visapics.org/api/v1/photo/watermark" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "photo=@image.jpg" \
  -F "watermark_type=text" \
  -F "text=© MyCompany 2025" \
  -F "position=bottom-right" \
  -F "font_size=24" \
  -F "color=#FFFFFF" \
  -F "opacity=0.7"

# Tile watermark pattern
curl -X POST "https://visapics.org/api/v1/photo/watermark" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "photo=@image.jpg" \
  -F "watermark_type=text" \
  -F "text=SAMPLE" \
  -F "position=tile" \
  -F "opacity=0.3"

# Image watermark (logo)
curl -X POST "https://visapics.org/api/v1/photo/watermark" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "photo=@image.jpg" \
  -F "watermark_type=image" \
  -F "watermark_image=@logo.png" \
  -F "position=bottom-right" \
  -F "opacity=0.5"

EXIF Metadata (Free)

Read or remove EXIF metadata from photos.

EXIF Endpoints
# Read EXIF data
curl -X POST "https://visapics.org/api/v1/photo/exif" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "photo=@image.jpg"

# Remove EXIF data (strip metadata for privacy)
curl -X POST "https://visapics.org/api/v1/photo/exif/remove" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "photo=@image.jpg" \
  -F "keep_orientation=true"

Full Visa Photo Processing

Complete visa/passport photo processing with automatic cropping, background removal, and compliance checking.

POST /api/v1/photo/process
# US Passport Photo
curl -X POST "https://visapics.org/api/v1/photo/process" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "photo=@selfie.jpg" \
  -F "country_code=US" \
  -F "document_type=Passport" \
  -F "remove_background=true" \
  -F "enhance_photo=true"

# UK Passport (Digital Code)
curl -X POST "https://visapics.org/api/v1/photo/process" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "photo=@selfie.jpg" \
  -F "country_code=GB" \
  -F "document_type=Passport"

# Schengen Visa
curl -X POST "https://visapics.org/api/v1/photo/process" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "photo=@selfie.jpg" \
  -F "country_code=EU" \
  -F "document_type=Schengen Visa"
Get Started in Minutes

Ready to Build?

Get your free API key and start integrating in minutes

1

Create Account

Sign up for free and access your developer dashboard

2

Get API Key

Generate your API key from the dashboard

3

Start Building

Integrate the API using our cookbook examples

Frequently Asked Questions

How do I get an API key?

Create a free account at visapics.org, then go to your Account Dashboard > API Keys to generate a new key. You can create multiple keys with different names for different applications.

What's the rate limit?

Default rate limit is 1000 requests per hour per API key. Need higher limits? Contact us for enterprise plans with custom rate limits.

How does billing work?

Pay-as-you-go model. Deposit funds to your API balance, then each request deducts from your balance. Higher deposits unlock lower per-request rates. EXIF endpoints are always free.

What image formats are supported?

We support JPEG and PNG input files up to 10MB. Output is JPEG by default, or PNG for transparent backgrounds.

Is there a sandbox/test environment?

We recommend using the EXIF endpoints (which are free) to test your integration. For paid endpoints, costs start at just $0.05 per request.

AI