More modelsWavespeed aiImage face swap
Generate image with wavespeed-ai/image-face-swap
Generates an image using the wavespeed-ai/image-face-swap model.
AuthorizationBearer <token>
API key is required to authorize requests. Obtain a key from your AtlasCloud dashboard.
In: header
modelstring
model name
imagestring
The URL of the image that contains the face to be replaced.
face_imagestring
The URL of the face image as reference.
target_index?integer
0 = largest face. To switch to another target face - switch to index 1, e.t.c.
Default
0
Range
0 <= value <= 10
output_format?string
The format of the output image.
Value in
"jpeg" | "png" | "webp"
enable_sync_mode?boolean
If set to true, the function will wait for the image to be generated and uploaded before returning the response. It allows you to get the image directly in the response. This property is only available through the API.
Default
false
enable_base64_output?boolean
If enabled, the output will be encoded into a BASE64 string instead of a URL. This property is only available through the API.
Default
false
Response Body
curl -X POST "https://api.atlascloud.ai/api/v1/model/generateImage" \ -H "Content-Type: application/json" \ -d '{ "model": "wavespeed-ai/image_face_swap", "image": "https://static.atlascloud.ai/media/images/1752546604367620589_qF0WTQOJ.jpeg", "face_image": "https://static.atlascloud.ai/media/images/1752546643736831648_IVfDAxtq.jpeg" }'
{
"id": "string",
"urls": {},
"model": "string",
"status": "string",
"outputs": [
"string"
],
"created_at": "2019-08-24T14:15:22Z",
"has_nsfw_contents": [
true
]
}