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

# vidu-q2-pro-i2v

> API usage guide for vidu-q2-pro-i2v.

{/* source_model_id: vidu-q2-pro-i2v */}

{/* source_updated_at: 1782167929 */}

**Model ID**

```bash theme={null}
vidu-q2-pro-i2v
```

**Calling method:** async

# Vidu Q2 Pro Image-to-Video API Usage Guide

## Overview

**Vidu Q2 Pro** is an image-to-video model designed to generate high-quality 720p video content from a starting image and a descriptive text prompt. It supports custom durations up to 10 seconds. This model is hosted externally by Vidu and accessible via the GMI Cloud request queue.

## Authentication

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

```bash theme={null}
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

```bash theme={null}
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-i2v",
    "payload": {
      "prompt": "A cinematic drone shot moving forward from this scene",
      "images": "https://example.com/start_frame.jpg",
      "duration": 5,
      "seed": 42
    }
  }'
```

### Request Parameters

| Parameter  | Type    | Required | Description                                                                                                                                  | Default | Constraints     |
| ---------- | ------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------- | ------- | --------------- |
| `images`   | string  | Yes      | An image to be used as the start frame of the generated video. Exactly 1 image. Accepts public URL or Base64; formats: png, jpeg, jpg, webp. | -       | Exactly 1 image |
| `prompt`   | string  | Yes      | Text prompt (max 2000 characters) describing the desired video.                                                                              | -       | Max 2000 chars  |
| `duration` | integer | No       | Video duration in seconds.                                                                                                                   | 5       | Min: 1, Max: 10 |
| `seed`     | integer | No       | Random seed. If not set, a random seed is used.                                                                                              | null    | -               |

### Response

```json theme={null}
{
  "request_id": "8fbb88gd-cd78-5132-0g2c-07c4ge944225",
  "model": "vidu-q2-pro-i2v",
  "status": "queued",
  "created_at": 1772184500
}
```

## Check Request Status

### Endpoint

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

### Response

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

## Request Status Values

| Status       | Description                                |
| ------------ | ------------------------------------------ |
| `queued`     | Request is waiting in the queue            |
| `processing` | Video is currently being rendered          |
| `success`    | Video generation completed                 |
| `failed`     | Generation failed (check logs for details) |
| `cancelled`  | Request was manually cancelled             |

## Pricing

* **Pricing Type**: Base fee + per second
* **Price**: $0.075 baseline, +$0.05 every second of video
* **Unit**: Video

## Tips for Better Results

1. **High-Quality Inputs**: Use clear, high-resolution starting images for the best results.
2. **Prompt Alignment**: Describe the motion, lighting, and camera movement you want to see applied to the starting image.
3. **Mind the Limits**: The maximum duration for this model is 10 seconds.
