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

# Extend Video

> Extend the duration of a previously generated video.
- Extended videos can be further extended
- Extended videos cannot be used for insertion/removal/reshoot operations

Requires a valid videoId from a completed video generation task.

## Overview

Extend the duration of a previously generated video. You can optionally provide a prompt to guide the content of the extended section.

<Info>
  Only **VEO 3.1** series models (`veo31_fast`, `veo31_quality`) are supported for video extension.
</Info>

<Warning>
  * Extended videos **can** be further extended
  * Extended videos **cannot** be used for insertion, removal, or reshoot operations
  * Requires a valid `videoId` from a completed video generation task
</Warning>


## OpenAPI

````yaml POST /gemini/video/extend
openapi: 3.0.0
info:
  title: Gemini AI
  description: API documentation for Gemini AI
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.mountsea.ai
    description: API Gateway
security: []
tags:
  - name: gemini
    description: ''
paths:
  /gemini/video/extend:
    post:
      tags:
        - gemini
      summary: Extend video duration
      description: >-
        Extend the duration of a previously generated video.

        - Extended videos can be further extended

        - Extended videos cannot be used for insertion/removal/reshoot
        operations


        Requires a valid videoId from a completed video generation task.
      operationId: ApiPublicController_extendVideo
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VideoExtendDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskIdDto'
      security:
        - bearerAuth: []
components:
  schemas:
    VideoExtendDto:
      type: object
      properties:
        videoId:
          type: string
          description: Video ID from a previously generated video task
          example: task-uuid-xxx
        prompt:
          type: string
          description: Prompt text for the extended section
          example: the camera slowly zooms out to reveal more of the landscape
        model:
          enum:
            - veo31_fast
            - veo31_quality
          type: string
          description: Video model (only VEO 3.1 series supported for extend)
          example: veo31_fast
      required:
        - videoId
        - model
    TaskIdDto:
      type: object
      properties:
        taskId:
          type: string
          description: task id, used to get task result later
      required:
        - taskId
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````