WaveSpeedAI APIHunyuan Custom Ref2V 720p

Hunyuan Custom Ref2V 720p

HunyuanCustom, a multi-modal, conditional, and controllable generation model centered on subject consistency, built upon the Hunyuan Video generation framework. It enables the generation of subject-consistent videos conditioned on text, images, audio, and video inputs.

Features

hunyuan-custom-ref2v-720p is an open-source, multimodal-driven architecture for customized video generation, powered by HunyuanVideo-13B. Outperforming existing open-source models, it rivals top closed-source solutions!

Key Features

  • Single-Subject Video: Upload an image + text to videos with new actions, outfits, and scenes.
  • Multi-Subject Video: Generate videos with multiple subjects from separate image inputs.
  • Audio-Driven Video: Sync audio with visuals for talking or singing in any scene.
  • Video-Driven Video: Seamlessly insert or replace subjects into any video for creative enhancements.

ComfyUI

hunyuan-custom-ref2v-720p text + image to video is available on ComfyUI, providing local inference capabilities through a node-based workflow, ensuring flexible and efficient image generation on your system.

Use Cases

  • Virtual advertising and try-on: By accepting multiple image inputs, HunyuanCustom enables the creation of virtual human advertisements and virtual try-on experiences with consistent character appearance.
  • Singing avatar generation: With combined image and audio inputs, it supports the generation of realistic singing avatars for entertainment and digital performer use cases.
  • Video editing and subject replacement: By using an image and a video as inputs, HunyuanCustom can replace subjects in the video with those from the image, supporting advanced creative editing scenarios.

Accelerated Inference

Our accelerated inference approach leverages advanced optimization technology from WavespeedAI. This innovative fusion technique significantly reduces computational overhead and latency, enabling rapid image generation without compromising quality. The entire system is designed to efficiently handle large-scale inference tasks while ensuring that real-time applications achieve an optimal balance between speed and accuracy. For further details, please refer to the blog post.

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/v2/wavespeed-ai/hunyuan-custom-ref2v-720p" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}" \
--data-raw '{
    "image": "https://d2g64w682n9w0w.cloudfront.net/media/ec44bbf6abac4c25998dd2c4af1a46a7/images/1746956054461504207_FMWhea6G.png",
    "prompt": "A man is writing a letter at his desk.",
    "negative_prompt": "",
    "size": "1280*720",
    "guidance_scale": 7.5,
    "flow_shift": 13,
    "seed": -1,
    "enable_safety_checker": true
}'

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

Parameters

Task Submission Parameters

Request Parameters

ParameterTypeRequiredDefaultRangeDescription
imagestringYeshttps://d2g64w682n9w0w.cloudfront.net/media/ec44bbf6abac4c25998dd2c4af1a46a7/images/1746956054461504207_FMWhea6G.png-The image for generating the output.
promptstringYesA man is writing a letter at his desk.-
negative_promptstringNo--The negative prompt for generating the output.
sizestringNo1280*7201280*720, 720*1280The size of the output.
guidance_scalenumberNo7.51.0 ~ 10.0The guidance scale for generation.
flow_shiftnumberNo131.0 ~ 20.0The shift value for the timestep schedule for flow matching.
seedintegerNo-1-1 ~ 9999999999The seed for random number generation.
enable_safety_checkerbooleanNotrue-Whether to enable the safety checker.

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
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.