Kling O1 Text-to-Video
Kling O1 Text-to-Video costs $0.06 per second of video on LLM API.
Pricing
Served by MuAPI, the only provider.
| Video | $0.06/ second | per second |
|---|
Specifications
- Generates fromText
Call Kling O1 Text-to-Video
POST /v1/videosVideo jobs run in the background: create one, poll it, then download the file.Videos docs
import os
import time
from openai import OpenAI
client = OpenAI(
base_url="https://api.llmapi.ai/v1",
api_key=os.environ["LLMAPI_KEY"],
)
video = client.videos.create(
model="kling-o1-t2v",
prompt="A paper boat drifting down a rainy street",
)
while video.status in ("queued", "in_progress"):
time.sleep(10)
video = client.videos.retrieve(video.id)
if video.status == "failed":
raise RuntimeError(video.error)
client.videos.download_content(video.id).write_to_file("video.mp4")import fs from "node:fs";
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.llmapi.ai/v1",
apiKey: process.env.LLMAPI_KEY,
});
let video = await client.videos.create({
model: "kling-o1-t2v",
prompt: "A paper boat drifting down a rainy street",
});
while (video.status === "queued" || video.status === "in_progress") {
await new Promise((r) => setTimeout(r, 10_000));
video = await client.videos.retrieve(video.id);
}
if (video.status === "failed") throw new Error(video.error?.message);
const content = await client.videos.downloadContent(video.id);
fs.writeFileSync("video.mp4", Buffer.from(await content.arrayBuffer()));curl https://api.llmapi.ai/v1/videos \
-H "Authorization: Bearer $LLMAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-o1-t2v",
"prompt": "A paper boat drifting down a rainy street"
}'
# Poll GET https://api.llmapi.ai/v1/videos/{id} until "completed",
# then download GET https://api.llmapi.ai/v1/videos/{id}/contentMore from Kuaishou
All Kuaishou video models
Kling O1 Image-to-Video (kling-o1-i2v)kling-o1-i2v$0.144per second
Kling V2.6 Pro Image-to-Videokling-v2.6-pro-i2v$0.06per second
Kling V2.6 Pro Text-to-Videokling-v2.6-pro-t2v$0.06per second
Prices synced .