WaveSpeedAI APIVideo Effects Gender Swap

Video Effects Gender Swap

Video Effects Gender Swap

Playground

Try it on WavespeedAI!

Transform your photos into dynamic gender swap videos with natural motion and emotion.

Features

Gender Swap Effect

Requirements

Number of Images

  • Mandatory
  • Only a single image upload is supported

Number of People

  • Supports solo male or female portraits only

Image Requirements

  • Optimal results with half-body or full-body portraits

Prompt

  • Mandatory
  • Format should remain unchanged as much as possible
  • If custom requirements exist, modify the prompt without altering the structure and majority of the content

Effect Boundaries

  • Potential edge cases: gender-converted male subjects from female inputs may display shirtless torsos with exposed chest musculature

Best Practices

  1. Use clear, front-facing photos
  2. Ensure subject is clearly visible
  3. Use half-body or full-body shots for optimal results
  4. Keep the default prompt structure
  5. Avoid complex backgrounds or multiple subjects

Authentication

For authentication details, please refer to the Authentication Guide.

API Endpoints

Submit Task & Query Result


# Submit the task
curl --location --request POST "https://api.wavespeed.ai/api/v3/video-effects/gender-swap" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}" \
--data-raw '{
    "image": "https://image01.cf.vidu.studio/vidu-maas/Tempmates_material/Funny/Funny/0331/haiwai/xingzhuan_upload.png"
}'

# Get the result
curl --location --request GET "https://api.wavespeed.ai/api/v3/predictions/${requestId}/result" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}"

Parameters

Task Submission Parameters

Request Parameters

ParameterTypeRequiredDefaultRangeDescription
imagestringYes-An image to be used as the start frame of the generated video. Requirements: 1. Only accepts 1 image; 2. Supports solo male or female portraits only; 3. Optimal results with half-body or full-body portraits; 4. Images can be provided via URLs or Base64 encode; 5. Supported codecs: PNG, JPEG, JPG, WebP; 6. Image aspect ratio must be less than 1:4 or 4:1; 7. Maximum file size: 50MB; 8. Base64 decode length must be under 50MB with appropriate content type string.

Response Parameters

ParameterTypeDescription
codeintegerHTTP status code (e.g., 200 for success)
messagestringStatus message (e.g., “success”)
data.idstringUnique identifier for the prediction, Task Id
data.modelstringModel ID used for the prediction
data.outputsarrayArray of URLs to the generated content (empty when status is not completed)
data.urlsobjectObject containing related API endpoints
data.urls.getstringURL to retrieve the prediction result
data.has_nsfw_contentsarrayArray of boolean values indicating NSFW detection for each output
data.statusstringStatus of the task: created, processing, completed, or failed
data.created_atstringISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”)
data.errorstringError message (empty if no error occurred)
data.timingsobjectObject containing timing details
data.timings.inferenceintegerInference time in milliseconds

Result Query Parameters

Result Request Parameters

ParameterTypeRequiredDefaultDescription
idstringYes-Task ID

Result Response Parameters

ParameterTypeDescription
codeintegerHTTP status code (e.g., 200 for success)
messagestringStatus message (e.g., “success”)
dataobjectThe prediction data object containing all details
data.idstringUnique identifier for the prediction, the ID of the prediction to get
data.modelstringModel ID used for the prediction
data.outputsarrayArray of URLs to the generated content (empty when status is not completed)
data.urlsobjectObject containing related API endpoints
data.urls.getstringURL to retrieve the prediction result
data.has_nsfw_contentsarrayArray of boolean values indicating NSFW detection for each output
data.statusstringStatus of the task: created, processing, completed, or failed
data.created_atstringISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”)
data.errorstringError message (empty if no error occurred)
data.timingsobjectObject containing timing details
data.timings.inferenceintegerInference time in milliseconds
© 2025 WaveSpeedAI. All rights reserved.