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

# Z-Image Spicy Pro t2i



## OpenAPI

````yaml openapi-spec/z-image-spicy-pro-t2i.json POST /v1/images/generations/async
openapi: 3.1.0
info:
  description: >-
    Z-Image Spicy Pro t2i by Alibaba Cloud is a text-to-image AI model for
    text-to-image generation. It delivers high-quality results for rapid
    iteration and dependable production workflows.
  summary: API for Z-Image Spicy Pro t2i model
  title: Z-Image Spicy Pro t2i API
  version: 1.0.0
servers:
  - description: Model Verse API Server
    url: https://api.siray.ai
security: []
tags:
  - description: >-
      Z-Image Spicy Pro t2i - Z-Image Spicy Pro t2i by Alibaba Cloud is a
      text-to-image AI model for text-to-image generation. It delivers
      high-quality results for rapid iteration and dependable production
      workflows.
    name: Z-Image Spicy Pro t2i
paths:
  /v1/images/generations/async:
    post:
      tags:
        - Z-Image Spicy Pro t2i
      summary: Generate image
      description: Generate an image using the Z-Image Spicy Pro t2i model
      operationId: image_model-zaautobjyru8gfkb
      requestBody:
        content:
          application/json:
            example:
              height: 1
              model: alibaba/z-image-spicy-pro-t2i
              prompt: example_value
              prompt_expansion_enable: true
              seed: -1
              size: 1024x768
              width: 1
            schema:
              description: Request format for image generation models
              properties:
                height:
                  description: >-
                    Height of the output. Only takes effect when size is
                    "custom".
                  type: integer
                model:
                  description: Model name to use for the request
                  enum:
                    - alibaba/z-image-spicy-pro-t2i
                  type: string
                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: 9999999999
                  minimum: -1
                  type: integer
                size:
                  description: >-
                    Output size. Choose a preset, or set to "custom" to specify
                    an arbitrary size; the width and height fields only take
                    effect when size is "custom".
                  enum:
                    - 1024x768
                    - 768x1024
                    - 1024x1024
                    - 1024x1536
                    - 1536x1024
                    - 2560x1440
                    - 1440x2560
                    - custom
                  type: string
                width:
                  description: >-
                    Width of the output. Only takes effect when size is
                    "custom".
                  type: integer
              required:
                - model
                - prompt
                - 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

````