Skip to main content
POST
  1. After submission, a task_id will be returned. If you provided a callback_url, when the task status becomes finished or failed, a POST request will be sent to the callback_url.
  2. Regardless of whether callback_url is provided, you can retrieve the result through the unified Query Task Status endpoint.
Kling Image 4.0 Long Image designs a whole page as one tall image: a website page (skill: webpage) or an ecommerce product detail page built from 1–3 product photos (skill: ecommerce). The width is fixed by resolution and the height follows the content, so one request returns a complete page mockup with all its sections. For regular images, use Kling Image 4.0 Text to Image or Kling Image 4.0 Edit.

Models

  • kwaivgi/kling-image-v4.0/long-image — One tall webpage or ecommerce detail page design per request, 1K or 2K wide.

Features

  • Webpage designs with optional style (@StyleImage) and subject (@SubjectImage) references.
  • Ecommerce detail pages from 1–3 product images, in three lengths (short, medium, long).
  • 1K (1024 pixels wide) or 2K (2048 pixels wide) output; the height follows the content.

Input modes

Required parameters

  • prompt (string): Description of the page and its sections. 1–50,000 characters of text. Refer to product images as @Image1–@Image3, the style reference as @StyleImage and the subject reference as @SubjectImage.
  • image_urls (string[]): Used with skill: ecommerce, where it is required: 1–3 product images, numbered @Image1–@Image3 by order. Each image must be a publicly accessible HTTP(S) URL, up to 30 MB, at least 300 pixels wide and high, with an aspect ratio (width / height) between 0.4 and 2.5.

Optional parameters

  • skill (string): webpage or ecommerce. Default webpage.
  • style_image_url (string): Used with skill: webpage. The design follows the visual and layout style of this image (@StyleImage).
  • subject_image_url (string): Used with skill: webpage. The design is built around the subject in this image (@SubjectImage).
  • length (string): Used with skill: ecommerce. short (about 2–5 sections), medium (about 6–10) or long (about 11–18). Default medium.
  • resolution (string): 1K (1024 pixels wide) or 2K (2048 pixels wide). Default 1K.

Output

  • One tall PNG image per request. A 1K webpage is typically around 1024x5800 pixels; a long 2K ecommerce page can exceed 50,000 pixels in height and 80 MB.
  • Generation usually takes 1.5–4 minutes and can take up to about 12 minutes for long 2K pages.

Examples

  • Webpage: a coffee brand website at 2K that follows a style reference.
  • Ecommerce detail page: a medium length page for one product photo at 1K.

Notes

  • Each skill takes its own fields: skill: ecommerce takes 1–3 image_urls and length, and skill: webpage takes style_image_url and subject_image_url. Fields sent with the other skill return 400.
  • Put model and callback_url at the request root, next to input. input accepts the fields listed above; other fields return 400.
  • Credits are a fixed amount per request that depends on skill, length (for ecommerce) and resolution, plus a charge for each reference image (product, style or subject image). A failed task is refunded in full. See the pricing page for current rates.

Authorizations

Authorization
string
header
required

Use Authorization: Bearer VIDGO_API_KEY.

Body

application/json
model
string
required
Example:

"kwaivgi/kling-image-v4.0/long-image"

input
object
required
callback_url
string<uri>

Optional webhook URL for completion or failure notifications.

Example:

"https://your-domain.com/callback"

Response

Task submission result. A task ID identifies asynchronous work; generation may still be running.

code
integer
required
Example:

200

data
object
required