Runbase

Command Palette

Search for a command to run...

Kling

Kling 3.0

ID:kling/kling-3.0

快手的 Kling 3.0 影片產生 API — 原生 4K 60fps,多鏡頭分鏡、5 種語言音訊、3 種品質模式。

文字轉影片圖片轉影片4K多鏡頭

概覽

快手的 Kling 3.0 影片產生 API — 原生 4K 60fps,多鏡頭分鏡、5 種語言音訊、3 種品質模式。

驗證

所有 API 請求都需要透過 Authorization 標頭以 Bearer 方式傳遞有效的 API 金鑰。

快速開始

憑證

設定 RUNBASE_API_KEY 環境變數。

Shell
export RUNBASE_API_KEY=your-api-key

建立執行

Shell
curl -s https://runbase.net/api/v1/runs \
  -H "Authorization: Bearer $RUNBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kling/kling-3.0",
    "input": {
      "prompt": "A cinematic product photo of a ceramic lamp"
    }
  }'

執行紀錄

執行為非同步處理。提交請求後,輪詢取得結果。

建立執行

Shell
curl -s https://runbase.net/api/v1/runs \
  -H "Authorization: Bearer $RUNBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kling/kling-3.0",
    "input": { "prompt": "A cinematic product photo of a ceramic lamp" }
  }'

取得執行狀態

Shell
curl -s https://runbase.net/api/v1/runs/RUN_ID \
  -H "Authorization: Bearer $RUNBASE_API_KEY"

取得結果

輪詢狀態端點,直到 status 為 "succeeded",然後從回應中讀取 output.urls。

輸入結構

參數類型必填說明
promptstring必填Prompt
aspect_ratiostring選填Aspect ratio選項: 16:99:161:1
modestring選填Quality mode選項: stdpro4K
durationnumber選填Duration (seconds)
image_urlsstring[]選填Frame images

輸出結構

欄位類型說明
urlsstring[]產生的輸出 URL

錯誤

API 使用標準 HTTP 狀態碼表示成功或失敗。

狀態碼說明
400Richiesta non valida - parametri mancanti o malformati
401Autenticazione fallita - chiave API mancante o non valida
402Crediti insufficienti
403Accesso negato - IP non consentito o limite di spesa della chiave API superato
404Esecuzione non trovata
429Limite di frequenza superato
500Errore interno del server