Skip to content
中文
Vidu · Model API

Vidu Q4 API Pricing

Vidu Q4 API with VezAPI. Explore model capabilities, credit pricing, request parameters, and integration examples.

Image to Video

Vidu Q4 API documentation

Integrate Vidu Q4 with your VezAPI key. The operations below share the same authentication and account balance.

Base URL: https://api.vezapi.com
Send Authorization: Bearer YOUR_VEZAPI_KEY. Use a unique Idempotency-Key for each submission; reuse it only when checking the same request.

Vidu Q4 Image To Video

POST/api/v1/jobs/createTask

Model IDs: vidu-q4/image-to-video

ParameterTypeDescription & constraints
model
required
string

The model name used for generation. This endpoint must use `vidu-q4/image-to-video`.

Values: "vidu-q4/image-to-video"

Default: "vidu-q4/image-to-video"

callBackUrl
optional
string

The URL to receive generation task completion updates. Optional but recommended for production use. The system POSTs the task status and results to this URL when generation completes.

input
required
object

Input parameters for the generation task.

input.prompt
optional
string

Text description of the motion and scene. Optional. Up to 20,000 characters.

maxLength: 20000

input.duration
optional
integer

Video length in seconds. Integer from 3 to 16.

Default: 5

minimum: 3

maximum: 16

input.resolution
optional
string

Output resolution.

Values: "540p", "720p", "1080p", "2k", "4k"

Default: "720p"

input.audio
optional
boolean

Generate synchronized audio (dialogue and sound effects). Set false for a silent video.

Default: true

input.image_url
required
string

First-frame image URL (http/https). JPG, JPEG, PNG or WEBP, up to 50 MB. The video inherits this image's aspect ratio.

minLength: 1

Request example
curl -X POST 'https://api.vezapi.com/api/v1/jobs/createTask' \
  -H 'Authorization: Bearer YOUR_VEZAPI_KEY' \
  -H 'Idempotency-Key: your-unique-request-id' \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "vidu-q4/image-to-video",
  "input": {
    "prompt": "Your prompt",
    "duration": 5,
    "resolution": "720p",
    "image_url": "Your prompt"
  }
}'
Responses and errors

HTTP 200

Request successful

ParameterTypeDescription & constraints
code
optional
integer

Status code of the request. The HTTP status is 200 even when the request fails, so always check this field: 200 means success; any other value means the request failed and msg describes the reason. Common values: 401 invalid or missing API key; 402 insufficient credits; 429 rate limit exceeded; 422 or 500 the request could not be processed (read msg and check your parameters before retrying).

Values: 200, 400, 401, 402, 404, 422, 429, 455, 500, 501, 505

msg
optional
string

Error message when code != 200

data
optional
object
data.taskId
optional
string

Task ID, can be used with [Get Task Details](/market/common/get-task-detail) endpoint to query task status

HTTP 500

Server error.

ParameterTypeDescription & constraints
code
required
integer

Response status code - **200**: Success - Request has been processed successfully - **401**: Unauthorized - Authentication credentials are missing or invalid - **402**: Insufficient Credits - Account does not have enough credits to perform the operation - **404**: Not Found - The requested resource or endpoint does not exist - **408**: Timeout - No result has been returned for over 10 minutes. - **422**: Validation Error - The request parameters failed validation checks - **429**: Rate Limited - Request limit has been exceeded for this resource - **455**: Service Unavailable - System is currently undergoing maintenance - **500**: Server Error - An unexpected error occurred while processing the request - **501**: Generation Failed - Content generation task failed - **505**: Feature Disabled - The requested feature is currently disabled

msg
required
string

Response message, error description when failed

data
required
object

Vidu Q4 Reference To Video

POST/api/v1/jobs/createTask

Model IDs: vidu-q4/reference-to-video

ParameterTypeDescription & constraints
model
required
string

The model name used for generation. This endpoint must use `vidu-q4/reference-to-video`.

Values: "vidu-q4/reference-to-video"

Default: "vidu-q4/reference-to-video"

callBackUrl
optional
string

The URL to receive generation task completion updates. Optional but recommended for production use. The system POSTs the task status and results to this URL when generation completes.

input
required
object

Input parameters for the generation task.

input.prompt
required
string

Text description of the video. Refer to inputs by order, e.g. "the man in reference image 2 says ... using reference audio 1". Up to 20,000 characters.

minLength: 1

maxLength: 20000

input.duration
optional
integer

Video length in seconds. Integer from 3 to 16.

Default: 5

minimum: 3

maximum: 16

input.resolution
optional
string

Output resolution.

