Skip to content
Kuaishou · Kling

kling-video-o1 API

Generate reasoning-enhanced video from text, images, or a reference video with kling-video-o1 on Openrouter API.

Video generationVideoAsync task
Model id
kling-video-o1

kling-video-o1 API pricing

All prices in USD. Openrouter API rates compared with the official list price for the same unit.

OptionOpenrouter APIOfficialSave
DefaultDefault$0.07392$0.084−12%
pro$0.09856$0.112−12%
pro-video$0.1478$0.168−12%
video$0.1109$0.126−12%

Prices are per second.

What is kling-video-o1?

kling-video-o1 is Kuaishou’s reasoning-enhanced Kling video generation model, documented as a highest-quality option. On Openrouter API, it offers a unified interface for text-to-video and image-to-video workflows, with support for a reference video. Developers can guide generation with a positive text prompt, reference images, and explicit first-frame or last-frame roles. Standard mode produces 720P video, while professional mode produces 1080P video. Duration options are 5 or 10 seconds, with landscape, portrait, and square aspect ratios.

Submit requests to POST /v1/videos/generations using your Openrouter API Bearer token and the model ID kling-video-o1. Processing is asynchronous: the initial response returns a task ID for subsequent status queries. Openrouter API uses pay-as-you-go billing and charges only for successful requests. The Default configuration costs $0.07392 per second, about 12% below the developer's list price; other listed configurations have separate per-second rates.

kling-video-o1 highlights

Text and Image Inputs

Generate video from a text prompt or guide it with reference images through the same endpoint. Role-based images support first-frame, last-frame, and reference roles.

Two Resolution Modes

Choose standard mode for 720P output or professional mode for 1080P output. Standard mode is the default.

Duration and Framing

Select 5- or 10-second generation and 16:9, 9:16, or 1:1 framing. Defaults are 5 seconds and 16:9.

Reference Video Controls

Supply one reference video as a base for editing or as a feature reference. For video inputs, you can choose whether to keep the original sound.

How to call the kling-video-o1 API in 4 steps

  1. 01

    Get an API key

    Sign in to Openrouter API, top up from $50, and create an sk-ora key in the console.

  2. 02

    Set the base URL

    Use https://openrouterapi.ru/v1 as the base URL in your SDK or HTTP client.

  3. 03

    Send the request

    Call POST /v1/videos/generations with "model": "kling-video-o1" and the parameters below.

  4. 04

    Handle the response

    The response contains a task_id. Poll GET /v1/tasks/{task_id} until the status is completed, then download the result URLs.

curl --request POST \
  --url https://openrouterapi.ru/v1/videos/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "kling-video-o1",
    "prompt": "Make the person in <<<image_1>>> wave at the camera",
    "image_urls": ["https://cdn.example.com/f/models/9998230426123070-e9d6af04-cb5e-4731-8ae7-abf144cb0d29-9998230586368386-29641169-f698-4ab9-9b6d-380899e6521e-9998230593110693-c1741a3a-.webp"],
    "mode": "std",
    "duration": 5,
    "aspect_ratio": "16:9"
  }'

Parameters

ParameterTypeRequiredDefaultDescription
modelstringRequired—Video generation model name
nsfw_checkbooleanOptionalfalseWhether to run content moderation before submitting the video task.
promptstringRequired—Positive text prompt
modestringOptionalstdGeneration mode
durationintegerOptional5Video duration (seconds)
aspect_ratiostringOptional16:9Video aspect ratio
image_urlsarray\<url\>Optional—Image URL array for image referencing
image_with_rolesarray\<object\>Optional—Role-based image array, recommended for image-to-video.
video_listarrayOptional—Reference video list (URL-based), up to 1 video.

What you can build with kling-video-o1

Prompt-Based Clip Tools

Build a tool that turns written scene descriptions into short video clips, with selectable duration and framing.

Image Animation Workflows

Let users supply an image and describe how its subject should move, using image references to guide generation.

Start-to-End Sequences

Create workflows that accept a starting image and an ending image to guide a generated sequence between those frames.

Reference Video Editing

Build an editing interface that accepts a base video and a text prompt, with an option to retain the original audio.

Tips for better results

  • 01

    Set Controls Explicitly

    Set mode, duration, and aspect_ratio deliberately rather than relying on defaults. The defaults are std, 5 seconds, and 16:9.

  • 02

    Prepare Image References

    Use publicly accessible image URLs without hotlink protection, and reference them in the prompt using the documented >> syntax. Use either image_urls or image_with_roles, never both.

  • 03

    Track Async Tasks

    Store the returned task_id and use it for subsequent status queries. The initial submitted status does not mean the video is ready.

  • 04

    Check Moderation Settings

    Set nsfw_check to true to review prompts and input images before submission. It defaults to false; leaving it disabled adds no moderation cost or latency.

Limits and things to know

  • Prompts must not exceed 2,500 characters.

  • image_urls accepts up to two images; more than two role-based images cannot define start/end frames.

  • Only one reference video is supported, and base-video inputs must be 3–10 seconds long.

kling-video-o1 API FAQ

How much does kling-video-o1 cost on Openrouter API?

Openrouter API rates are Default: $0.07392 per second; pro: $0.09856 per second; pro-video: $0.1478 per second; and video: $0.1109 per second. The Default configuration is about 12% below the developer's list price, and Openrouter API bills only successful requests.

How do I call kling-video-o1 through the API?

Send a POST request to https://openrouterapi.ru/v1/videos/generations with Bearer token authentication, model set to kling-video-o1, and a required prompt. The response returns a task ID for subsequent queries.

What resolutions, durations, and aspect ratios are supported?

Standard mode supports 720P and professional mode supports 1080P. Duration options are 5 or 10 seconds, and aspect ratios are 16:9, 9:16, or 1:1; in image-to-video workflows, the image ratio may override the requested aspect ratio.

Can I use images and videos as references?

Yes, use image_urls or image_with_roles for images, or video_list for one reference video. Image URLs must be publicly accessible, and reference videos must be accessible MP4 or MOV files that meet the documented input requirements.

What are the reference video input limits?

Reference videos must be at least 3 seconds long, 720px–2160px in resolution, 24–60fps, and no larger than 200MB; output is 24fps. For a base video, the input must be 3–10 seconds long, generated duration follows the input, and start/end frames cannot be defined.

Can I use generated videos commercially?

Commercial use is subject to the model developer’s terms. Check Kuaishou’s applicable terms and the rights to any images, videos, or audio you supply before using outputs commercially.

Related models

Depth: 250+ models · Minimum top-up $50

Start building with kling-video-o1

One key, pay as you go from $50, billed only for successful requests.