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

## 概述

对之前生成的视频进行超分辨率处理或生成预览：

* **get1080p** — 将视频提升至 1080p 分辨率
* **get4k** — 将视频提升至 4K 分辨率
* **getgif** — 生成动态 GIF 预览

<Warning>
  需要来自已完成的 `/gemini/video/generate` 任务的有效 `videoId`。
</Warning>


## OpenAPI

````yaml POST /gemini/video/upsample
openapi: 3.0.0
info:
  title: Google Gemini - Video, Image & SDK Compat
  description: >-
    Google Gemini services: video generation (Veo 2/3/3.1), image generation
    (Nano Banana), and Gemini Compat API for the official @google/genai SDK.
  version: 2.0.0
  contact: {}
servers:
  - url: https://api.mountsea.ai
    description: API Gateway
security: []
tags:
  - name: gemini
    description: >-
      Video generation (Veo 2/3/3.1) and image generation (Nano Banana)
      endpoints
  - name: gemini-compat
    description: >-
      Gemini Compat API - drop-in replacement for Google's official
      @google/genai SDK. Supports generateContent / streamGenerateContent for
      text and image generation.
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

````