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

# Pixverse V5 · Image to video

> Anime and comic-style rendering with clean outlines and lively poses

[← Pixverse](/api-documentation/ai-generation/models/pixverse)

**Model name:** `pixverse/v5/image-to-video`\
**Generation type:** `image_to_video`\
**Endpoint:** [`POST /api/asset_generator/`](/api-reference/ai-generation/post-ai-generation)

## Pricing

| Duration | 360p | 540p | 720p | 1080p |
| - | - | - | - | - |
| 5s | **1.5** | **1.5** | **2.0** | **4.0** |
| 8s | **2.5** | **2.5** | **3.5** | — |

— means the combination isn't accepted by this model.

Prices are per output. When a request asks for several outputs, the charge is this price times the number of outputs.

## Quick start

The example uses sample media from our CDN. Swap in publicly accessible URLs for your own files.

<CodeGroup>
  ```bash cURL theme={null}
  curl --request POST \
    --url https://api.creatify.ai/api/asset_generator/ \
    --header 'Content-Type: application/json' \
    --header 'X-API-ID: your-api-id' \
    --header 'X-API-KEY: your-api-key' \
    --data '{
      "model_name": "pixverse/v5/image-to-video",
      "input_params": {
        "prompt": "She looks up from her laptop and smiles at the camera.",
        "image_url": "https://d35ghwdno3nak3.cloudfront.net/tutorial/avatar-aurora/recommendation-4.jpg"
      }
    }'
  ```

  ```python Python theme={null}
  import requests

  response = requests.post(
      "https://api.creatify.ai/api/asset_generator/",
      headers={"X-API-ID": "your-api-id", "X-API-KEY": "your-api-key"},
      json={
          "model_name": "pixverse/v5/image-to-video",
          "input_params": {
              "prompt": "She looks up from her laptop and smiles at the camera.",
              "image_url": "https://d35ghwdno3nak3.cloudfront.net/tutorial/avatar-aurora/recommendation-4.jpg"
          },
      },
  )
  print(response.json()["id"])
  ```
</CodeGroup>

## Input parameters

Send these fields in `input_params`.

<ParamField body="prompt" type="string" required>
  The prompt to generate an image from.

  Minimum characters: `1`.
  Maximum characters: `2000`.
</ParamField>

<ParamField body="image_url" type="string" required>
  URL of the image to use as the first frame
</ParamField>

<ParamField body="seed" type="integer">
  The same seed and the same prompt given to the same version of the model will output the same video every time.
</ParamField>

<ParamField body="style" type="string">
  The style of the generated video

  Allowed values: `"anime"`, `"3d_animation"`, `"clay"`, `"comic"`, `"cyberpunk"`.
</ParamField>

<ParamField body="duration" type="string" default={"5"}>
  The duration of the generated video in seconds. 8s videos cost double. 1080p videos are limited to 5 seconds

  Allowed values: `"5"`, `"8"`.
</ParamField>

<ParamField body="resolution" type="string" default={"720p"}>
  The resolution of the generated video

  Allowed values: `"360p"`, `"540p"`, `"720p"`, `"1080p"`.
</ParamField>

<ParamField body="aspect_ratio" type="string" default={"16:9"}>
  The aspect ratio of the generated video

  Allowed values: `"16:9"`, `"4:3"`, `"1:1"`, `"3:4"`, `"9:16"`.
</ParamField>

<ParamField body="negative_prompt" type="string" default={""}>
  Negative prompt to be used for the generation
</ParamField>

<Accordion title="Complete JSON schema">
  ```json theme={null}
  {
    "allOf": [
      {
        "if": {
          "properties": {
            "resolution": {
              "const": "1080p"
            }
          },
          "required": [
            "resolution"
          ]
        },
        "then": {
          "properties": {
            "duration": {
              "enum": [
                "5"
              ]
            }
          },
          "errorMessage": {
            "properties": {
              "duration": "8 second videos are not supported for 1080p resolution"
            }
          }
        }
      }
    ],
    "$schema": "http://json-schema.org/draft-07/schema#",
    "required": [
      "prompt",
      "image_url"
    ],
    "properties": {
      "seed": {
        "type": "integer",
        "title": "Seed",
        "description": "The same seed and the same prompt given to the same version of the model will output the same video every time.",
        "x-advance-settings": true
      },
      "style": {
        "enum": [
          "anime",
          "3d_animation",
          "clay",
          "comic",
          "cyberpunk"
        ],
        "type": "string",
        "title": "Style",
        "description": "The style of the generated video",
        "x-advance-settings": true
      },
      "prompt": {
        "type": "string",
        "title": "Prompt",
        "maxLength": 2000,
        "minLength": 1,
        "description": "The prompt to generate an image from."
      },
      "duration": {
        "enum": [
          "5",
          "8"
        ],
        "type": "string",
        "title": "Duration",
        "default": "5",
        "description": "The duration of the generated video in seconds. 8s videos cost double. 1080p videos are limited to 5 seconds"
      },
      "image_url": {
        "type": "string",
        "title": "Image Url",
        "max_width": 4000,
        "min_width": 300,
        "x-ui-name": "start_image",
        "max_height": 4000,
        "min_height": 300,
        "description": "URL of the image to use as the first frame",
        "max_file_size": 10485760
      },
      "resolution": {
        "enum": [
          "360p",
          "540p",
          "720p",
          "1080p"
        ],
        "type": "string",
        "title": "Resolution",
        "default": "720p",
        "description": "The resolution of the generated video",
        "x-advance-settings": true
      },
      "aspect_ratio": {
        "enum": [
          "16:9",
          "4:3",
          "1:1",
          "3:4",
          "9:16"
        ],
        "type": "string",
        "title": "Aspect Ratio",
        "default": "16:9",
        "description": "The aspect ratio of the generated video"
      },
      "negative_prompt": {
        "type": "string",
        "title": "Negative Prompt",
        "default": "",
        "description": "Negative prompt to be used for the generation",
        "x-advance-settings": true
      }
    }
  }
  ```
</Accordion>

## Response

The request returns the task with `status: "initializing"`. Poll [GET /api/asset\_generator/\{id}/](/api-reference/ai-generation/get-ai-generation-) until `status` is `done` or `failed`, or pass a `webhook_url` to be notified. A finished task lists its files in `assets` and the credits it charged in `credits_used`.


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