ModelVideo

Kling 4.0 Flash

kling-4.0-flash

Generate 720p video with native audio using the Kling 4.0 Flash API. Describe the subject, action, camera movement, and sound in text, or upload a single image as the opening frame of a 3–20 second clip. Draft the opening of a vertical ad, animate a product photo, or preview the timing of a storyboard before filming. Find text-to-video and first-frame request examples, supported parameters, and usage pricing on the model page.

Auto route pricing

Route source: yir

This route has conditional pricing. Review its tiers and requirements before calling.

Published rate
Conditional pricing
Billing unit
/ second
Context / Max output
— / —
Live routes
1

On this page

Overview

Overview for yir

Use Kling 4.0 Flash to generate 720p video with native audio from text or one first-frame image.

Typical use cases

  • Describe a shot to preview camera motion, composition, and sound.
  • Start a clip from a storyboard image or still frame to guide its opening composition.

Quick start and example

  1. Choose Text to video and describe the scene and camera movement.
  2. Choose First frame to video and provide one public HTTPS image as first_frame.
  3. Start with 5 seconds at 720p. Submit the request and keep the task ID.
  4. Query GET /v1/videos/{task_id}. On success, look for the video URL in result.files.

The Playground contains a request example and an illustrative job response.

Key parameters

Parameter nameRequired or defaultAllowed or example valuesWhen to use it
promptRequiredScene and motion descriptionGuide the action, framing, and camera movement.
referencesRequired for image inputsOne public HTTPS imageUse the role required by the selected mode.
duration5 seconds3–20 secondsSet the output length.
resolution720p720pChoose the output resolution.
aspect_ratio16:9Text to video: 16:9, 9:16, 1:1, 21:9; First frame to video: autoSet the framing for the selected mode.
generate_audiotruetrueThe video includes generated audio.
n11Submit a separate job for each additional video.

Version and route differences

OpenAny supports text-to-video and first-frame-to-video for this model. Both modes produce 720p video with native audio.

Billing and usage limits

OpenAny displays video pricing per second. See Pricing on this model page for the current rate. The final charge appears when the job completes.

Common questions

Can I use a public image URL?

Yes. Use a direct HTTPS image link and assign the reference role shown in the Playground.

How do I get the video after submitting?

Use the original task ID to query the job until it finishes, then read the file URL from the result.

Playground

Provider

Input format
Auto route pricing Review pricing details

Request parameters

POST /v1/videos

Submit a Yir Standard video job, then query its task ID to retrieve the result.

Result preview

yir · —

This example shows the response structure. Generated video appears here after the run completes.

{
  "id": "YOUR_TASK_ID",
  "model": "klingai/kling-4.0-flash",
  "object": "job",
  "status": "queued",
  "parameters": {
    "n": 1,
    "duration": 5,
    "resolution": "720p",
    "aspect_ratio": "16:9",
    "generate_audio": true
  }
}
Agent handoff preview

Providers

Auto route · Review pricing details
ProviderPricingLatencyUptimeSupplyRoute
Live
Input $0.094 / second
——Verified
Selected pricing · yirUSD / second
Video specificationPrice per second
Text to video · 720p · With audio
$0.094
Image to video · 720p · First frame to video · With audio
$0.094

Source: the selected provider route in OpenAny's public model catalog. A price update timestamp is not supplied.

API

Base URL
https://api.openany.si/v1
POST
/v1/videos
GET
/v1/videos/{task_id}
Authentication
Authorization: Bearer $OPENANY_API_KEY

Provider

Call method
Auto route pricing Review pricing details

Request parameters

ParameterType / rangeDefault valueRequiredDescription
promptstringA paper lantern drifts across a still lake at dusk. The camera follows it slowly as ripples catch the light.YesDescribe the scene, movement, and camera behavior.
durationinteger · 3 ~ 205NoOutput length in whole seconds.
resolutionstring · 720p720pNoOutput video resolution.
aspect_ratiostring · 16:9 | 9:16 | 1:1 | 21:916:9NoAspect ratio of the output. Available values depend on the selected input mode.
generate_audioboolean · truetrueNoThis model generates native audio. The value is fixed to true.
ninteger · 1 1 ~ 11NoEach submitted job generates one video.

Request example

