Kling Image 4.0 Long Image API

kwaivgi/kling-image-v4.0/long-image
webpage · ecommerce

Kling Image 4.0 Long Image turns a prompt into a complete website page or ecommerce product detail page as one tall image, 1024 or 2048 px wide. Add 1–3 product photos to build a detail page around them, or a style and subject reference to guide a webpage, and every section from hero to footer arrives in one consistent layout.

Get API Key
Input
Required890/50000
Optional
Optional
Style Image Url

Drag and drop files, paste from clipboard, or provide a URL. webpage: one design to follow for look and layout, referred to as @StyleImage.

Optional
Subject Image Url

Drag and drop files, paste from clipboard, or provide a URL. webpage: one subject to build the page around, referred to as @SubjectImage.

1/1 files added

Optional
OutputReady

Estimated cost: 111.00 credits · $0.5550

Charged when the task is submitted. Pages can take several minutes.

Continue using

Examples

output-209e274845c1.webp

Product detail page for the Fjordline handmade kayak paddle in @Image1: hero shot on a calm Norwegian fjord at dawn, laminated cedar and walnut construction, length 220 cm and weight 860 g, the brass ferrule joint that splits the paddle in two for travel, and oil-finish care instructions.

What is the Kling Image 4.0 Long Image API?

Kling Image 4.0 Long Image is the long-form mode of Kling AI's November 2026 image model, built for full ecommerce detail pages and branded web designs. The Kling Image 4.0 Long Image API designs navigation, hero, content sections and footer in one generation: skill webpage follows optional style and subject references, and skill ecommerce builds short, medium or long product pages from 1–3 product photos.

Why choose the Kling Image 4.0 Long Image API?

The Kling Image 4.0 Long Image API designs a full website page or ecommerce detail page as one tall image, 1024 or 2048 px wide.

  • A whole page in one imageHero, feature blocks, specs, reviews and footer come back as one continuous design with consistent type and color.

  • Product pages from your photosskill ecommerce turns 1–3 product photos into a detail page of about 2–5, 6–10 or 11–18 sections.

  • Style and subject referencesskill webpage follows the look of a reference design and builds the page around a subject photo.

  • 1K or 2K widthPages are 1024 or 2048 px wide with height that follows the content, ready for slicing into sections.

  • Fixed price per pageFrom 47 credits for a short product page to 173 for a long 2K page, shown before you run.

What parameters does the Kling Image 4.0 Long Image API accept?

This API needs a prompt; skill picks webpage or ecommerce, ecommerce takes 1–3 product images and a length, webpage can take style and subject images.

ParameterRequirementDescription
promptRequired

The page and its sections, up to 50,000 characters. Refer to product images as @Image1–@Image3 and to references as @StyleImage and @SubjectImage.

skillOptional

webpage designs a website page; ecommerce designs a product detail page from 1–3 product images.

Defaultwebpageecommerce
image_urlsOptional

Required for ecommerce: 1–3 public HTTP(S) product image URLs (@Image1–@Image3). Each adds 1 credit.

lengthOptional

ecommerce page length: short (about 2–5 sections), medium (6–10) or long (11–18).

Defaultmediumshortlong
style_image_urlOptional

webpage only. A design whose look and layout the page follows (@StyleImage). Adds 1 credit.

subject_image_urlOptional

webpage only. A subject the page is built around (@SubjectImage), such as a product or venue. Adds 1 credit.

resolutionOptional

1K for a 1024 px wide page or 2K for 2048 px; the height follows the content.

Default1K2K

How do you use the Kling Image 4.0 Long Image API?

Pick webpage or ecommerce, add references, list the sections, then poll until the page is ready.

  1. Choose the page typePick webpage for a website or ecommerce for a product detail page.

  2. Add referencesFor ecommerce add 1–3 product photos; for webpage optionally add a style reference and a subject photo.

  3. List the sectionsWrite the brand, audience and each section in order, with the exact headlines and figures to show.

  4. Call the Kling Image 4.0 Long Image APIPOST model kwaivgi/kling-image-v4.0/long-image, then poll the status endpoint; pages take a few minutes.

How much does the Kling Image 4.0 Long Image API cost?

