> ## 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.

# Wan 2.7 Image Pro i2i Spicy



## OpenAPI

````yaml openapi-spec/wan-2.7-image-pro-i2i-spicy.json POST /v1/images/generations/async
openapi: 3.1.0
info:
  description: >-
    Wan 2.7 Image Pro i2i Spicy by Alibaba Cloud is a Spicy image editing model
    for prompt-guided retouching and compositing. It supports mature,
    boundary-pushing content with polished results.
  summary: API for Wan 2.7 Image Pro i2i Spicy model
  title: Wan 2.7 Image Pro i2i Spicy API
  version: 1.0.0
servers:
  - description: Model Verse API Server
    url: https://api.siray.ai
security: []
tags:
  - description: >-
      Wan 2.7 Image Pro i2i Spicy - Wan 2.7 Image Pro i2i Spicy by Alibaba Cloud
      is a Spicy image editing model for prompt-guided retouching and
      compositing. It supports mature, boundary-pushing content with polished
      results.
    name: Wan 2.7 Image Pro i2i Spicy
paths:
  /v1/images/generations/async:
    post:
      tags:
        - Wan 2.7 Image Pro i2i Spicy
      summary: Generate image
      description: Generate an image using the Wan 2.7 Image Pro i2i Spicy model
      operationId: image_model-1fuepnq8oglgedsf
      requestBody:
        content:
          application/json:
            example:
              aspect_ratio: '1:1'
              bbox_list:
                - - - 0
                    - 0
                    - 512
                    - 512
              color_palette:
                - hex: '#FF5733'
                  ratio: '1'
              enable_sequential: true
              images:
                - example_value
              model: alibaba/wan-2.7-image-pro-i2i-spicy
              'n': 1
              prompt: example_value
              prompt_expansion_enable: true
              seed: -1
              size: 1k
            schema:
              description: Request format for image generation models
              properties:
                aspect_ratio:
                  description: Aspect ratio
                  enum:
                    - '1:1'
                    - '1:2'
                    - '2:1'
                    - '1:3'
                    - '3:1'
                    - '2:3'
                    - '3:2'
                    - '3:4'
                    - '4:3'
                    - '4:5'
                    - '5:4'
                    - '9:16'
                    - '16:9'
                    - '9:21'
                    - '21:9'
                  type: string
                bbox_list:
                  description: >-
                    Interactive edit regions. Outer array aligns with input
                    images; each image has a list of boxes; each box is [x1, y1,
                    x2, y2].
                  example:
                    - - - 0
                        - 0
                        - 512
                        - 512
                  items:
                    items:
                      items:
                        minimum: 0
                        type: integer
                      maxItems: 4
                      minItems: 4
                      type: array
                    type: array
                  type: array
                color_palette:
                  description: Custom color theme
                  example:
                    - hex: '#FF5733'
                      ratio: '1'
                  items:
                    properties:
                      hex:
                        description: 'Hex color, for example #FF5733'
                        type: string
                      ratio:
                        description: Color ratio
                        type: string
                    required:
                      - hex
                      - ratio
                    type: object
                  type: array
                enable_sequential:
                  description: Whether to enable sequential group image output
                  example: true
                  type: boolean
                images:
                  description: Array of input images, which can be data URL or image URL
                  items:
                    type: string
                  maxItems: 9
                  minItems: 1
                  type: array
                model:
                  description: Model name to use for the request
                  enum:
                    - alibaba/wan-2.7-image-pro-i2i-spicy
                  type: string
                'n':
                  default: 1
                  description: Number of outputs to generate
                  maximum: 12
                  minimum: 1
                  type: integer
                prompt:
                  description: Text prompt for generation
                  type: string
                prompt_expansion_enable:
                  default: true
                  description: >-
                    Whether to automatically expand the prompt for better
                    results
                  type: boolean
                seed:
                  description: Random seed for generation
                  maximum: 2147483647
                  minimum: -1
                  type: integer
                size:
                  description: Size
                  enum:
                    - 1k
                    - 2k
                  type: string
              required:
                - model
                - prompt
                - images
                - size
                - aspect_ratio
              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

````