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

# Kling Image O1

> [Core Function] Kling Image O1 is a reasoning-enhanced multimodal image model. [Strengths] It performs deep reasoning over prompts and references to handle complex logic, spatial relationships, and intricate multi-image combinations. [Best For] Highly recommended for: complex scenes requiring strict logical or spatial accuracy. [Limitations] Do NOT use for simple artistic generation where V3 is faster and more stylistic. [Routing] Route to this model when the prompt involves complex physical logic or strict spatial reasoning.



## OpenAPI

````yaml /model-api/kling/kling-i2i.json post /kling/kling-image-o1
openapi: 3.1.0
info:
  description: The image-to-image models API from Kling AI.
  version: 1.0.0
  contact:
    name: Modellix Support
    email: support@modellix.ai
  title: Kling Image-to-Image Models API
servers:
  - url: https://api.modellix.ai/api/v1
    description: The image-to-image models API from Kling AI.
security:
  - bearerAuth: []
paths:
  /kling/kling-image-o1:
    post:
      summary: Kling Image O1
      description: >-
        [Core Function] Kling Image O1 is a reasoning-enhanced multimodal image
        model. [Strengths] It performs deep reasoning over prompts and
        references to handle complex logic, spatial relationships, and intricate
        multi-image combinations. [Best For] Highly recommended for: complex
        scenes requiring strict logical or spatial accuracy. [Limitations] Do
        NOT use for simple artistic generation where V3 is faster and more
        stylistic. [Routing] Route to this model when the prompt involves
        complex physical logic or strict spatial reasoning.
      operationId: klingImageO1Async
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/KlingImageO1Request'
            examples:
              text_only:
                summary: Pure text generation
                value:
                  prompt: A serene landscape with mountains at sunset
                  resolution: 2k
                  aspect_ratio: '16:9'
              image_reference:
                summary: Single image reference
                value:
                  prompt: Transform <<<image_1>>> into watercolor painting style
                  images:
                    - https://example.com/photo.jpg
                  resolution: 2k
              multi_image:
                summary: Multiple image combination
                value:
                  prompt: >-
                    Combine <<<image_1>>> and <<<image_2>>> in modern office
                    setting
                  images:
                    - https://example.com/person1.jpg
                    - https://example.com/person2.jpg
                  aspect_ratio: auto
                  'n': 4
              mixed_input:
                summary: Multiple image combination
                value:
                  prompt: Complex scene with multiple references
                  images:
                    - https://example.com/background.jpg
                    - data:image/jpeg;base64,/9j/4AAQ...
                  aspect_ratio: auto
                  resolution: 2k
                  'n': 3
      responses:
        '200':
          description: Task submitted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncTaskResponse'
              example:
                code: 0
                message: success
                data:
                  status: pending
                  task_id: task-omni-vwx234
                  model_id: model-123
                  get_result:
                    method: GET
                    url: https://api.modellix.ai/api/v1/tasks/task-omni-vwx234
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  schemas:
    KlingImageO1Request:
      type: object
      required:
        - prompt
      properties:
        prompt:
          type: string
          description: >-
            Image description text, supports Chinese and English. Can use
            <<<image_1>>>, <<<image_2>>> etc. to reference images from images
            array
          minLength: 1
          maxLength: 2500
          example: A serene landscape with mountains at sunset
        images:
          type: array
          description: >-
            Reference image URLs or Base64 strings. Simplified flattened
            parameter. Maximum 10 items.
          maxItems: 10
          items:
            type: string
            minLength: 1
            description: Image URL or Base64 encoded data
            example: https://example.com/reference.jpg
          example:
            - https://example.com/image1.jpg
            - data:image/jpeg;base64,/9j/4AAQ...
        resolution:
          type: string
          description: Image resolution. Supports 1K and 2K
          default: 1k
          enum:
            - 1k
            - 2k
          example: 2k
        aspect_ratio:
          type: string
          description: >-
            Image aspect ratio. Supports 'auto' for intelligent aspect ratio
            selection
          default: auto
          enum:
            - '16:9'
            - '9:16'
            - '1:1'
            - '4:3'
            - '3:4'
            - '3:2'
            - '2:3'
            - '21:9'
            - auto
          example: auto
        'n':
          type: integer
          description: Number of images to generate per request
          default: 1
          minimum: 1
          maximum: 9
          example: 1
      description: >-
        Note: This model does NOT support: negative_prompt, image (single),
        image_reference, image_fidelity, human_fidelity, subject_image_list,
        scene_image, or style_image parameters. Use images for multiple image
        inputs instead.
    AsyncTaskResponse:
      type: object
      required:
        - code
        - message
        - data
      properties:
        code:
          type: integer
          description: Response code, 0 indicates success
          example: 0
        message:
          type: string
          description: Response message
          example: success
        data:
          type: object
          required:
            - status
            - task_id
            - model_id
          properties:
            status:
              type: string
              enum:
                - pending
                - processing
              description: Task status
              example: pending
            task_id:
              type: string
              description: Unique task identifier
              example: task-abc123
            model_id:
              type: string
              description: Model ID
              example: model-123
            get_result:
              type: object
              description: API information to query the task result
              properties:
                method:
                  type: string
                  description: HTTP method
                  example: GET
                url:
                  type: string
                  description: Full URL to query the task result
                  example: https://api.modellix.ai/api/v1/tasks/task-abc123
          description: Detailed data about the submitted asynchronous task.
    ErrorResponse:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: integer
          description: Error code (equals HTTP status code)
          example: 400
        message:
          type: string
          description: 'Error message in format ''Category: detail'''
          example: 'Invalid parameters: parameter ''image'' is required'
  responses:
    BadRequest:
      description: Invalid request parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            code: 400
            message: 'Invalid parameters: parameter ''image'' is required'
    Unauthorized:
      description: Unauthorized - Invalid or missing API Key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            code: 401
            message: 'Authentication failed: invalid API key'
    TooManyRequests:
      description: Too many requests - Rate limit exceeded
      headers:
        X-RateLimit-Limit:
          description: Maximum requests per minute
          schema:
            type: integer
            example: 100
        X-RateLimit-Remaining:
          description: Remaining quota in current window
          schema:
            type: integer
            example: 0
        X-RateLimit-Reset:
          description: Rate limit window reset time (Unix timestamp)
          schema:
            type: integer
            example: 1704067260
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            code: 429
            message: >-
              Rate limit exceeded: 100 requests per minute, retry after 60
              seconds
    InternalServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            code: 500
            message: Internal server error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'API Key authentication. Format: `Bearer YOUR_API_KEY`.'

````