# Veo3.1（文字生成视频）

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /302/submit/veo3-v2:
    post:
      summary: Veo3.1（文字生成视频）
      deprecated: false
      description: |
        Google最新的Veo3.1版本

        **价格表**
        | 模型名称 | 功能 | 价格 |
        |---------|------|------|
        | **veo3.1** | 文字生成视频 | 0.5 PTC/次 |
        | **veo3.1-pro** | 文字生成视频 | 1 PTC/次 |
      tags:
        - 视频生成/Google
      parameters:
        - name: Authorization
          in: header
          description: ''
          required: false
          example: Bearer {{YOUR_API_KEY}}
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                prompt:
                  type: string
                  description: 视频生成提示词
                model:
                  type: string
                  enum:
                    - veo3.1
                    - veo3.1-pro
                  x-apifox-enum:
                    - value: veo3.1
                      name: ''
                      description: ''
                    - value: veo3.1-pro
                      name: ''
                      description: ''
                  description: 模型型号
                enhance_prompt:
                  type: boolean
                  description: 是否自动增强提示词
                aspect_ratio:
                  type: string
                  description: 支持16:9，9:16
                  enum:
                    - '16:9'
                    - '9:16'
                  x-apifox-enum:
                    - value: '16:9'
                      name: ''
                      description: ''
                    - value: '9:16'
                      name: ''
                      description: ''
              required:
                - prompt
                - model
                - enhance_prompt
              x-apifox-orders:
                - prompt
                - model
                - enhance_prompt
                - aspect_ratio
            example:
              prompt: >-
                Generate a video of a monk playing basketball with a tomahawk
                dunk
              model: veo3.1
              enhance_prompt: true
              aspect_ratio: '16:9'
      responses:
        '200':
          description: ''
          content:
            '*/*':
              schema:
                type: object
                properties: {}
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: 视频生成/Google
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/4012774/apis/api-361678528-run
components:
  schemas: {}
  securitySchemes:
    apiKeyAuth:
      type: apikey
      in: header
      name: Authorization
    BearerAuth:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
      description: 使用火山方舟 API Key 进行认证
servers:
  - url: https://api.302.ai
    description: 海外环境
  - url: https://api.302ai.com
    description: 国内环境2
security: []

```