Values: "540p", "720p", "1080p", "2k", "4k"

Default: "720p"

input.audio
optional
boolean

Generate synchronized audio (dialogue and sound effects). Set false for a silent video.

Default: true

input.reference_image_urls
required
array

Reference image URLs (http/https), 1 to 15. JPG, JPEG, PNG or WEBP.

minItems: 1

maxItems: 15

input.reference_audio_urls
optional
array

Optional reference audio URLs (http/https), up to 3. MP3 only, each 3-12 seconds and up to 50 MB.

maxItems: 3

input.aspect_ratio
optional
string

Output aspect ratio.

Values: "16:9", "9:16", "1:1", "4:3", "3:4"

Default: "16:9"

Request example
curl -X POST 'https://api.vezapi.com/api/v1/jobs/createTask' \
  -H 'Authorization: Bearer YOUR_VEZAPI_KEY' \
  -H 'Idempotency-Key: your-unique-request-id' \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "vidu-q4/reference-to-video",
  "input": {
    "prompt": "Your prompt",
    "duration": 5,
    "resolution": "720p",
    "reference_image_urls": [
      "Your prompt"
    ],
    "aspect_ratio": "16:9"
  }
}'
Responses and errors

HTTP 200

Request successful

ParameterTypeDescription & constraints
code
optional
integer

Status code of the request. The HTTP status is 200 even when the request fails, so always check this field: 200 means success; any other value means the request failed and msg describes the reason. Common values: 401 invalid or missing API key; 402 insufficient credits; 429 rate limit exceeded; 422 or 500 the request could not be processed (read msg and check your parameters before retrying).

Values: 200, 400, 401, 402, 404, 422, 429, 455, 500, 501, 505

msg
optional
string

Error message when code != 200

data
optional
object
data.taskId
optional
string

Task ID, can be used with [Get Task Details](/market/common/get-task-detail) endpoint to query task status

HTTP 500

Server error.

ParameterTypeDescription & constraints
code
required
integer

Response status code - **200**: Success - Request has been processed successfully - **401**: Unauthorized - Authentication credentials are missing or invalid - **402**: Insufficient Credits - Account does not have enough credits to perform the operation - **404**: Not Found - The requested resource or endpoint does not exist - **408**: Timeout - No result has been returned for over 10 minutes. - **422**: Validation Error - The request parameters failed validation checks - **429**: Rate Limited - Request limit has been exceeded for this resource - **455**: Service Unavailable - System is currently undergoing maintenance - **500**: Server Error - An unexpected error occurred while processing the request - **501**: Generation Failed - Content generation task failed - **505**: Feature Disabled - The requested feature is currently disabled

msg
required
string

Response message, error description when failed

data
required
object

Task status and callbacks

For asynchronous tasks, keep the returned taskId. Query GET /api/v1/jobs/recordInfo?taskId=... or provide callBackUrl when creating the task. Only the account that created a task can access it or derive new resources from it.

A timeout can mean the submission was accepted. Inspect the existing request in your dashboard; do not create another task automatically. Callback delivery is retried and may arrive more than once. Deduplicate with X-VezAPI-Event-Id.

Files, logs and billing

Generated media normally follows a 14-day provider lifetime; uploaded files expire after 24 hours. Save the files you need before expiration. VezAPI streams registered files without keeping a permanent media library. Request logs are retained for two calendar months.

Credits are reserved before submission. Final deductions match actual discounted consumption one for one. Unknown usage pauses new paid requests. If available funds cannot cover final usage while protecting other reservations, settlement stays pending until funded; model usage cannot make the wallet negative. Time-based inputs require server-side metadata reads; a failed read prevents submission.

Open full documentation →

Vidu Q4 API pricing

Rates below are reference estimates; final deductions equal actual discounted consumption, one for one. At the standard pack rate, 1,000 credits ≈ $10. Larger packs reduce the effective credit price.

SpecificationCreditsUnitUSD reference
Vidu Q4, reference-to-video, 4k62.4per second$0.624
Vidu Q4, reference-to-video, 2k30.4per second$0.304
Vidu Q4, reference-to-video, 1080p19.2per second$0.192
Vidu Q4, reference-to-video, 720p15.2per second$0.152
Vidu Q4, reference-to-video, 540p7.2per second$0.072
Vidu Q4, image-to-video, 4k62.4per second$0.624
Vidu Q4, image-to-video, 2k30.4per second$0.304
Vidu Q4, image-to-video, 1080p19.2per second$0.192
Vidu Q4, image-to-video, 720p15.2per second$0.152
Vidu Q4, image-to-video, 540p7.2per second$0.072