Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.gmicloud.ai/llms.txt

Use this file to discover all available pages before exploring further.

Model ID
vidu-q2-pro-r2v

Vidu Q2 Pro Reference-to-Video API Usage Guide

Overview

Authentication

All API requests require authentication using your API key. Include it in the Authorization header:
Authorization: Bearer YOUR_API_KEY

Submit Video Generation Request

Base URL

https://console.gmicloud.ai

Endpoint

POST /api/v1/ie/requestqueue/apikey/requests

Request Format

curl -X POST "https://console.gmicloud.ai/api/v1/ie/requestqueue/apikey/requests" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "vidu-q2-pro-r2v",
    "payload": {
      "prompt": "A cinematic continuation of the provided scene, maintaining the same lighting and subject",
      "images": ["https://example.com/reference1.jpg"],
      "videos": ["https://example.com/reference_video.mp4"],
      "duration": 5,
      "seed": 42
    }
  }'

Request Parameters

ParameterTypeRequiredDescriptionDefaultConstraints
promptstringYesText prompt (max 2000 characters) describing the desired video.-Max 2000 chars
imagesarrayNoReference images. Max 7 images (or 4 if video inputs are used).-Max 7 images
videosarrayNoInput video for reference. Max 1 video (up to 8s) or 2 videos (up to 5s each).-Max 1-2 videos
durationintegerNoVideo duration in seconds.5Min: 1, Max: 10
seedintegerNoRandom seed. If not set, a random seed is used.null-

Response

{
  "request_id": "8fbb88gd-cd78-5132-0g2c-07c4ge944225",
  "model": "vidu-q2-pro-r2v",
  "status": "queued",
  "created_at": 1772184500
}

Check Request Status

Endpoint

GET /api/v1/ie/requestqueue/apikey/requests/{request_id}

Response

{
  "request_id": "8fbb88gd-cd78-5132-0g2c-07c4ge944225",
  "model": "vidu-q2-pro-r2v",
  "status": "success",
  "outcome": {
    "media_urls": [
      {
        "id": "0",
        "url": "https://storage.googleapis.com/gmi-generated-assets/.../vidu_output_0.mp4"
      }
    ]
  }
}

Request Status Values

StatusDescription
queuedRequest is waiting in the queue
processingVideo is currently being rendered
successVideo generation completed
failedGeneration failed (check logs for details)
cancelledRequest was manually cancelled

Tips for Better Results

  1. Use References: Provide at least one image or video input, as this is a reference-to-video model.
  2. Mind the Limits: Do not exceed the maximum of 7 images (or 4 if combined with video) and follow the video reference duration limits.