kling-v4defaultKling V4 API — how to connect and pay
Kling 4.0 — 3 to 30 second video with native audio and lip-sync: from text, from keyframes (first, last and up to 8 middle frames) or from references (up to 10 images, 5 videos, 7 elements and 3 voices). 720p/1080p. Priced per second by resolution; with an input video its seconds are billed too.
Channel comparison
last 7 days
| Channel | Price |
|---|---|
Pixel kling-v4default | from $0.183214 / s |
Build the result you need
kling-v4What is Kling V4
Kling 4.0 — 3 to 30 second video with native audio and lip-sync: from text, from keyframes (first, last and up to 8 middle frames) or from references (up to 10 images, 5 videos, 7 elements and 3 voices). 720p/1080p. Priced per second by resolution; with an input video its seconds are billed too.
Contract at a glance
- Input
- text, image, video, audio
- Output
- video
- Mode
- async (job + polling)
- Status polling
- every 3 s · up to 600 s
Strengths
- Pricing: per second
- Inputs: text, image, video, audio
- 3 configurable options
- One API key for media generation
Where it is used
- Social media clips
- Promos and title sequences
- Still-image animation
- Storyboards and animatics
API contract
Generation runs asynchronously: create a job, then poll its status until completion.
- Create job
- POST /api/media/generate
- Check status
- GET /api/media/jobs/{jobId}
- Input
- text, image, video, audio
- Output
- video
- Polling
- every 3 s · up to 600 s
- Authentication
- Authorization: Bearer sk-pv-…
Example request
Pass your key in the Bearer header. The API returns jobId for polling the status.
curl -sS https://getvibeapi.com/api/media/generate \
-H "Authorization: Bearer $GETVIBE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary '{"model":"kling-v4","prompt":"a beautiful landscape","opts":{"input":"text-to-video","aspect_ratio":"auto","resolution":"720p","duration":5}}'JavaScript
const response = await fetch('https://getvibeapi.com/api/media/generate', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.GETVIBE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "kling-v4",
"prompt": "a beautiful landscape",
"opts": {
"input": "text-to-video",
"aspect_ratio": "auto",
"resolution": "720p",
"duration": 5
}
}),
});
if (!response.ok) throw new Error(`GetVibe API: ${response.status}`);
const { jobId } = await response.json();
console.log(jobId);API request parameters
Parameters for requests to Kling V4 via the GetVibe API.
promptreq.image_urlvideo_urlaudio_urlinputaspect_ratioresolutiondurationlast_frame_urlkeep_original_soundkeyframe_urlsimage_file_idimage_base64last_frame_file_idreference_image_urlsreference_video_urlselementsvoicesreference_image_file_idsreference_video_file_ids| Parameter | Type | Values | Default | Price |
|---|---|---|---|---|
promptreq. | text | text description | required | — |
image_url | URL | Public image URL | — | — |
video_url | URL | Public video URL | — | — |
audio_url | URL | Public audio URL | — | — |
input | option selection | Text → video (default) · Keyframes → video · Reference → video | Text → video | Included in the base price |
aspect_ratio | option selection | Auto (default) · 16:9 · 9:16 · 1:1 · 21:9 | Auto | Included in the base price |
resolution | option selection | 720p (default) · 1080p | 720p | Included in the base price |
duration | text / number | any value | — | Included in the base price |
last_frame_url | text / number | any value | — | Included in the base price |
keep_original_sound | yes/no | Yes · No (default) | No | Included in the base price |
keyframe_urls | Array<URLs>, 0–8 items | Public HTTP(S) URLs | — | Included in the base price |
image_file_id | text | Alternative to image_url: the id of your own file from POST /v1/files (file-pv-…) | — | Included in the base price |
image_base64 | text | Alternative to image_url: the file inline, as base64 or a data: URI | — | Included in the base price |
last_frame_file_id | text | Alternative to last_frame_url: the id of your own file from POST /v1/files (file-pv-…) | — | Included in the base price |
reference_image_urls | Array<URLs>, 0–10 items | Public HTTP(S) URLs | — | Included in the base price |
reference_video_urls | Array<URLs>, 0–5 items | Public HTTP(S) URLs | — | Included in the base price |
elements | Array<objects>, 0–7 items | object: name, image_urls, video_url, tag, description, voice_url | — | Included in the base price |
voices | Array<objects>, 0–3 items | object: name, audio_url | — | Included in the base price |
reference_image_file_ids | Array<strings> | List of values | — | Included in the base price |
reference_video_file_ids | Array<strings> | List of values | — | Included in the base price |
Request: POST https://getvibeapi.com/api/media/generate. Prices in USD.
Price of Kling V4
The cost of Kling V4: from $0.183214 per second. The price is calculated dynamically at the current exchange rate, and the final charge is shown in the API response (priceRub). Payment in USD, no subscriptions.
What a default request costs
With no parameters sent, the request uses these values: Resolution — 720p, Source material — Text → video, Frame format — Auto, Keep the reference video sound — No. That request costs $0.183214.
Channels and prices for every parameter combination
For every channel, the price of every parameter combination. It is exactly the amount a successful generation is charged, and the same figure as in the machine-readable table linked below.
Pixelkling-v4from $0.183214 / sexact prices
| Input · Aspect ratio \ Resolution | 720p | 1080p |
|---|---|---|
| Text → video · Auto | $0.183214 / s | $0.273214 / s |
| Text → video · 16:9 | $0.183214 / s | $0.273214 / s |
| Text → video · 9:16 | $0.183214 / s | $0.273214 / s |
| Text → video · 1:1 | $0.183214 / s | $0.273214 / s |
| Text → video · 21:9 | $0.183214 / s | $0.273214 / s |
| Keyframes → video · — | $0.183214 / s | $0.273214 / s |
| Reference → video · Auto | $0.183214 / s | $0.273214 / s |
| Reference → video · 16:9 | $0.183214 / s | $0.273214 / s |
| Reference → video · 9:16 | $0.183214 / s | $0.273214 / s |
| Reference → video · 1:1 | $0.183214 / s | $0.273214 / s |
| Reference → video · 21:9 | $0.183214 / s | $0.273214 / s |
Every combination as JSON: /api/media/price-table?model=kling-v4
README
The machine-readable contract for Kling V4 contains the request schema, operations, limits, polling and response examples.
# Kling V4
Public model: kling-v4
Create job: POST /api/media/generate
Check status: GET /api/media/jobs/{jobId}
## Input parameters
- `prompt` (text): text description; default: required
- `image_url` (URL): Public image URL; default: —
- `video_url` (URL): Public video URL; default: —
- `audio_url` (URL): Public audio URL; default: —
- `input` (option selection): Text → video (default) · Keyframes → video · Reference → video; default: Text → video
- `aspect_ratio` (option selection): Auto (default) · 16:9 · 9:16 · 1:1 · 21:9; default: Auto
- `resolution` (option selection): 720p (default) · 1080p; default: 720p
- `duration` (text / number): any value; default: —
- `last_frame_url` (text / number): any value; default: —
- `keep_original_sound` (yes/no): Yes · No (default); default: No
- `keyframe_urls` (Array<URLs>, 0–8 items): Public HTTP(S) URLs; default: —
- `image_file_id` (text): Alternative to image_url: the id of your own file from POST /v1/files (file-pv-…); default: —
- `image_base64` (text): Alternative to image_url: the file inline, as base64 or a data: URI; default: —
- `last_frame_file_id` (text): Alternative to last_frame_url: the id of your own file from POST /v1/files (file-pv-…); default: —
- `reference_image_urls` (Array<URLs>, 0–10 items): Public HTTP(S) URLs; default: —
- `reference_video_urls` (Array<URLs>, 0–5 items): Public HTTP(S) URLs; default: —
- `elements` (Array<objects>, 0–7 items): object: name, image_urls, video_url, tag, description, voice_url; default: —
- `voices` (Array<objects>, 0–3 items): object: name, audio_url; default: —
- `reference_image_file_ids` (Array<strings>): List of values; default: —
- `reference_video_file_ids` (Array<strings>): List of values; default: —
## Public variants
- `kling-v4`: PixelFAQ about the Kling V4 API
How much does Kling V4 cost?
The price of Kling V4: from $0.183214 per second. The price is calculated dynamically at the current exchange rate.
Is it compatible with the OpenAI SDK?
Yes, the API is fully OpenAI-compatible. Just change base_url to https://getvibeapi.com/v1 and set your key — the rest of the code stays the same.