Skip to main content

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

  1. Upload a scene image - Choose the image whose existing person will be replaced
  2. Upload a person image - Provide the person you want to place into the scene
  3. Choose a resolution - Select 640px, 1k, 2k, or 4k
  4. Create the job - Submit both file paths to the API
  5. 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

Use a clear person reference - A visible face and body with even lighting gives the model more useful identity and appearance detail.
  • 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 or file_path values returned by the file upload API.
cURL

Pricing

Credit usage depends on resolution 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

Head Swap

Replace the full head while retaining the body and scene

Face Swap Photo

Replace facial features in a photo