🔥 Black Friday AI API deals are live· 🎬 Seedance 2.5 — 20% off, up to 42% below market, until Nov 30Ends in--d --:--:--See deals →

Kling 4.0 Long Image: AI Image Editor

Create e-commerce product detail pages and web page designs as one long image with the Kling 4.0 Long Image API. Pay per generation, no subscription. Kling 4.0 Long Image generates one complete long image: an e-commerce product detail page from product photos, or a web page design from style and subject references.

Interactive model controls

Kling 4.0 Long Image generates one complete long image: an e-commerce product detail page from product photos, or a web page design from style and subject references.

📝

Overview

About this model

Kling 4.0 Long Image generates one complete long image per request instead of a batch of separate pictures. Choose the ecommerce skill to turn 1-3 product photos into a product detail page, with length set to short (about 2-5 sections), medium (6-10) or long (11-18), or choose webpage to design a web page, optionally borrowing a look from a style_image and preserving a subject_image. Reference your inputs in the prompt as @image_1, @style and @subject. Output is 1K or 2K. For single images and series see Kling 4.0 Text to Image and Kling 4.0 Image Edit.

1E-commerce Listings: Turn product photos into a full detail page for marketplaces and stores.
2Landing Page Mockups: Generate a web page design in a chosen visual style.
3Infographics: Produce tall, section-by-section explainers as a single image.
4Brand Consistency: Reuse a style reference to keep pages on-brand.
💰

Pricing & Value

Cost analysis

muapiappFrom $0.235 per page (short, 1K)

Pay per generation, no subscription.

Fal.aiNot available

Kling 4.0 Long Image is not listed.

ReplicateNot available

Kling 4.0 Long Image is not listed.

** Competitor pricing is estimated based on similar model architectures and usage tiers.

⚙️

Technical Details

Configuration schema

Promptstring

Text prompt (max 20000 characters). ecommerce: reference products as @image_1, @image_2. webpage: reference @style and @subject. Avoid stray @ handles.

Default ValueA product detail page for @image_1, clean white background, highlight the key features section by section
SkillEnum (2 options)

ecommerce: product detail page (requires images_list). webpage: web page design (style_image and subject_image only).

Default Valueecommerce
Product Imagesarray

1-3 product images. Required for ecommerce; not allowed for webpage.

Default Valuehttps://static.aiquickdraw.com/tools/example/1764851484363_ScV1s2aq.webp
LengthEnum (3 options)

ecommerce only. short: ~2-5 sections, medium: ~6-10, long: ~11-18. Defaults to medium.

Default Valuemedium
Style Imagestring

webpage only. Style reference, mentioned as @style in the prompt.

Default Value-
Subject Imagestring

webpage only. Subject reference, mentioned as @subject in the prompt.

Default Value-
ResolutionEnum (2 options)

Output resolution: 1k or 2k.

Default Value2k
📖

Implementation Guide

Developer documentation

How to Use the Kling 4.0 Long Image API

  1. Choose a skill: ecommerce for product detail pages or webpage for web page designs.

  2. Provide inputs: for ecommerce, pass 1-3 product images in images_list and set length (short, medium, long). For webpage, optionally pass style_image and subject_image. Fields from the other skill are rejected.

  3. Write the prompt and reference inputs as @image_1, @image_2 (ecommerce) or @style, @subject (webpage). Avoid stray @ handles, which are read as references.

  4. Set resolution (1k or 2k), then submit and poll the request_id or pass a webhook URL.

curl -X POST https://api.muapi.ai/api/v1/kling-4.0-long-image \
  -H "x-api-key: $MUAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "A product detail page for @image_1, clean white background, highlight key features section by section", "skill": "ecommerce", "images_list": ["https://example.com/product.png"], "length": "medium", "resolution": "2k"}'
❓

Common Questions

Frequently asked

What is Kling 4.0 Long Image?

Kling 4.0 Long Image generates a single long image for e-commerce product detail pages or web page designs. Each request returns exactly one image.

How much does the Kling 4.0 Long Image API cost?

E-commerce pages cost $0.235 (short), $0.470 (medium) or $0.784 (long) at 1K, and $0.282, $0.549 or $0.862 at 2K. Web pages cost $0.549 at 1K and $0.596 at 2K. Each input image adds $0.003.

What is the difference between ecommerce and webpage?

`ecommerce` builds a product detail page from 1-3 product images with a chosen `length`. `webpage` designs a web page and accepts only a `style_image` and `subject_image`.

What does length control?

For ecommerce, `length` sets how many sections the page has: short is about 2-5, medium about 6-10 and long about 11-18. A section is a block inside the single image.

What image requirements apply?

Inputs must be public JPG or PNG URLs up to 20MB. For best results use at least 300px per side and an aspect ratio between 2:5 and 5:2.

How do I get the result?

Requests are asynchronous: submit a job, then poll the returned `request_id` or pass a `webhook` URL to be notified on completion.

Is there a sandbox for testing?

Yes. Sandbox API keys return mock results instantly with no credits deducted.