curl 'https://api.openany.si/v1/videos' \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "prompt": "A paper lantern drifts across a still lake at dusk. The camera follows it slowly as ripples catch the light.",
    "type": "text"
  },
  "model": "kling-4.0-flash",
  "parameters": {
    "aspect_ratio": "16:9",
    "duration": 5,
    "generate_audio": true,
    "n": 1,
    "resolution": "720p"
  },
  "route_mode": "balanced"
}'

Response example

Configured response example · not a live result

JSON
{
  "id": "YOUR_TASK_ID",
  "model": "klingai/kling-4.0-flash",
  "object": "job",
  "status": "queued",
  "parameters": {
    "n": 1,
    "duration": 5,
    "resolution": "720p",
    "aspect_ratio": "16:9",
    "generate_audio": true
  }
}

Error handling

400Check the model ID and request fields.
429Retry with exponential backoff.
5xxRetry only temporary provider failures.

JSON Schema

{
  "type": "object",
  "required": [
    "model",
    "input",
    "parameters"
  ],
  "properties": {
    "input": {
      "type": "object",
      "required": [
        "type",
        "prompt"
      ],
      "properties": {
        "type": {
          "const": "text"
        },
        "prompt": {
          "type": "string",
          "minLength": 1,
          "description": "Describe the scene, motion, and camera movement in English or your preferred language."
        }
      },
      "additionalProperties": false
    },
    "model": {
      "type": "string",
      "const": "kling-4.0-flash"
    },
    "route": {
      "type": "object",
      "properties": {
        "provider": {
          "const": "yir"
        }
      }
    },
    "parameters": {
      "type": "object",
      "properties": {
        "n": {
          "enum": [
            1
          ],
          "type": "integer",
          "default": 1,
          "description": "Each submitted job generates one video."
        },
        "duration": {
          "type": "integer",
          "default": 5,
          "maximum": 20,
          "minimum": 3,
          "description": "Output length in whole seconds."
        },
        "resolution": {
          "enum": [
            "720p"
          ],
          "type": "string",
          "default": "720p",
          "description": "Output video resolution."
        },
        "aspect_ratio": {
          "enum": [
            "16:9",
            "9:16",
            "1:1",
            "21:9"
          ],
          "type": "string",
          "default": "16:9",
          "description": "Aspect ratio of the output. Available values depend on the selected input mode."
        },
        "generate_audio": {
          "enum": [
            true
          ],
          "type": "boolean",
          "default": true,
          "description": "This model generates native audio. The value is fixed to true."
        }
      },
      "additionalProperties": false
    },
    "route_mode": {
      "type": "string",
      "default": "balanced"
    }
  }
}

Examples

Provider

Call method
Auto route pricing Review pricing details

Request example

POST /v1/videos
curl 'https://api.openany.si/v1/videos' \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "prompt": "A paper lantern drifts across a still lake at dusk. The camera follows it slowly as ripples catch the light.",
    "type": "text"
  },
  "model": "kling-4.0-flash",
  "parameters": {
    "aspect_ratio": "16:9",
    "duration": 5,
    "generate_audio": true,
    "n": 1,
    "resolution": "720p"
  },
  "route_mode": "balanced"
}'

Model API questions

How do I call Kling 4.0 Flash through OpenAny?

Use model ID kling-4.0-flash with an OpenAny key and the operation published in this model's API tab. The model API base is https://api.openany.si/v1. Confirm the protocol and request schema; model availability does not imply every OpenAI API operation is supported.

How is Kling 4.0 Flash billed?

Compare the published rate and billing unit of the selected provider route. Input, output and cache token rates may differ. Image, audio and video models can use other units. Recorded usage determines the charge under that route's billing contract.

Are Community and Verified routes the same as an official publisher API?

No. Inspect the provider name and supply classification for the specific route. A marketplace listing or a supply label is not a claim of publisher endorsement, identical service or measured uptime. Different route prices may reflect different supply and conditions.

Where do these prices come from, and when were they updated?

Rates come from the provider routes in OpenAny's public model catalog, not an independent quote from the model publisher. The catalog does not supply a price update timestamp. A page or catalog snapshot date is not a price revision date. Compare supply, billing units, tiers and conditions; a lower listed rate alone does not establish equivalent service or explain the price difference.

Use Kling 4.0 Flash with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.