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

# Kling 4.0 Flash Image to Video

> The Kling 4.0 Flash Image to Video API animates one start-frame image into a 3–20 second 720p video, with an optional prompt to direct motion.

> [!TIP]
>
> 1. After submission, a `task_id` will be returned. If you provided a `callback_url`, when the task status becomes `finished` or `failed`, a POST request will be sent to the `callback_url`.
> 2. Regardless of whether `callback_url` is provided, you can retrieve the result through the unified [Query Task Status](https://docs.vidgo.ai/api-manual/task-management/status.md) endpoint.

Kling 4.0 Flash Image to Video animates one image as the opening frame of a 3–20 second 720p video. Add a prompt to direct motion, camera and sound cues, or send the image on its own and let the model bring the scene to life.

Kling 4.0 Flash is the faster 720p tier of Kuaishou's Kling 4.0 video model. Vidgo exposes it as four model IDs: [Text to Video](https://docs.vidgo.ai/api-manual/video-series/kwaivgi-kling-v4-0-flash-text-to-video.md), [Image to Video](https://docs.vidgo.ai/api-manual/video-series/kwaivgi-kling-v4-0-flash-image-to-video.md), [Reference to Video](https://docs.vidgo.ai/api-manual/video-series/kwaivgi-kling-v4-0-flash-reference-to-video.md) and [Video Edit](https://docs.vidgo.ai/api-manual/video-series/kwaivgi-kling-v4-0-flash-video-edit.md).

## Models

* **kwaivgi/kling-v4.0-flash/image-to-video** — Image-to-video with Kling 4.0 Flash from one start frame, 3–20 seconds at 720p.

## Features

* One start-frame image via `image_urls`.
* Optional prompt up to 26,000 characters.
* Any whole-second duration from 3 to 20 seconds at 720p.

## Required parameters

* `image_urls` (string\[]): Exactly one public HTTP(S) image URL, used as the start frame.

## Optional parameters

* `prompt` (string): Motion and camera direction, 1–26,000 characters after trimming.
* `duration` (integer): Output length, `3`–`20` seconds. Default `5`.
* `resolution` (string): `720p`. Default `720p`.

## Output

The finished task returns one 720p MP4 video in the `files` array of [Query Task Status](https://docs.vidgo.ai/api-manual/task-management/status.md) and the callback payload.

## Examples

* **Rainy night station**: steam curls from a cup of tea handed to a grandfather while rain streaks down the waiting-room window, 5 seconds ([result](https://cdn.vidgo.ai/apis/models/kwaivgi/kling-v4.0-flash/image-to-video/v1/01/output.mp4)).

## Notes

* `image_urls` holds one image; a second image returns 400.
* Put `model` and `callback_url` at the request root, next to `input`. `input` accepts the fields listed above; other fields return 400.
* Credits are reserved at submission and scale with the output duration at the 720p rate. A failed task is refunded in full. See the [pricing page](https://vidgo.ai/apis/api-pricing) for current rates.


## OpenAPI

````yaml api-manual/video-series/kwaivgi-kling-v4-0-flash-image-to-video.json POST /api/generate/submit
openapi: 3.0.0
info:
  title: Vidgo API - Kling 4.0 Flash Image to Video
  description: >-
    The Kling 4.0 Flash Image to Video API animates one start-frame image into a
    3–20 second 720p video, with an optional prompt to direct motion.
  version: 1.0.0
servers:
  - url: https://api.vidgo.ai
    description: Production server
security:
  - BearerAuth: []
paths:
  /api/generate/submit:
    post:
      tags:
        - Kling 4.0 Flash Image to Video
      summary: Submit Kling 4.0 Flash Image to Video Task
      operationId: submitKling40FlashImageToVideoTask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitRequest'
            examples:
              start-frame:
                summary: Animate a start frame
                value:
                  model: kwaivgi/kling-v4.0-flash/image-to-video
                  input:
                    prompt: >-
                      Warm steam curls gently upward from the enamel cup of tea
                      as the station attendant hands it to the elderly
                      grandfather; raindrops streak steadily down the dark
                      waiting-room window while warm train headlights glide
                      across the misty platform outside. Subtle slow push-in,
                      preserving faces, clothing, and warm tungsten light.
                      Audio: soft autumn rain and distant train rumble.
                    image_urls:
                      - >-
                        https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/text-to-image/v1/01/output.png
                    duration: 5
                    resolution: 720p
      responses:
        '200':
          description: >-
            Task submission result. A task ID identifies asynchronous work;
            generation may still be running.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmitResponse'
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    SubmitRequest:
      type: object
      required:
        - model
        - input
      additionalProperties: false
      properties:
        model:
          type: string
          example: kwaivgi/kling-v4.0-flash/image-to-video
        callback_url:
          type: string
          format: uri
          description: Optional webhook URL for completion or failure notifications.
          example: https://your-domain.com/callback
        input:
          type: object
          required:
            - image_urls
          additionalProperties: false
          properties:
            prompt:
              type: string
              minLength: 1
              maxLength: 26000
              description: >-
                Optional direction for motion, camera, lighting and sound cues.
                1–26,000 characters after trimming when supplied.
            image_urls:
              type: array
              minItems: 1
              maxItems: 1
              items:
                type: string
                format: uri
                description: Use a publicly accessible HTTP(S) download URL.
              description: Exactly one image, used as the start frame of the video.
            duration:
              type: integer
              minimum: 3
              maximum: 20
              default: 5
              description: Output length in whole seconds, 3–20.
            resolution:
              type: string
              enum:
                - 720p
              default: 720p
              description: Output resolution. Kling 4.0 Flash outputs 720p video.
    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
              example: 537F9S6N1LJBX0VK
            status:
              type: string
              example: not_started
            created_time:
              type: string
              format: date-time
              example: '2026-11-25T11:17:21'
    ErrorResponse:
      type: object
      required:
        - detail
      properties:
        detail:
          type: string
          description: Error message. See [Error Codes](/api-manual/error-codes).
          example: image_urls must contain exactly 1 start frame
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'Use `Authorization: Bearer VIDGO_API_KEY`.'

````

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