WaveSpeedAI APIVideo Effects Flying

Video Effects Flying

Video Effects Flying

Playground

Try it on WavespeedAI!

Transform your photos into superhero-style flying videos with dynamic camera movement.

Features

Flying Effect

Requirements

Number of Images

  • Mandatory
  • Only supports uploading one image

Number of People

  • Supports realistic-style single-person photos

Image Requirements

  • When the photo is a full-body shot of a single person with a scenic background, the effect is better

Prompt

  • Mandatory
  • The format should remain largely unchanged, for details please refer to the “prompt” parameter in the request example
  • If there are personalized requirements, the prompt words can be modified without altering the structure and majority of the content

Effect Boundaries

  • Possible issues include:
    • The person not flying forward
    • The subject becoming distorted when the head rotates 180 degrees

Best Practices

  1. Use clear, full-body photos
  2. Include scenic backgrounds for better effect
  3. Ensure the subject is well-lit
  4. Keep the default prompt structure
  5. Use photos with good contrast
  6. Avoid complex poses that might affect flying animation

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/flying" \
--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/0317/flying_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. Only supports realistic-style single-person photos; 3. Best results achieved with full-body shots and scenic backgrounds; 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.