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

# Veo3.1-Fast 動画生成

> - Veo 3.1 Fast Generate Preview はテキストから動画、最初のフレーム画像から動画などをサポートしています
- 非同期処理、返されたタスクIDを使用して[ステータスを照会](/ja/api-manual/task-management/get-task-detail)してください
- 生成された動画リンクは24時間有効です。速やかに保存してください



## OpenAPI

````yaml ja/api-manual/video-series/veo3.1/veo-3.1-fast-generate-preview-generate.json POST /v1/videos/generations
openapi: 3.1.0
info:
  title: Veo-3.1-Fast-Generate-Preview API
  description: AIモデルを使用して動画生成タスクを作成し、テキストから動画、画像から動画などをサポート
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.evolink.ai
    description: 本番環境
security:
  - bearerAuth: []
tags:
  - name: 動画生成
    description: AI動画生成API
paths:
  /v1/videos/generations:
    post:
      tags:
        - 動画生成
      summary: Veo-3.1-Fast-Generate-Preview API
      description: >-
        - Veo 3.1 Fast Generate Preview はテキストから動画、最初のフレーム画像から動画などをサポートしています

        -
        非同期処理、返されたタスクIDを使用して[ステータスを照会](/ja/api-manual/task-management/get-task-detail)してください

        - 生成された動画リンクは24時間有効です。速やかに保存してください
      operationId: createVideoGeneration
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VideoGenerationRequest'
            examples:
              text_to_video:
                summary: テキストから動画
                value:
                  model: veo-3.1-fast-generate-preview
                  prompt: A cat playing piano
      responses:
        '200':
          description: 動画生成タスクが正常に作成されました
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoGenerationResponse'
        '400':
          description: リクエストパラメータが不正です
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: invalid_request
                  message: Invalid request parameters
                  type: invalid_request_error
        '401':
          description: 未認証、トークンが無効または期限切れです
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: unauthorized
                  message: Invalid or expired token
                  type: authentication_error
        '402':
          description: クォータ不足のため、チャージが必要です
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: insufficient_quota
                  message: Insufficient quota. Please top up your account.
                  type: insufficient_quota
        '403':
          description: アクセスが拒否されました
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: model_access_denied
                  message: >-
                    Token does not have access to model:
                    veo-3.1-fast-generate-preview
                  type: invalid_request_error
        '429':
          description: レート制限を超えました
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: rate_limit_exceeded
                  message: Too many requests, please try again later
                  type: rate_limit_error
        '500':
          description: サーバー内部エラー
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: internal_error
                  message: Internal server error
                  type: api_error
components:
  schemas:
    VideoGenerationRequest:
      type: object
      required:
        - model
        - prompt
      properties:
        model:
          type: string
          default: veo-3.1-fast-generate-preview
          example: veo-3.1-fast-generate-preview
        prompt:
          type: string
          description: 動画を説明するプロンプト、最大2000トークン
          example: A cat playing piano
          maxLength: 2000
        image_urls:
          type: array
          description: 参照画像URL、最大3枚（FIRST&LAST モードは1〜2枚、REFERENCE モードは最大3枚をサポート）、各最大10MB
          items:
            type: string
            format: uri
          maxItems: 3
        generation_type:
          type: string
          description: >-
            生成モード:

            - `TEXT`: テキストから動画

            - `FIRST&LAST`: 最初と最後のフレーム、1〜2枚の画像

            - `REFERENCE`: 参照画像、最大3枚、duration
            は8秒固定、アスペクト比は16:9固定、`generate_audio` 以外の高度なパラメータはサポートされません
          enum:
            - TEXT
            - FIRST&LAST
            - REFERENCE
        aspect_ratio:
          type: string
          description: >-
            動画のアスペクト比。`auto`
            に設定した場合：画像から動画生成では入力画像の比率に基づいて自動選択、テキストから動画生成ではプロンプト内容に基づいて自動選択
          enum:
            - auto
            - '16:9'
            - '9:16'
        generate_audio:
          type: boolean
          description: 音声を生成（追加コスト）、デフォルト `true`
        duration:
          type: integer
          description: 長さ（秒）、デフォルト `4`
          enum:
            - 4
            - 6
            - 8
        'n':
          type: integer
          description: 動画数、デフォルト `1`
          minimum: 1
          maximum: 4
        quality:
          type: string
          description: 解像度、デフォルト `720p`
          enum:
            - 720p
            - 1080p
            - 4k
        seed:
          type: integer
          minimum: 1
          maximum: 4294967295
        negative_prompt:
          type: string
        person_generation:
          type: string
          description: 人物生成制御、デフォルト `allow_adult`
          enum:
            - allow_adult
            - dont_allow
        resize_mode:
          type: string
          description: リサイズモード（I2V のみ）、デフォルト `pad`
          enum:
            - pad
            - crop
        callback_url:
          type: string
          format: uri
    VideoGenerationResponse:
      type: object
      properties:
        created:
          type: integer
          example: 1757169743
        id:
          type: string
          example: task-unified-1757169743-7cvnl5zw
        model:
          type: string
          example: veo-3.1-fast-generate-preview
        status:
          type: string
          enum:
            - pending
            - processing
            - completed
            - failed
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: エラーコード識別子
            message:
              type: string
              description: エラーの説明
            type:
              type: string
              description: エラータイプ
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: |-
        ##すべてのAPIにBearer Token認証が必要です##

        **APIキーの取得：**

        [APIキー管理ページ](https://evolink.ai/dashboard/keys)にアクセスしてAPIキーを取得してください

        **リクエストヘッダーに追加：**
        ```
        Authorization: Bearer YOUR_API_KEY
        ```

````