ویڈیو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"
  }
}'