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

# Kling-4.0-Flash 動画編集

> - Kling-4.0 Flash Video Edit（kling-v4-flash-video-edit）は元の動画を編集します
- 出力のアスペクト比は元動画と同じです。長さもデフォルトでは元動画に合わせますが、`duration` で指定することもできます
- テキスト指示や参照画像を組み合わせて編集できます
- `720p` のみ対応しています
- 非同期処理モード、返されたタスクIDを使用して[ステータスを照会](/ja/api-manual/task-management/get-task-detail)してください
- 生成された動画リンクは24時間有効です。速やかに保存してください

### Flash と Kling 4.0 の選び方

Flash は高頻度の制作と素早いアイデアの試行に向けたモデルです。生成速度とコスト効率を重視し、`720p` の短い動画制作に適しています。以下は EvoLink API が現在対応している機能の比較です。

| 項目 | Kling 4.0 Flash | Kling 4.0 |
| --- | --- | --- |
| 出力解像度 | `720p` | `720p`、`1080p` |
| 出力時間 | `3`～`20` 秒 | `3`～`30` 秒 |
| 編集元の動画 | `1` 本、`3`～`20` 秒 | `1` 本、`3`～`30` 秒 |

両モデルとも `duration=auto` で元動画と同じ長さを出力でき、各モデルの対応範囲内で出力時間を指定することもできます。Flash は入力と出力の両方が `20` 秒以内である必要があります。より長い動画の編集や `1080p` の出力には、[Kling 4.0 動画編集](/ja/api-manual/video-series/kling/kling-v4-video-edit)をご利用ください。

Flash は専用のモデル ID を使用します。移行時は `model`、`quality`、`duration` をあわせて確認してください。実際の料金は、選択した Flash モデルの現行価格とタスクの最終精算結果に基づきます。



## OpenAPI

