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

# Veo 3.1 Quality 文生视频

> Google Veo 3.1 Quality 文生视频模型，固定输出 8 秒视频

> [!TIP]
>
> 1. 提交后会返回 `task_id`。如果提供了 `callback_url`，当任务状态变为 `finished` 或 `failed` 时，系统会向 `callback_url` 发送 POST 请求。
> 2. 无论是否提供 `callback_url`，都可以通过统一的[查询任务状态](https://docs.vidgo.ai/zh/api-manual/task-management/status.md)接口获取结果。

使用 Google Veo 3.1 Quality 模型生成 8 秒视频。

## 模型

* **veo3.1/text-to-video** - Veo 3.1 Quality 文生视频

## 功能

* 直接根据文本提示词生成，无需图片输入。
* 输出分辨率最高支持 `4k`。
* 生成的视频 URL 为临时链接，请及时下载。

## 时长选项

* **8 秒** - 该模型为固定时长。

## 高级参数

### 生成类型

* 该 model ID 将生成类型固定为 `text-to-video`。

### 分辨率

* `720p`（默认）、`1080p` 或 `4k`。

## 定价

价格因模型版本和分辨率而异。当前费率请查看 Vidgo 仪表盘。


## OpenAPI

````yaml zh/api-manual/video-series/veo3-1-text-to-video.json POST /api/generate/submit
openapi: 3.0.0
info:
  title: Vidgo API - Veo 3.1 Quality 文生视频
  description: 通过 Vidgo 统一生成 API 调用 Veo 3.1 Quality 文生视频。
  version: 1.0.0
servers:
  - url: https://api.vidgo.ai
    description: 生产环境服务器
security:
  - BearerAuth: []
paths:
  /api/generate/submit:
    post:
      tags:
        - Veo 3.1 Quality Text to Video
      summary: 提交 Veo 3.1 Quality 文生视频任务
      operationId: submitVeo31TextToVideoTask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitRequest'
            examples:
              default:
                summary: Veo 3.1 Quality 文生视频
                value:
                  model: veo3.1/text-to-video
                  callback_url: https://your-domain.com/callback
                  input:
                    prompt: >-
                      A cinematic scene with natural lighting and coherent
                      motion
                    duration: 8
                    resolution: 720p
      responses:
        '200':
          description: 任务提交成功
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmitResponse'
        '400':
          description: 请求参数无效
        '401':
          description: 未授权
components:
  schemas:
    SubmitRequest:
      type: object
      required:
        - model
        - input
      additionalProperties: false
      properties:
        model:
          type: string
          example: veo3.1/text-to-video
        callback_url:
          type: string
          format: uri
          description: 可选的 Webhook 回调 URL。
        input:
          type: object
          required:
            - prompt
          additionalProperties: false
          properties:
            prompt:
              type: string
              description: 描述目标视频的提示词。
            duration:
              type: integer
              description: Veo 3.1 输出时长固定为 8 秒。
              enum:
                - 8
              default: 8
            aspect_ratio:
              type: string
              description: 输出宽高比。
              enum:
                - '16:9'
                - '9:16'
            resolution:
              type: string
              description: 输出分辨率。
              enum:
                - 720p
                - 1080p
                - 4k
              default: 720p
    SubmitResponse:
      type: object
      required:
        - code
        - data
      properties:
        code:
          type: integer
          example: 200
        data:
          type: object
          required:
            - task_id
            - status
            - created_time
          properties:
            task_id:
              type: string
            status:
              type: string
              enum:
                - not_started
                - running
                - failed
            created_time:
              type: string
              format: date-time
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: '使用 `Authorization: Bearer VIDGO_API_KEY`。'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.