The Kling Image 4.0 Long Image API charges one fixed price per page: 110 / 120 credits for a webpage and 47 to 173 credits for an ecommerce page at 1K / 2K. 1 credit = $0.005.

The price is set by skill, length and resolution, plus 1 credit per reference image. Failed tasks are refunded in full.

How much does the Kling Image 4.0 Long Image API cost?
UsageCreditsUSD
webpage, 1K / 2K110 / 120$0.55 / $0.60
ecommerce short, 1K / 2K47 / 57$0.235 / $0.285
ecommerce medium, 1K / 2K94 / 110$0.47 / $0.55
ecommerce long, 1K / 2K157 / 173$0.785 / $0.865
Each product, style or subject image+1+$0.005

What is the Kling Image 4.0 Long Image API best for?

This API suits ecommerce detail pages, website concepts, client pitches and sliced section assets.

  • Ecommerce detail pagesMarketplace and store pages built from product photos, like the cedar kayak paddle example.

  • Website conceptsLanding pages for small businesses and campaigns, like the geothermal rye bakery site.

  • Client pitchesFull-page visual directions to review before design and development start.

  • Section assetsSlice the tall page into hero, feature and footer images for an existing site.

Pro Tips

  • In the Kling Image 4.0 Long Image API, name every section in order and give each one real content: headlines, prices, specs or opening hours.
  • Use short length for quick listings and long for flagship products with many features.
  • Refer to inputs as @Image1, @StyleImage and @SubjectImage in the prompt.
  • Choose 2K when the page will be shown on large or high-density screens.

Notes

  • skill ecommerce requires 1–3 image_urls and accepts length; skill webpage accepts style_image_url and subject_image_url.
  • Each request returns one PNG; long 2K pages can exceed 50,000 px in height.
  • Kling Image 4.0 Long Image API generation takes about 1.5 to 12 minutes depending on length and width; use a callback_url for long pages.
  • For standard aspect ratios, use Kling Image 4.0 Text to Image.

Sources

Model details on this page come from Kling AI's own publications:

“It also creates long-form images for e-commerce product detail pages and web design, delivering a complete visual layout in one image.”

— Kling AI, Meet Kling Image 4.0 | Stunningly realistic. Sharp. Precise.,

“Supports up to 2,000 characters in a single image, with improved handling of complex instructions and layouts, from crisp small text to expressive typography.”

— Kling AI, Meet Kling Image 4.0 | Stunningly realistic. Sharp. Precise.,

Kling Image 4.0 Long Image API FAQ

What is the Kling Image 4.0 Long Image API?

Kling Image 4.0 Long Image is Kling AI's model for designing a complete website page or ecommerce product detail page as one tall image. The Kling Image 4.0 Long Image API builds every section, from navigation and hero to specs, reviews and footer, in one consistent layout, using 1–3 product photos or optional style and subject references. Call it with kwaivgi/kling-image-v4.0/long-image or try it in the playground above.

How much does the Kling Image 4.0 Long Image API cost?

A webpage costs 110 credits ($0.55) at 1K or 120 at 2K. Ecommerce pages cost 47 / 57 credits for short, 94 / 110 for medium and 157 / 173 for long at 1K / 2K. Each product, style or subject image adds 1 credit.

What is the difference between webpage and ecommerce?

webpage designs a website page and accepts an optional style reference and subject reference. ecommerce designs a product detail page from 1–3 product photos and lets you choose short, medium or long length.

How long are pages from the Kling Image 4.0 Long Image API?

Width is 1024 px at 1K or 2048 px at 2K, and the height follows the content. In tests a 1K webpage was about 1024×5,800 px and a long 2K product page about 2048×55,000 px.

How do I call the Kling Image 4.0 Long Image API?

POST /api/generate/submit with model kwaivgi/kling-image-v4.0/long-image and input holding prompt, skill, resolution and the references for that skill. Poll /api/generate/status/{task_id} until finished and read the PNG URL from files.

How long does the Kling Image 4.0 Long Image API take?

About 1.5 minutes for a 1K webpage and up to around 12 minutes for a long 2K product page. Pass a callback_url to receive the result when it is ready.