Overview
Body Swap places the person from one image into another scene. The API combines a person reference with a target scene and supports output resolutions from 640px through 4k.How It Works
- Upload a scene image - Choose the image whose existing person will be replaced
- Upload a person image - Provide the person you want to place into the scene
- Choose a resolution - Select 640px, 1k, 2k, or 4k
- Create the job - Submit both file paths to the API
- Download the result - Poll until complete and retrieve the generated image
Use Cases
- Campaign concepts - Test different people in finished layouts before a shoot
- Character concepts - Place a subject into fantasy, editorial, or themed scenes
- Content variants - Generate multiple versions of one composition
- Social content - Create personalized scene and meme edits
- Previsualization - Compare talent, wardrobe, or creative direction quickly
Best Practices
- Choose an unobstructed scene subject - Avoid heavy overlap from hands, objects, or other people
- Match pose and camera angle - Similar framing helps the replacement fit naturally
- Use high-quality inputs - Compression, blur, and tiny subjects reduce output detail
- Match lighting - Similar light direction and intensity improve scene integration
- Test at lower resolution - Confirm the composition before requesting a larger output
Code Example
Input files must be direct URLs orfile_path values returned by the file upload API.
cURL
Pricing
Credit usage depends onresolution and starts at 50 credits for 640px. The response reports the amount in credits_charged. See Billing for current rates.
API Reference
Body Swap API Reference
View all request fields, resolutions, and response formats
Related Tools
Head Swap
Replace the full head while retaining the body and scene
Face Swap Photo
Replace facial features in a photo