promptstring필수
Text prompt for video generation. Required unless multi_prompt is provided.
kwaivgi/kling-video/o3/pro/text-to-videoKling O3 Pro Text to Video by Kuaishou turns a text prompt into a 3-15 second 1080p video with optional native audio.
모델 사용해 보기
다음에 무엇을 하시겠습니까?
예시를 선택하면 입력값과 결과가 플레이그라운드에 로드됩니다.
{
"prompt": "A mecha lands on the ground to save the city, and says \"I'm here\", in anime style"
}인간 선호
블라인드 양자 대결 투표의 Elo 점수로, 다른 이미지 및 비디오 모델과 비교합니다.
순위는 Artificial Analysis Arena에서 가져왔습니다
텍스트-비디오 Arena(무음): 모델 이름을 보지 않고, 같은 프롬프트로 생성한 두 클립 중 더 나은 것을 선택합니다. 오디오는 평가하지 않습니다.
Kling O3 Pro text-to-video, the quality-first O3 tier. Write a scene, optionally split into shots with multi_prompt, and get back a 3–15 second clip.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Up to 2,500 characters. |
aspect_ratio | 16:9 / 9:16 / 1:1 | 16:9 | Output frame shape. |
duration | 3–15 | 5 | Output length in seconds. |
generate_audio | boolean | false | Generate native audio with the clip. |
shot_type | customize / intelligent | customize | customize follows your multi_prompt shot list; intelligent lets the model plan the cuts. |
multi_prompt | object[] | — | Optional list of shots, each with its own prompt and duration. |
You pay for output seconds: $0.112 without audio and $0.14 with generate_audio.
| Output | Without audio | With audio |
|---|---|---|
| 3s | $0.336 | $0.42 |
| 5s (default) | $0.56 | $0.70 |
| 10s | $1.12 | $1.40 |
| 15s | $1.68 | $2.10 |
Failed runs are not charged.
multi_prompt with one entry per shot.Other Kling O3 Pro endpoints and tiers: kwaivgi/kling-video/o3/pro/image-to-video, kwaivgi/kling-video/o3/pro/reference-to-video, kwaivgi/kling-video/o3/pro/edit, kwaivgi/kling-video/o3/pro/video-to-video, kwaivgi/kling-video/o3/standard/text-to-video, kwaivgi/kling-video/o3/4k/text-to-video.
빌드를 시작하세요
SandBase Unified Run API를 통해 이 모델을 제출하세요.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "kwaivgi/kling-video/o3/pro/text-to-video",
"prompt": "A mecha lands on the ground to save the city, and says \"I'm here\", in anime style",
"duration": 5,
"shot_type": "customize",
"aspect_ratio": "16:9",
"generate_audio": false
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"SandBase API 키를 생성해 서버 환경에 설정하세요. 모든 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하거나 저장소에 커밋하지 마세요.
이 모델 ID와 입력값을 사용해 /v1/run로 POST하세요. 위의 요청 예시에는 제출과 폴링이 포함되어 있습니다.
반환된 실행 ID를 사용해 상태가 completed, failed 또는 timeout이 될 때까지 폴링하세요. completed 이후에만 출력을 읽으세요.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"모델의 이미지, 비디오 또는 오디오 필드에 공개적으로 접근 가능한 파일 URL을 전달하세요. 지원 형식과 제한은 각 Playground 입력 옆에 표시됩니다.
Playground의 지원되는 이미지 필드에서 업로드 또는 교체 컨트롤을 사용하세요. 비디오 URL 필드는 호스팅된 driving video를 받으며, 비디오 업로드 지원을 의미하지는 않습니다.
promptstring필수Text prompt for video generation. Required unless multi_prompt is provided.
durationintegerVideo duration in seconds (3-15s).
기본값: 5
가능한 값: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
shot_typestringThe type of multi-shot video generation. 'intelligent' lets the model automatically determine shot structure.
기본값: "customize"
가능한 값: "customize", "intelligent"
aspect_ratiostringThe aspect ratio of the generated image.
기본값: "16:9"
가능한 값: "16:9", "9:16", "1:1"
multi_promptarrayList of prompts for multi-shot video generation.
generate_audiobooleanWhether to generate native audio for the video.
기본값: false
{
"model": "kwaivgi/kling-video/o3/pro/text-to-video",
"prompt": "A mecha lands on the ground to save the city, and says \"I'm here\", in anime style",
"duration": 5,
"shot_type": "customize",
"aspect_ratio": "16:9",
"generate_audio": false
}완료된 실행의 결과는 출력에 표시됩니다. 아래 내용은 새 생성 결과가 아니라 모델에 저장된 예시입니다.
[
{
"poster": "https://static.sandbase.ai/examples/posters/07e592c54be05ebaf28e.jpg",
"source": "Kling AI official schema mirror",
"source_url": "https://kling.ai/document-api/guides/get-started/overview",
"url": "https://static.sandbase.ai/examples/bc3450c4-d1db-4ec3-9ebb-3e05d5092c95/output/123f51f6-c974-4393-b299-6b4ba375297c.mp4"
}
]