VidéoKuaishouNouveau

Kling 4.0

Vidéo multimodale jusqu'à 30s avec invites par plan

model: "kling-4"

Modes de génération

Un seul ID de modèle, tous les modes ci-dessous. Les champs que vous envoyez déterminent le mode, et le prix dépend du mode.

Mode de générationSélectionné parPrix typique
Texte vers vidéoprompt
Exemple de requête
{
  "model": "kling-4",
  "input": {
    "prompt": "a lighthouse at dusk"
  }
}
$0.785
Image vers vidéoimage_url
Exemple de requête
{
  "model": "kling-4",
  "input": {
    "prompt": "a lighthouse at dusk",
    "image_url": "https://example.com/image.jpg"
  }
}
$0.785
Première et dernière imageimage_urlend_image_url
Exemple de requête
{
  "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
Référence vers vidéoreference_imagesvideo_urls
Exemple de requête
{
  "model": "kling-4",
  "input": {
    "prompt": "a lighthouse at dusk",
    "reference_images": [
      "https://example.com/image.jpg",
      "https://example.com/image-2.jpg"
    ]
  }
}
$0.785

Entrée

Obligatoire

Prompt

Facultatif

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

Facultatif

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.

Facultatif

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

Facultatif

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

Facultatif
5

Duration (seconds)

Facultatif

Aspect Ratio

Résultat

Exemple de résultat

Un vrai résultat de ce modèle. Lancez-le pour voir le vôtre ici.

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