DeepSwapAI Logo - Professional Face Swap Platform
Deep Swap AI
๐Ÿ”— DEVELOPERS

API Reference

Integrate professional face swap into your applications

๐Ÿš€ Quick Start

1๏ธโƒฃ

Get API Key

Sign up and get your free API key

2๏ธโƒฃ

Make Request

Send images to our REST API

3๏ธโƒฃ

Get Results

Receive swapped image URL

import requests

API_KEY = "your_api_key"
url = "https://api.deepswapai.com/v1/swap/image"

files = {
    "source_image": open("source.jpg", "rb"),
    "target_image": open("target.jpg", "rb")
}
headers = {"Authorization": f"Bearer {API_KEY}"}

response = requests.post(url, files=files, headers=headers)
print(response.json())

๐Ÿ“ก Endpoints

POST/api/v1/swap/image

Image Face Swap

Swap faces in a single image

Parameters:

NameTypeRequiredDescription
source_imagefileโœ…Source face image (JPG, PNG, WebP)
target_imagefileโœ…Target image to swap face into
qualitystringโŒOutput quality: "standard", "hd", "4k"

Response:

{ "success": true, "result_url": "https://...", "processing_time": 2.3 }
POST/api/v1/swap/video

Video Face Swap

Swap faces in video content

Parameters:

NameTypeRequiredDescription
source_imagefileโœ…Source face image
target_videofileโœ…Target video (MP4, MOV, max 100MB)
webhook_urlstringโŒURL for completion callback

Response:

{ "success": true, "job_id": "abc123", "status": "processing" }
GET/api/v1/job/{job_id}

Check Job Status

Get status of async processing job

Parameters:

NameTypeRequiredDescription
job_idstringโœ…Job ID from video swap request

Response:

{ "job_id": "abc123", "status": "completed", "result_url": "https://..." }
POST/api/v1/swap/batch

Batch Processing

Process multiple images in one request

Parameters:

NameTypeRequiredDescription
source_imagefileโœ…Source face image
target_imagesfile[]โœ…Array of target images (max 50)

Response:

{ "success": true, "results": [...], "total_processed": 50 }

๐Ÿ’ฐ API Pricing

Free

100

calls/month

Pro

10,000

calls/month - $49

Enterprise

Unlimited

Custom pricing

Get API Key