> ## Documentation Index
> Fetch the complete documentation index at: https://docs.toapis.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Vidu Image Generation

> Generate images with the Vidu reference-image family and receive a unified generation.task response.

> [!NOTE]
>
> **중국 본토 사용자 안내:** 중국 본토 사용자는 `https://toapis.cn` 를 API 엔드포인트(Base URL)로 사용해 주세요. 본 문서의 예시에서 `https://toapis.com` 을 `https://toapis.cn` 로 바꿔 주세요.

* Unified async image generation API
* Supports `vidu-image`, `viduq3-fast`, `viduq2-pro`, and `viduq2-fast`
* Works for text-to-image and reference-image-to-image flows

## Supported Models

* `vidu-image`
* `viduq3-fast`
* `viduq2-pro`
* `viduq2-fast`

## Parameters

* `model`: one of the four model IDs above
* `prompt`: text prompt
* `image_urls`: optional reference image URLs, up to 7 images
* `size`: `1:1`, `4:3`, `3:4`, `16:9`, `9:16`, `3:2`, `2:3`
* `metadata.resolution`: `1K`, `2K`, `4K`
* `n`: only `1`
* `seed`: optional integer
* `metadata.watermark`: optional boolean, default `false`

`viduq2-fast` supports `1K` only.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.