---
title: "create video by text or image or reference image"
method: POST
path: "/generation/wanx/wan-v2-7"
tags: ["generation", "video generation"]
---

# create video by text or image or reference image

`POST /generation/wanx/wan-v2-7`

## Request

- Base URL: `https://pollo.ai/api/platform`
- URL: `https://pollo.ai/api/platform/generation/wanx/wan-v2-7`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/pollo/apis/pollo-ai-video-collection/docs/generation/wanx/wan-v2-7/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- object
  - `input` union, required
    - object
      - `image` string, uri, required: Only image URLs are accepted (HTTPS preferred); base64 is not allowed. Supported formats include JPG, PNG, and JPEG. Image aspect ratio must be less than 1:4 or 4:1.
      - `imageTail` string, uri: URL of the tail image for video generation. Only image URLs are accepted (HTTPS preferred); base64 is not allowed. Supported formats include JPG, PNG, and JPEG. Image aspect ratio must be less than 1:4 or 4:1.
      - `prompt` string: The prompt of the generation
      - `negativePrompt` string: The negative prompt of the generation
      - `length` 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15: The length of the generation
      - `resolution` '720P' | '1080P': The resolution of the generation
      - `seed` number: The seed of the generation
      - `audioUrl` string, uri: Audio URL for audio-driven generation
    - object
      - `prompt` string, required: The prompt of the generation
      - `negativePrompt` string: The negative prompt of the generation
      - `length` 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15: The length of the generation
      - `resolution` '720P' | '1080P': The resolution of the generation
      - `aspectRatio` '1:1' | '4:3' | '3:4' | '16:9' | '9:16': The aspect ratio of the generation. Wan 2.7 supports 16:9, 9:16, 1:1, 4:3 and 3:4.
      - `seed` number: The seed of the generation
      - `audioUrl` string, uri: Audio URL for audio-driven generation
  - `webhookUrl` string
  - `clientSource` string

## Response `200`

Successful response

- object
  - `taskId` string, required
  - `status` 'waiting' | 'succeed' | 'failed' | 'processing', required

## Other responses

- `default`: Error response

---

[API](https://skmtc.dev/pollo/apis/pollo-ai-video-collection.md) - [All operations](https://skmtc.dev/pollo/apis/pollo-ai-video-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/pollo/apis/pollo-ai-video-collection/revisions/b3c228cf4e87?raw)
