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

# Veo 3.1 (Extend Video) Video to Video API

> Extend your videos seamlessly while maintaining perfect consistency and natural flow

[← Veo](https://docs.creatify.ai/api-documentation/ai-generation/models/veo.md)

**Model name:** `veo3.1/extend-video`\
**Generation type:** `video_to_video`\
**Endpoint:** [`POST /api/asset_generator/`](https://docs.creatify.ai/api-reference/ai-generation/post-ai-generation)

## Pricing

**28.0** credits per output.

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.

```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": "veo3.1/extend-video",
    "input_params": {
      "prompt": "She finishes speaking, leans back and smiles at the camera.",
      "video_url": "https://d35ghwdno3nak3.cloudfront.net/tutorial/asset-generator/sample-video.mp4"
    }
  }'
```

```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": "veo3.1/extend-video",
        "input_params": {
            "prompt": "She finishes speaking, leans back and smiles at the camera.",
            "video_url": "https://d35ghwdno3nak3.cloudfront.net/tutorial/asset-generator/sample-video.mp4"
        },
    },
)
print(response.json()["id"])
```

## Input parameters

Send these fields in `input_params`.

**prompt** `string` *required*

The text prompt describing how the video should be extended

Minimum characters: `1`.
Maximum characters: `2000`.

**video\_url** `string` *required*

URL of the video to extend. The video should be 720p or 1080p resolution in 16:9 or 9:16 aspect ratio.

**auto\_fix** `boolean` (default: false)

Whether to automatically attempt to fix prompts that fail content policy or other validation checks by rewriting them.

**duration** `string` (default: 7s)

The duration of the generated video.

Allowed values: `"7s"`.

**resolution** `string` (default: 720p)

The resolution of the generated video.

Allowed values: `"720p"`, `"1080p"`.

**aspect\_ratio** `string` (default: 16:9)

The aspect ratio of the generated video.

Allowed values: `"16:9"`, `"9:16"`.

**generate\_audio** `boolean` (default: true)

Whether to generate audio for the video.

**negative\_prompt** `string`

A negative prompt to guide the video generation

> [accordion] Complete JSON schema
>
> ```json theme={null}
> {
>   "$schema": "http://json-schema.org/draft-07/schema#",
>   "required": [
>     "prompt",
>     "video_url"
>   ],
>   "properties": {
>     "prompt": {
>       "type": "string",
>       "title": "Prompt",
>       "maxLength": 2000,
>       "minLength": 1,
>       "description": "The text prompt describing how the video should be extended"
>     },
>     "auto_fix": {
>       "type": "boolean",
>       "title": "Auto Fix",
>       "default": false,
>       "description": "Whether to automatically attempt to fix prompts that fail content policy or other validation checks by rewriting them.",
>       "x-is-hidden": true
>     },
>     "duration": {
>       "enum": [
>         "7s"
>       ],
>       "type": "string",
>       "title": "Duration",
>       "default": "7s",
>       "description": "The duration of the generated video."
>     },
>     "video_url": {
>       "type": "string",
>       "title": "Video URL",
>       "examples": [
>         "https://v3b.fal.media/files/b/0a8670fe/pY8UGl4_C452wOm9XUBYO_9ae04df8771c4f3f979fa5cabeca6ada.mp4"
>       ],
>       "description": "URL of the video to extend. The video should be 720p or 1080p resolution in 16:9 or 9:16 aspect ratio.",
>       "resolution_limit": [
>         "720p",
>         "1080p"
>       ],
>       "aspect_ratio_limit": [
>         "16:9",
>         "9:16"
>       ],
>       "min_duration": 3
>     },
>     "resolution": {
>       "enum": [
>         "720p",
>         "1080p"
>       ],
>       "type": "string",
>       "title": "Resolution",
>       "default": "720p",
>       "description": "The resolution of the generated video.",
>       "x-advance-settings": true
>     },
>     "aspect_ratio": {
>       "enum": [
>         "16:9",
>         "9:16"
>       ],
>       "type": "string",
>       "title": "Aspect Ratio",
>       "default": "16:9",
>       "description": "The aspect ratio of the generated video."
>     },
>     "generate_audio": {
>       "type": "boolean",
>       "title": "Generate Audio",
>       "default": true,
>       "description": "Whether to generate audio for the video.",
>       "x-advance-settings": true
>     },
>     "negative_prompt": {
>       "type": "string",
>       "title": "Negative Prompt",
>       "description": "A negative prompt to guide the video generation",
>       "x-advance-settings": true
>     }
>   }
> }
> ```

## Response

The request returns the task with `status: "initializing"`. Poll [GET /api/asset\_generator/\{id}/](https://docs.creatify.ai/api-reference/ai-generation/get-ai-generation-.md) 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.