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

# Upsample Video

> Upsample or generate preview from a previously generated video:
- **GET1080P**: Upscale video to 1080p resolution
- **GET4K**: Upscale video to 4K resolution
- **GETGIF**: Generate animated GIF preview

Requires a valid videoId from a completed /video/generate task.

## Overview

Upsample or generate a preview from a previously generated video:

* **get1080p** — Upscale video to 1080p resolution
* **get4k** — Upscale video to 4K resolution
* **getgif** — Generate an animated GIF preview

<Warning>
  Requires a valid `videoId` from a completed `/gemini/video/generate` task.
</Warning>


## OpenAPI

````yaml POST /gemini/video/upsample
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/upsample:
    post:
      tags:
        - gemini
      summary: Upsample or process existing video
      description: |-
        Upsample or generate preview from a previously generated video:
        - **GET1080P**: Upscale video to 1080p resolution
        - **GET4K**: Upscale video to 4K resolution
        - **GETGIF**: Generate animated GIF preview

        Requires a valid videoId from a completed /video/generate task.
      operationId: ApiPublicController_upsample
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VideoUpsampleDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskIdDto'
      security:
        - bearerAuth: []
components:
  schemas:
    VideoUpsampleDto:
      type: object
      properties:
        videoId:
          type: string
          description: 视频任务 ID（来自 /video/generate 的返回值）
          example: task-uuid-xxx
        action:
          type: string
          description: 升级操作类型
          enum:
            - get1080p
            - get4k
            - getgif
          example: get1080p
      required:
        - videoId
        - action
    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

````