YepAPI
AI Models

Kling 2.6 Pro

Kling 2.6 Pro API. Text-to-video and image-to-video, 5 or 10 seconds, with optional native sound.

Pricing, live playground and model overview: Kling 2.6 Pro API on YepAPI

POST/v1/media/queue
from $0.119/second

Overview

Kling 2.6 Pro — 5 or 10 second clips from text or an image, with optional native sound (on by default). Async operation — submit a job, poll for completion.

PropertyValue
Model IDkwaivgi/kling-v2.6-pro
ProviderKling
Inputstext-to-video, image-to-video
Aspect Ratios16:9, 9:16, 1:1
Duration5 or 10 seconds
Audio GenerationSupported (on by default)
BillingPer job — priced when queued, charged only on success
Pricingfrom $0.119/second

Usage

All media models use the async job queue. Submit a job, then poll for the result.

Step 1: Submit Job

Text-to-Video

options.params passes this model's own parameters (see Model parameters).

const res = await fetch('https://api.yepapi.com/v1/media/queue', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    model: 'kwaivgi/kling-v2.6-pro',
    prompt: 'A cinematic drone shot over a rugged coastline at golden hour',
    options: {
      aspectRatio: '16:9',
      duration: '5',
      generateAudio: true,
      params: {
        cfg_scale: 0.6,
      },
    },
  }),
});
const { data } = await res.json();
// data.jobId — use this to poll for results
curl -X POST https://api.yepapi.com/v1/media/queue \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "kwaivgi/kling-v2.6-pro", "prompt": "A cinematic drone shot over a rugged coastline", "options": {"aspectRatio": "16:9", "duration": "5", "generateAudio": true, "params": {"cfg_scale": 0.6}}}'

Image-to-Video

Pass a starting image via imageData to animate it.

const res = await fetch('https://api.yepapi.com/v1/media/queue', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    model: 'kwaivgi/kling-v2.6-pro',
    prompt: 'Animate this scene — clouds drifting, light changing',
    options: {
      duration: '5',
      generateAudio: true,
    },
    imageData: {
      mimeType: 'image/jpeg',
      base64: '...', // Base64-encoded image
    },
  }),
});
curl -X POST https://api.yepapi.com/v1/media/queue \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "kwaivgi/kling-v2.6-pro", "prompt": "Animate this scene — clouds drifting, light changing", "options": {"duration": "5", "generateAudio": true}, "imageData": {"mimeType": "image/jpeg", "base64": "..."}}'

Step 2: Poll for Result

const status = await fetch(`https://api.yepapi.com/v1/media/status/${data.jobId}`, {
  headers: { 'x-api-key': 'YOUR_API_KEY' },
});
const { data: job } = await status.json();
// job.status — "pending" | "processing" | "completed" | "failed"
// job.result.video — { mimeType, base64 } when completed
curl https://api.yepapi.com/v1/media/status/JOB_ID \
  -H "x-api-key: YOUR_API_KEY"

Request Body

ParameterTypeRequiredDescriptionDefault
modelstringYeskwaivgi/kling-v2.6-pro—
promptstringYesText description of the video to generate—
options.aspectRatiostringNoOne of: 16:9, 9:16, 1:116:9
options.durationstring or numberNo5 or 10 (seconds)5
options.generateAudiobooleanNoGenerate an audio track for the videotrue
options.paramsobjectNoModel-specific parameters under their own names: cfg_scale. Unknown names return 400—
imageData.mimeTypestringNoMIME type of input image (image/png, image/jpeg, image/webp)—
imageData.base64stringNoBase64-encoded input image for image-to-video generation—

Options are validated when you submit: an unsupported duration, resolution or value returns 400 naming the allowed values.

Model parameters

Pass these inside options.params.

ParameterTypeAllowedDescriptionDefault
cfg_scalenumber0–1How closely to follow the prompt (higher = stricter)0.5

Features

  • Text-to-video and image-to-video
  • 5 or 10 seconds
  • Native sound, on by default (generateAudio: false halves the price)

Pricing

Tier≈ Cost/sec5-second video
Without audio$0.119$0.60
With audio$0.238$1.19

Prices shown are for a 5-second clip at the default settings; longer clips cost proportionally more. Audio is on by default — set generateAudio: false for the lower rate. Each job is priced when it's queued — the exact quote for your duration, resolution and options — and charged only if it succeeds. Failed or moderated jobs are free.

Info

Video jobs can take several minutes to complete. When capacity is busy, jobs wait in the queue (status stays pending or processing) — no action needed. Results retained for 1 hour.

Under the Hood

Powered by Kling's Kling 2.6 Pro via our AI provider.

On this page