> ## Documentation Index
> Fetch the complete documentation index at: https://docs.siray.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Kling Image 4.0 Long-Image



## OpenAPI

````yaml openapi-spec/kling-image-4.0-long-image.json POST /v1/images/generations/async
openapi: 3.1.0
info:
  description: >+
    Kling Image 4.0 Long Image creates long-form vertical images from product
    photos or text prompts, making it suitable for ecommerce product detail
    pages, landing pages, promotional layouts, and web design workflows.
    Ready-to-use REST inference API, best performance, no coldstarts, affordable
    pricing.

  summary: API for Kling Image 4.0 Long-Image model
  title: Kling Image 4.0 Long-Image API
  version: 1.0.0
servers:
  - description: Model Verse API Server
    url: https://api.siray.ai
security: []
tags:
  - description: >+
      Kling Image 4.0 Long-Image - Kling Image 4.0 Long Image creates long-form
      vertical images from product photos or text prompts, making it suitable
      for ecommerce product detail pages, landing pages, promotional layouts,
      and web design workflows. Ready-to-use REST inference API, best
      performance, no coldstarts, affordable pricing.

    name: Kling Image 4.0 Long-Image
paths:
  /v1/images/generations/async:
    post:
      tags:
        - Kling Image 4.0 Long-Image
      summary: Generate image
      description: Generate an image using the Kling Image 4.0 Long-Image model
      operationId: image_model-xrclghfe4kwiqpha
      requestBody:
        content:
          application/json:
            example:
              images:
                - example_value
              length: short
              model: kuaishou/kling-image-4.0-long-image
              output_format: jpg
              page_type: ecommerce
              prompt: example_value
              size: 1k
            schema:
              description: Request format for image generation models
              properties:
                images:
                  description: Array of input images, which can be data URL or image URL
                  items:
                    type: string
                  maxItems: 3
                  minItems: 1
                  type: array
                length:
                  description: Length of the generated long image
                  enum:
                    - short
                    - medium
                    - long
                  type: string
                model:
                  description: Model name to use for the request
                  enum:
                    - kuaishou/kling-image-4.0-long-image
                  type: string
                output_format:
                  description: Output format for the 3D model
                  enum:
                    - jpg
                    - png
                    - webp
                  type: string
                page_type:
                  description: Page type of the generated long image
                  enum:
                    - ecommerce
                    - webpage
                  type: string
                prompt:
                  description: Text prompt for generation
                  type: string
                size:
                  description: Size
                  enum:
                    - 1k
                    - 2k
                  type: string
              required:
                - model
                - prompt
                - images
                - size
              title: Image Generation Request
              type: object
        description: Request payload
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskResponse'
          description: Successful response
      security:
        - bearerAuth: []
components:
  schemas:
    TaskResponse:
      description: Standard async task creation response
      properties:
        code:
          description: Status code returned by the service
          example: success
          type: string
        data:
          description: Response payload containing task details
          properties:
            task_id:
              description: Identifier of the created task
              type: string
          required:
            - task_id
          type: object
        fail_code:
          description: Failure code if the task submission did not succeed
          type: string
        message:
          description: Additional information about the request result
          type: string
      required:
        - data
        - code
        - message
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: API Key
      description: Bearer authentication using API key
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.