Skip to content
هذه الصفحة غير متاحة بلغتك بعد، لذا تُعرض باللغة الإنجليزية.
Kuaishou · Kling Image

kling-v4-long-image API

Generate tall product detail images and webpage designs in 1K or 2K with kling-v4-long-image on APISea.

إنشاء الصورالصورمهمة غير متزامنة
معرّف النموذج
kling-v4-long-image

تسعير API لنموذج kling-v4-long-image

جميع الأسعار بالدولار الأمريكي (USD). مقارنة أسعار APISea بالسعر الرسمي المعلن للوحدة نفسها.

الخيارAPISeaرسميوفّر
افتراضيافتراضي$0.4714$0.4286—
1K-LONG$0.7857$0.7143—
1K-MEDIUM$0.4714$0.4286—
1K-SHORT$0.2357$0.2143—
1K-WEBPAGE$0.55$0.50—
2K-LONG$0.8643$0.7857—
2K-MEDIUM$0.55$0.50—
2K-SHORT$0.2829$0.2571—
2K-WEBPAGE$0.5971$0.5429—

الأسعار لكل صورة.

ما هو kling-v4-long-image؟

Kuaishou’s kling-v4-long-image, part of the Kling Image family, generates tall product detail images and webpage design images. Use ecommerce mode to build short, medium, or long product layouts from a prompt and 1–3 product references. Webpage mode accepts a prompt with optional style and subject references. Both modes return one PNG per request, with a choice of 1K or 2K output width; image height depends on the generated content.

APISea provides access through one API key and its OpenAI-compatible base URL, https://api.apisea.ai/v1. Submit an asynchronous generation request, then poll the returned task ID for the result. Pricing is pay-as-you-go and varies by resolution and layout option: APISea Default is $0.4714 per image, while APISea 1K-SHORT is $0.2357 per image. APISea bills only successful requests.

أبرز مزايا kling-v4-long-image

Tall Ecommerce Layouts

Choose short, medium, or long layouts, roughly corresponding to 2–5, 6–10, or 11–18 content sections. Actual content and height depend on generation.

Webpage Design Images

Generate a webpage design image from a prompt alone or add optional style and subject references. Each reference role can appear at most once.

Two Output Widths

Select 1K for a 1024 px width or 2K for a 2048 px width. Both support every ecommerce length, including long layouts.

Reference-Guided Generation

Ecommerce mode requires 1–3 product images. Use numbered image markers in the prompt to refer to specific inputs.

كيفية استدعاء API الخاص بـ kling-v4-long-image في 4 خطوات

  1. 01

    احصل على API key

    سجّل الدخول إلى APISea، واشحن رصيدك بدءًا من $50، وأنشئ مفتاح sk-sea من وحدة التحكم.

  2. 02

    اضبط عنوان URL الأساسي

    استخدم https://api.apisea.ai/v1 عنوانًا أساسيًا في SDK أو عميل HTTP.

  3. 03

    أرسل الطلب

    استدعِ POST /v1/images/generations مع "model": "kling-v4-long-image" والمعلمات أدناه.

  4. 04

    تعامل مع الاستجابة

    تتضمن الاستجابة task_id. أرسل طلبات GET /v1/tasks/{task_id} دوريًا حتى تصبح الحالة completed، ثم نزّل روابط النتائج.

curl --request POST \
  --url https://api.apisea.ai/v1/images/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "kling-v4-long-image",
  "skill": "ecommerce",
  "prompt": "Create a product detail page for the coffee maker in @Image1, with a hero section, key features, and everyday use scenes",
  "image_urls": [
    "https://example.com/product.png"
  ],
  "length": "medium",
  "resolution": "1K",
  "nsfw_check": true
}'

المعلمات

