视频Kuaishou新增

Kling 4.0

具有逐镜头提示的多模态视频,最长30秒

model: "kling-4"

API 文档代理文档

模式

一个模型ID,支持下列所有模式。您发送的字段决定模式,价格随模式而定。

模式选择方式典型价格
文本生成视频prompt
请求示例
{
  "model": "kling-4",
  "input": {
    "prompt": "a lighthouse at dusk"
  }
}
$0.785
图像生成视频image_url
请求示例
{
  "model": "kling-4",
  "input": {
    "prompt": "a lighthouse at dusk",
    "image_url": "https://example.com/image.jpg"
  }
}
$0.785
首尾帧image_urlend_image_url
请求示例
{
  "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
参考生成视频reference_imagesvideo_urls
请求示例
{
  "model": "kling-4",
  "input": {
    "prompt": "a lighthouse at dusk",
    "reference_images": [
      "https://example.com/image.jpg",
      "https://example.com/image-2.jpg"
    ]
  }
}
$0.785

输入

必需

Prompt

可选

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

可选

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.

可选

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

可选

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

可选
5

Duration (seconds)

可选

Aspect Ratio

结果

示例输出

该模型的真实结果。运行它可在此处查看您的输出。

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"
  }
}'