VideoKuaishouMới

Kling 4.0

Video đa phương thức đến 30 giây với prompt từng shot

model: "kling-4"

Tài liệu APITài liệu dành cho agents

Các chế độ

Một ID mô hình, mọi chế độ bên dưới. Các trường bạn gửi chọn chế độ, và giá theo chế độ.

Chế độĐược chọn bằngGiá điển hình
Từ văn bản sang videoprompt
Yêu cầu ví dụ
{
  "model": "kling-4",
  "input": {
    "prompt": "a lighthouse at dusk"
  }
}
$0.785
Từ hình ảnh sang videoimage_url
Yêu cầu ví dụ
{
  "model": "kling-4",
  "input": {
    "prompt": "a lighthouse at dusk",
    "image_url": "https://example.com/image.jpg"
  }
}
$0.785
Khung đầu tiên và khung cuốiimage_urlend_image_url
Yêu cầu ví dụ
{
  "model": "kling-4",
  "input": {
    "prompt": "a lighthouse at dusk",
    "image_url": "https://example.com/image.jpg",
    "end_image_url": "https://example.com/image-2.jpg"
  }
}
$0.785
Từ tham chiếu sang videoreference_imagesvideo_urls
Yêu cầu ví dụ
{
  "model": "kling-4",
  "input": {
    "prompt": "a lighthouse at dusk",
    "reference_images": [
      "https://example.com/image.jpg",
      "https://example.com/image-2.jpg"
    ]
  }
}
$0.785

Đầu vào

Bắt buộc

Prompt

Tùy chọn

First frame to animate (image-to-video). Leave it out for text-to-video.

Tùy chọn

Reference images (https URLs). Two or more images in total (with image_url) make a reference video: the subjects and style are carried into a new scene rather than animated from the first frame.

Tùy chọn

Last frame (https URL). Sent with image_url, the video moves from the first frame to this one.

Tùy chọn

Reference videos (https URLs) for motion or style. Selects reference video.

Tùy chọn
5

Duration (seconds)

Tùy chọn

Aspect Ratio

Kết quả

Kết quả mẫu

Kết quả thực từ mô hình này. Chạy để xem kết quả của bạn ở đây.

curl https://arteza.ai/api/v1/generations \
  -H "Authorization: Bearer $ARTEZA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "kling-4",
  "input": {
    "prompt": "One continuous shot tracking sideways along the lip of a stone weir in heavy flow, the sheet of water folding over the edge in a smooth glassy curve before breaking into white turbulence below, spray hanging in cold morning light, wet dark granite and moss at the margins, the camera gliding at a steady pace the whole way, every strand of the falling water resolved and stable"
  }
}'