Skip to main content

Identity

Core identity primitives: face swap, identity lock, identity replace, instamodel, virtual try-on, and voice clone. Pair any of these with an identity profile for consistent results.

Every endpoint returns a job_id and has a matching GET …/status/{job_id} route, see Jobs. output_format (webp, jpeg, or png), callback_url (a webhook), and server_id (Enterprise pod pin) are accepted by every image endpoint below.

Faceswap

POST /identity/faceswap/image/v1, swap the source face onto the target image.

curl https://api.imagepipeline.io/identity/faceswap/image/v1 \
-H "X-API-Key: $IMAGEPIPELINE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"target": "https://.../scene.webp",
"source": "https://.../face.webp",
"upscale": 1.5,
"restore_weight": 0.5
}'
FieldTypeDefaultNotes
targetstring,Required. Public URL of the target image (body/scene).
sourcestring,Required. Public URL of the source face to swap in.
upscalenumber1.5Output upscale factor (1.0 to 4.0).
restore_weightnumber0.5Face restoration strength (0.0 to 1.0). Higher = sharper.
palettestring[],Brand colours as hex codes, blended into the output.
output_formatstringwebpwebp, jpeg, or png.
profile_idstring,Apply an identity profile.
callback_urlstring,Webhook URL on completion.
server_idstring,Enterprise: pin to a dedicated pod.

Identity Lock

POST /identity/lock/image/v1, generate a new image that preserves a person's identity from input_image, guided by prompt.

{ "input_image": "https://.../face.webp", "prompt": "as a firefighter, photoreal" }
FieldTypeDefaultNotes
promptstring,Required. Describe the desired scene or appearance.
input_imagestring,Public URL of the source image whose identity is locked.
width / heightinteger1024Output dimensions (max 2048).
negative_promptstring,Negative prompt; activates classifier-free guidance when set.
num_inference_stepsintegermodelDiffusion steps (1 to 100). Higher = better, slower.
guidance_scalenumbermodelClassifier-free guidance scale (1.0 to 20.0).
seedinteger-1-1 randomizes; set a value for reproducibility.
palettestring[],Brand colours as hex codes.
output_formatstringwebpwebp, jpeg, or png.
profile_idstring,Apply an identity profile.
callback_urlstring,Webhook URL on completion.
server_idstring,Enterprise: pin to a dedicated pod.

Identity Replace

POST /identity/replace/image/v1, replace the identity in an existing image while keeping pose and composition.

{ "input_image": "https://.../photo.webp", "prompt": "caucasian woman with green eyes" }
FieldTypeDefaultNotes
input_imagestring,Required. Public URL of the image to edit.
promptstring,Required. Describe the new person.
use_segmentationbooleantrueWhen true, only skin and hair are edited; clothing is kept.
tone_correctionnumber,Colour correction strength after editing (0.0 to 1.0).
seedinteger-1-1 randomizes; set a value for reproducibility.
palettestring[],Brand colours as hex codes.
output_formatstringwebpwebp, jpeg, or png.
profile_idstring,Apply an identity profile.
callback_urlstring,Webhook URL on completion.

Instamodel

POST /creator/instamodel/image/v1, generate social-ready model shots from a single input_face and a prompt.

{ "input_face": "https://.../face.webp", "prompt": "streetwear lookbook, urban backdrop" }
FieldTypeDefaultNotes
promptstring,Required. Describe the scene, outfit, or style.
input_facestring,Required. Public URL of the input face image.
width / heightinteger768 / 1024Output dimensions (max 2048).
negative_promptstring,Negative prompt applied to the generation.
seedinteger,Seed for reproducibility (omit for random).
palettestring[],Brand colours as hex codes.
output_formatstringwebpwebp, jpeg, or png.
profile_idstring,Apply an identity profile.
callback_urlstring,Webhook URL on completion.
server_idstring,Enterprise: pin to a dedicated pod.

Virtual Try-On

POST /creator/tryon/image/v1, dress a person_image in a clothing_image.

{
"person_image": "https://.../person.webp",
"clothing_image": "https://.../jacket.webp",
"gender": "woman",
"clothing_type": "denim jacket"
}
Garment flat lay
Input, garment flat lay
On-model render
Output, on-model render
FieldTypeDefaultNotes
person_imagestring,Required. Public URL of the person/model image.
clothing_imagestring,Required. Public URL of the clothing item.
genderstring,Required. man or woman.
clothing_typestring,Required. Type of clothing; be specific for best results.
width / heightintegerperson imageOutput dimensions (256 to 2048).
use_segmentationbooleanfalseWhen false, edits the full image and colour-corrects.
tone_correctionnumber,Colour correction strength (0.0 to 1.0).
seedinteger-1-1 randomizes; set a value for reproducibility.
output_formatstringwebpwebp, jpeg, or png.
profile_idstring,Apply an identity profile.
callback_urlstring,Webhook URL on completion.

Voice Clone

POST /identity/voice/clone/v1, clone a voice from reference_voice_url and speak text. Outputs are watermarked by default.

{ "text": "Hello from my cloned voice.", "reference_voice_url": "https://.../sample.wav" }
FieldTypeDefaultNotes
textstring,Required. Text to synthesise with the cloned voice.
reference_voice_urlstring,Required. Public URL of the reference voice audio (WAV).
language_idstringenLanguage code, e.g. en, zh, ja, ko, he.
max_new_tokensinteger256Maximum tokens to generate.
exaggerationnumber0.5Expressiveness (0.0 neutral to 1.0 maximum).
apply_watermarkbooleantrueEmbed an inaudible audio watermark (recommended).
callback_urlstring,Webhook URL on completion.
server_idstring,Enterprise: pin to a dedicated pod.