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

# 扩展视频提示词

> Expands a simple video prompt into a detailed, cinematic description.
This is a **synchronous** operation that returns the expanded prompt directly.

## 概述

将简短的视频提示词扩展为详细的电影级描述。这是一个**同步**操作，直接返回扩展后的提示词 — 无需任务轮询。

使用此功能可以将简短提示词转换为丰富的场景描述，从而改善视频生成效果。

### 示例

**输入：**

```
a group of pigs flying in the sky
```

**输出：**

```
## Living Diorama Scene: Swine Ascent

**Scene:** A trio of miniature pigs soar gracefully through a vast,
sun-drenched sky filled with fluffy cumulus clouds...
```


## OpenAPI

````yaml POST /gemini/video/prompt/expand
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/prompt/expand:
    post:
      tags:
        - gemini
      summary: Expand video prompt
      description: >-
        Expands a simple video prompt into a detailed, cinematic description.

        This is a **synchronous** operation that returns the expanded prompt
        directly.
      operationId: ApiPublicController_expandPrompt
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PromptExpandDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PromptExpandResultDto'
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PromptExpandResultDto'
      security:
        - bearerAuth: []
components:
  schemas:
    PromptExpandDto:
      type: object
      properties:
        prompt:
          type: string
          description: Original prompt to expand
          example: a group of pigs flying in the sky
      required:
        - prompt
    PromptExpandResultDto:
      type: object
      properties:
        originalPrompt:
          type: string
          description: Original prompt
          example: a group of pigs flying in the sky
        expandedPrompt:
          type: string
          description: Expanded cinematic prompt
          example: |-
            ## Living Diorama Scene: Swine Ascent

            **Scene:** A trio of miniature pigs...
      required:
        - originalPrompt
        - expandedPrompt
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````