ВидеоKuaishouНовое

Kling 4.0

Мультимодальное видео до 30 секунд с подсказками для каждого кадра

model: "kling-4"

Режимы

Один идентификатор модели — все приведённые ниже режимы. Поля, которые вы отправляете, выбирают режим, а цена зависит от режима.

РежимВыбирается поТипичная цена
Текст в видео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"
  }
}'