Skip to main content
Back to API Platform

Kling Reference to Video API

Kling O3 reference-driven video generation. Image or video references, Standard or Pro tier. Integrate this model via REST with endpoint docs, parameters, and code examples.

Video Generation
Img2Vid
Credit Cost
15 credits
Type
video

API Endpoint

POST
/api/v1/models/kling-reference-to-video/run

Parameters

Input parameters accepted by this model

ParameterTypeDefault
prompt
string
multi_prompt
array
-
reference_type
enum
image
tier
enum
standard
duration
integer
5
aspect_ratio
enum
16:9
shot_type
enum
-
start_image_url
url
-
end_image_url
url
-
video_url
url
-
image_urls
array
-
elements
array
-
generate_audio
boolean
false
keep_audio
boolean
true

Example Outputs

Real outputs generated by this model

View Details

the scene settles as the subtle motion eases, cinematic calm

0 credits
0
View Details

a smooth dolly move continues across the frame

0 credits
0
View Details

the camera tilts upward, revealing more of the setting

0 credits
0
View Details

the background softly blurs as focus settles in, shallow depth of field

0 credits
0
View Details

a graceful slow pull-back revealing the full scene

0 credits
0
View Details

soft ambient motion brings the still image to life

0 credits
0
View Details

warm light shifts across the frame as the moment unfolds

0 credits
0
View Details

the camera pans gently from left to right across the scene

0 credits
0
View Details

a gentle breeze moves through the scene, lifelike motion

0 credits
0
View Details

the subject comes to life with gentle natural motion, soft daylight

0 credits
0
View Details

a slow cinematic push-in toward the subject

0 credits
0
View Details

the camera orbits smoothly around the subject

0 credits
0
View Details

a thrilling action sequence of a woman trying to find her favorite candy. The candy wrapper is purple with a pixelated dragon and reads "Pixel Dojo". The woman says "Gotta have that pixel dojo candy. with over 60 ai tools, it's basically zero calories."

0 credits
0

Code Examples

Copy and paste to get started

bash
curl -X POST "https://pixeldojo.ai/api/v1/models/kling-reference-to-video/run" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A cinematic shot of ocean waves at sunset",
    "aspect_ratio": "16:9",
    "duration": 5
  }'

Response Format

Submit Response (202 Accepted)

json
{
  "jobId": "job_abc123...",
  "status": "pending",
  "statusUrl": "https://pixeldojo.ai/api/v1/jobs/job_abc123...",
  "creditCost": 15,
  "creditsRemaining": 95,
  "expiresAt": "2025-01-23T12:00:00Z"
}

Completed Response

json
{
  "jobId": "job_abc123...",
  "status": "completed",
  "output": {
    "video": "https://temp.pixeldojo.ai/pixeldojotemp/1705930123-456789.mp4"
  },
  "creditCost": 15,
  "expiresAt": "2025-01-23T12:00:00Z"
}