Skip to main content
POST
Vidu Q4 Preview (Reference to Video)

Headers

Authorization
string

Body

application/json
model
enum<string>
required

Model name. Must be viduq4_preview_reference.

Available options:
viduq4_preview_reference
prompt
string
required

Text prompt describing the video (required). Refer to reference images as @1, @2, … in the order of image_urls.

image_urls
string<uri>[]
required

Reference image URLs (required, 1-15 images). png / jpeg / jpg / webp, max 50MB each.

Required array length: 1 - 15 elements
ref_audios
string<uri>[]

Optional reference audio URLs (up to 3), e.g. a voice sample or a line of dialogue. Each clip must be an mp3 of 3-12 seconds.

Maximum array length: 3
duration
integer
default:5

Video duration in seconds (3-16). Defaults to 5.

Required range: 3 <= x <= 16
resolution
enum<string>
default:720p

Output resolution. Case-insensitive (2k and 2K are both accepted).

Available options:
540p,
720p,
1080p,
2K,
4K
ratio
enum<string>
default:16:9

Aspect ratio of the output video. aspect_ratio is accepted as a compatible alias.

Available options:
16:9,
9:16,
1:1,
4:3,
3:4
generate_audio
boolean
default:true

Whether the output contains a native audio track (dialogue and sound effects). Defaults to true. Turning it off does not change the price.

custom_callback_url
string<uri>

Optional. A publicly accessible HTTPS URL. When the task status changes (processing / success / failed), GoEnhance sends a POST request to this URL. The request body is identical to the response of GET /api/v1/jobs/detail. If your server does not respond with HTTP 200, the notification is retried up to 3 times, with a 3-second timeout per attempt.

Example:

"https://your-server.com/goenhance/callback"

Response

code
integer
required
msg
string
required
data
object
required