````yaml ja/api-manual/video-series/kling/kling-v4-flash-video-edit.json POST /v1/videos/generations
openapi: 3.1.0
info:
  title: kling-v4-flash-video-edit 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: kling-v4-flash-video-edit API
      description: >-
        - Kling-4.0 Flash Video Edit（kling-v4-flash-video-edit）は元の動画を編集します

        - 出力のアスペクト比は元動画と同じです。長さもデフォルトでは元動画に合わせますが、`duration` で指定することもできます

        - テキスト指示や参照画像を組み合わせて編集できます

        - `720p` のみ対応しています

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

        - 生成された動画リンクは24時間有効です。速やかに保存してください


        ### Flash と Kling 4.0 の選び方


        Flash は高頻度の制作と素早いアイデアの試行に向けたモデルです。生成速度とコスト効率を重視し、`720p`
        の短い動画制作に適しています。以下は EvoLink API が現在対応している機能の比較です。


        | 項目 | Kling 4.0 Flash | Kling 4.0 |

        | --- | --- | --- |

        | 出力解像度 | `720p` | `720p`、`1080p` |

        | 出力時間 | `3`～`20` 秒 | `3`～`30` 秒 |

        | 編集元の動画 | `1` 本、`3`～`20` 秒 | `1` 本、`3`～`30` 秒 |


        両モデルとも `duration=auto` で元動画と同じ長さを出力でき、各モデルの対応範囲内で出力時間を指定することもできます。Flash
        は入力と出力の両方が `20` 秒以内である必要があります。より長い動画の編集や `1080p` の出力には、[Kling 4.0
        動画編集](/ja/api-manual/video-series/kling/kling-v4-video-edit)をご利用ください。


        Flash は専用のモデル ID を使用します。移行時は `model`、`quality`、`duration`
        をあわせて確認してください。実際の料金は、選択した Flash モデルの現行価格とタスクの最終精算結果に基づきます。
      operationId: createVideoGeneration
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VideoGenerationRequest'
            examples:
              basic:
                summary: 基本動画編集
                value:
                  model: kling-v4-flash-video-edit
                  prompt: Adjust the color to warm tones and add a cinematic feel
                  video_urls:
                    - https://example.com/original.mp4
                  quality: 720p
              with_duration:
                summary: 出力時間を指定
                value:
                  model: kling-v4-flash-video-edit
                  prompt: 昼のシーンを夜に変え、ネオンの照明効果を加える
                  video_urls:
                    - https://example.com/original.mp4
                  quality: 720p
                  duration: 10
              style_reference:
                summary: スタイル参照編集
                value:
                  model: kling-v4-flash-video-edit
                  prompt: <<<image_1>>>の色調とスタイルを参考に、<<<video_1>>>の色を調整する
                  video_urls:
                    - https://example.com/original.mp4
                  image_urls:
                    - https://example.com/style_ref.jpg
                  quality: 720p
      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:
                    kling-v4-flash-video-edit
                  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
        - video_urls
      properties:
        model:
          type: string
          description: 動画生成モデル名
          enum:
            - kling-v4-flash-video-edit
          default: kling-v4-flash-video-edit
          example: kling-v4-flash-video-edit
        prompt:
          type: string
          description: >-
            編集指示。最大2500文字


            **参照構文：**
            プロンプト内で`<<<xxx>>>`を使用して画像や動画を参照できます。例：`<<<video_1>>>の人物のコートを<<<image_1>>>のデザインに変更する`
          example: Adjust the color to warm tones and add a cinematic feel
          maxLength: 2500
        video_urls:
          type: array
          description: |-
            編集対象の動画URLの配列。`1`本のみ指定でき、プロンプト内の`<<<video_1>>>`に対応します

            **動画の要件：**
            - 形式：MP4 / MOV
            - サイズ：≤ 200MB
            - 長さ：3～20秒
            - 寸法：幅・高さともに720px～2160px
            - フレームレート：24fps～60fps
            - 動画URLはサーバーから直接アクセスできる必要があります
          items:
            type: string
            format: uri
          minItems: 1
          maxItems: 1
          example:
            - https://example.com/original.mp4
        image_urls:
          type: array
          description: |-
            参照画像URLの配列（スタイルの参照）

            **制約：** 最大`10`枚
            **注意：** 画像URLはサーバーから直接アクセスできるか、アクセス時に直接ダウンロードされる必要があります
          items:
            type: string
            format: uri
          example:
            - https://example.com/style_ref.jpg
          maxItems: 10
        duration:
          description: |-
            出力動画の長さ（秒）。デフォルトは`auto`

            **指定値：**
            - 整数：`3`～`20`秒
            - `auto`：元の動画と同じ長さ
          oneOf:
            - type: integer
              minimum: 3
              maximum: 20
            - type: string
              enum:
                - auto
          default: auto
          example: auto
        quality:
          type: string
          description: |-
            解像度レベル

            **オプション：**
            - `720p` のみ対応しています
          enum:
            - 720p
          default: 720p
          example: 720p
        callback_url:
          type: string
          description: |-
            タスク完了時のHTTPSコールバックURL

            **コールバックタイミング:**
            - タスクが完了、失敗、またはキャンセルされた時にトリガー
            - 課金確認後に送信

            **セキュリティ制限:**
            - HTTPSプロトコルのみ
            - 内部IPアドレスは禁止（127.0.0.1, 10.x.x.x, 172.16-31.x.x, 192.168.x.x など）
            - URLの長さは`2048`文字以下

            **コールバックメカニズム:**
            - タイムアウト: `10`秒
            - 失敗後最大`3`回リトライ（失敗後`1`/`2`/`4`秒）
            - コールバックレスポンス形式はタスク照会APIと一致
            - 2xxステータスコードは成功とみなされ、その他のコードはリトライをトリガー
          format: uri
          example: https://your-domain.com/webhooks/video-task-completed
    VideoGenerationResponse:
      type: object
      properties:
        created:
          type: integer
          description: タスク作成タイムスタンプ
          example: 1757169743
        id:
          type: string
          description: タスクID
          example: task-unified-1757169743-7cvnl5zw
        model:
          type: string
          description: 使用された実際のモデル名
          example: kling-v4-flash-video-edit
        object:
          type: string
          enum:
            - video.generation.task
          description: タスクタイプ
        progress:
          type: integer
          description: タスク進捗率（0-100）
          minimum: 0
          maximum: 100
          example: 0
        status:
          type: string
          description: タスクステータス
          enum:
            - pending
            - processing
            - completed
            - failed
          example: pending
        task_info:
          $ref: '#/components/schemas/VideoTaskInfo'
          description: 動画タスクの詳細
        type:
          type: string
          enum:
            - text
            - image
            - audio
            - video
          description: タスク出力タイプ
          example: video
        usage:
          $ref: '#/components/schemas/VideoUsage'
          description: 使用量と課金情報
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: エラーコード識別子
            message:
              type: string
              description: エラーの説明
            type:
              type: string
              description: エラータイプ
    VideoTaskInfo:
      type: object
      properties:
        can_cancel:
          type: boolean
          description: タスクをキャンセルできるかどうか
          example: false
        estimated_time:
          type: integer
          description: 推定完了時間（秒）
          minimum: 0
          example: 300
        video_duration:
          type: integer
          description: 動画の長さ（秒）
          example: 5
    VideoUsage:
      type: object
      description: 使用量と課金情報
      properties:
        billing_rule:
          type: string
          description: 課金ルール
          enum:
            - per_call
            - per_token
            - per_second
          example: per_second
        credits_reserved:
          type: number
          description: 推定消費クレジット
          minimum: 0
          example: 42.84
        user_group:
          type: string
          description: ユーザーグループカテゴリ
          example: default
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: |-
        ## すべてのAPIにBearer Token認証が必要です ##

        **APIキーの取得：**

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

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

````

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