المعلمةالنوعمطلوبافتراضيالوصف
modelstringمطلوب—Must be `kling-v4-long-image`.
nsfw_checkbooleanاختياريfalseWhether to run content moderation before submitting the image task.
promptstringمطلوب—Required and must not be blank. Limits are 166,000 characters for English-only text and 71,000 for Chinese-only text and similar languages; mixed-language limits are proportional. Describe the layout, sections, copy, style, and subject.
skillstringمطلوب—Required: `ecommerce` for product detail pages or `webpage` for webpage designs, case-insensitive. The modes use different reference-image fields as shown above.
lengthstringاختياريmediumOnly for `skill: "ecommerce"`: `short`, `medium` (default), or `long`, roughly corresponding to 2–5, 6–10, or 11–18 content sections. Actual content and height depend on generation. Omit this field in webpage mode; sending it returns HTTP 400.
resolutionstringاختياري1KSupports `1K` (default) and `2K`, case-insensitive. Both resolutions support every ecommerce length, including `long + 2K`. Output widths are 1024 px and 2048 px respectively; height depends on content. `4K` is not supported.
image_urlsstring[]اختياري—Only for ecommerce: 1–3 product images are required. Omit this field in webpage mode and use `image_with_roles`. Supply publicly accessible direct image URLs. For local files, use the [image upload API](/docs/uploads/images) and pass the returned `url`.
image_with_rolesobject[]اختياري—Only for webpage mode; optional. Provide at most one `style` image and one `subject` image. Either or both may be omitted. Omit this field in ecommerce mode.
urlstringمطلوب—A publicly accessible direct reference-image URL.
rolestringمطلوب—
nintegerاختياري—Each request generates one tall image. Omit this field or use the integer `1`; other values return HTTP 400.
watermarkbooleanاختياري—Omit this field or use `false`; `true` returns HTTP 400.

ما الذي يمكنك إنشاؤه باستخدام kling-v4-long-image

Product Detail Page Assets

Build a workflow that turns product references and section-by-section copy into a tall ecommerce image.

Campaign Layout Variants

Generate short, medium, and long product layouts for different campaign briefs, with content and styling specified in the prompt.

Webpage Design Concepts

Create webpage design images from a written brief for design review before implementation.

Reference-Based Design Exploration

Let a team provide a style reference and a subject reference to guide webpage design concepts around a chosen visual direction and subject.

نصائح للحصول على نتائج أفضل

  • 01

    Write a Section Brief

    Describe the layout, sections, copy, style, and subject explicitly. In ecommerce mode, choose the length that matches the intended section count.

  • 02

    Match References to Mode

    Use image_urls for ecommerce and image_with_roles for webpage mode. Reference images with @Image1 and subsequent markers; webpage references are numbered in style-then-subject order.

  • 03

    Choose the Pricing Tier

    Choose resolution and ecommerce length deliberately: APISea 1K-SHORT costs $0.2357 per image, while APISea 2K-LONG costs $0.8643 per image. The default resolution is 1K and the default ecommerce length is medium.

  • 04

    Poll the Task ID

    Submit to POST /v1/images/generations, read data[0].task_id, and query GET /v1/tasks/{task_id}. Validate reference URLs before submitting; inaccessible or invalid references can prevent generation.

القيود ومعلومات مهمة

  • Each asynchronous request generates one PNG; n must be omitted or set to 1.

  • 4K and custom size, aspect_ratio, width, and height fields are unsupported.

  • References must be JPG, JPEG, or PNG, at most 30 MB, at least 300 px in both dimensions, and within a 2:5 to 5:2 ratio.

الأسئلة الشائعة حول API الخاص بـ kling-v4-long-image

How much does kling-v4-long-image cost on APISea?

APISea Default costs $0.4714 per image. Pricing varies by option: APISea 1K-SHORT is $0.2357 per image, APISea 1K-WEBPAGE is $0.55 per image, and APISea 2K-LONG is $0.8643 per image; only successful requests are billed.

How do I call kling-v4-long-image through the API?

Send POST https://api.apisea.ai/v1/images/generations with your APISea Bearer key, model set to kling-v4-long-image, a nonblank prompt, and skill set to ecommerce or webpage. Read data[0].task_id and poll GET /v1/tasks/{task_id} for the result.

Which resolutions and layout lengths are supported?

The model supports 1K and 2K, with output widths of 1024 px and 2048 px respectively. Ecommerce mode supports short, medium, and long at either resolution; webpage mode requires length to be omitted.

Do I need reference images?

Ecommerce mode requires 1–3 publicly accessible product images through image_urls. Webpage mode can run from a prompt alone or use image_with_roles with at most one style image and one subject image.

Does webpage mode generate a working website?

Webpage mode produces a webpage design image, not a working website. Each request returns one tall PNG.

Can I use the generated images commercially?

Commercial use is subject to the provider's terms. Review Kuaishou’s applicable terms for your intended use before publishing or distributing generated images.

نماذج ذات صلة

العمق: أكثر من 250 نموذجًا · الحد الأدنى لشحن الرصيد $50

ابدأ التطوير باستخدام kling-v4-long-image

مفتاح واحد، وادفع حسب الاستخدام بدءًا من $50؛ ولا تُحتسب الرسوم إلا على الطلبات الناجحة.