APIMart
Back to models
Kling Image 4.0 Long Image model icon
ImageLong imageProduct detail pageWeb design

Kling Image 4.0 Long Image API

Kling Image 4.0 Long Image is the long-form image generation of Kling Image 4.0, the image model Kling AI released on November 17, 2026. On APIMart it is available as kling-v4-long-image: turn 1 to 3 product images into an e-commerce product detail page, or design a web page with optional style and subject references, as one long image at 1K or 2K.

Generated image 1

Kling Image 4.0 Long Image API Pricing

Transparent pricing with no hidden fees. Pay only for what you use.

Pricing by specification

E-commerce Detail Page (skill: ecommerce)
VariantTierGoldCurrent pricePlatinumDiamondOfficialYour savings
kling-v4-long-image1K · short2.1429Credits/pic~$0.2143/pic2.0357Credits/pic~$0.2036/pic1.9286Credits/pic~$0.1929/pic2.1429Credits/pic~$0.2143/pic—
2K · short2.5714Credits/pic~$0.2571/pic2.4429Credits/pic~$0.2443/pic2.3143Credits/pic~$0.2314/pic2.5714Credits/pic~$0.2571/pic—
1K · medium4.2857Credits/pic~$0.4286/pic4.0714Credits/pic~$0.4071/pic3.8571Credits/pic~$0.3857/pic4.2857Credits/pic~$0.4286/pic—
2K · medium5Credits/pic~$0.5/pic4.75Credits/pic~$0.475/pic4.5Credits/pic~$0.45/pic5Credits/pic~$0.5/pic—
1K · long7.1429Credits/pic~$0.7143/pic6.7857Credits/pic~$0.6786/pic6.4286Credits/pic~$0.6429/pic7.1429Credits/pic~$0.7143/pic—
2K · long7.8571Credits/pic~$0.7857/pic7.4643Credits/pic~$0.7464/pic7.0714Credits/pic~$0.7071/pic7.8571Credits/pic~$0.7857/pic—
Reference image (each)0.0286Credits/pic~$0.0029/pic0.0271Credits/pic~$0.0027/pic0.0257Credits/pic~$0.0026/pic0.0286Credits/pic~$0.0029/pic—
Web Page Design (skill: webpage)
VariantTierGoldCurrent pricePlatinumDiamondOfficialYour savings
kling-v4-long-image1K5Credits/pic~$0.5/pic4.75Credits/pic~$0.475/pic4.5Credits/pic~$0.45/pic5Credits/pic~$0.5/pic—
2K5.4286Credits/pic~$0.5429/pic5.1571Credits/pic~$0.5157/pic4.8857Credits/pic~$0.4886/pic5.4286Credits/pic~$0.5429/pic—
Reference image (each)0.0286Credits/pic~$0.0029/pic0.0271Credits/pic~$0.0027/pic0.0257Credits/pic~$0.0026/pic0.0286Credits/pic~$0.0029/pic—

* Actual costs are subject to final output.

Kling Image 4.0 Long Image API: A Full Product Page or Web Layout in One Image

The Kling Image 4.0 Long Image API on APIMart uses the model ID kling-v4-long-image. Choose ecommerce to turn 1 to 3 product images into a product detail page, or webpage to design a web page with optional style and subject references. Pick 1K or 2K, and the model returns one long PNG whose height follows the content. Tasks run asynchronously, and each request is billed by its page tier plus any reference images.

Kling Image 4.0 Long Image API Example: Product Page and Web Page

Submit a kling-v4-long-image task, then poll it by task ID. The examples create an e-commerce detail page and a web page design.

  1. 1

    Authenticate Kling Image 4.0 Long Image API Requests

    Save your APIMart API key as APIMART_API_KEY. The examples send Authorization: Bearer <key> for submission and task queries.

  2. 2

    Submit a kling-v4-long-image Task

    POST /v1/images/generations with model set to kling-v4-long-image, skill and your prompt. Add image_urls for ecommerce, or image_with_roles for webpage. Read the task ID from data[0].task_id.

  3. 3

    Get the Kling Image 4.0 Long Image Result

    Use GET /v1/tasks/{task_id}. For a completed task, read data.result.images[0].url[0]; for a failed task, read data.error.message.

    See the Kling Image 4.0 Long Image API documentation for every parameter and error code.

POST /v1/images/generations
curl -X POST https://api.apimart.ai/v1/images/generations \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kling-v4-long-image",
    "prompt": "Create an e-commerce product detail page for the perfume in @Image1.",
    "skill": "ecommerce",
    "length": "medium",
    "resolution": "1K",
    "image_urls": [
      "https://example.com/perfume.png"
    ]
  }'

Kling Image 4.0 Long Image API Parameters

ParameterTypeRequiredDefaultDescription
modelstringRequiredDefault: kling-v4-long-imageModel ID for Kling Image 4.0 Long Image.
promptstringRequiredDefault: —Page description. Up to 166,000 English characters or 71,000 Chinese characters; mixed text counts proportionally. Refer to reference images as @Image1, @Image2 and so on.
skillstringRequiredDefault: —ecommerce (product detail page) or webpage (web page design), case-insensitive.
lengthstringOptionalDefault: mediumecommerce only: short, medium or long (about 2–5, 6–10 or 11–18 content sections). Do not send it for webpage.
resolutionstringOptionalDefault: 1K1K (1024 px wide) or 2K (2048 px wide), case-insensitive. The height follows the content.
image_urlsstring[]OptionalDefault: —Required for ecommerce: 1 to 3 product images as public URLs. JPG, JPEG or PNG, up to 30 MB each, at least 300 px wide and tall, with an aspect ratio between 2:5 and 5:2. Not accepted for webpage.
image_with_rolesobject[]OptionalDefault: —webpage only, optional: items with url and role, at most one style image (visual and layout style) and one subject image (the subject to keep). Same image requirements as image_urls. Not accepted for ecommerce.