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

# Z-Image Turbo

> Generate images using Tongyi Wanxiang Z-Image Turbo model (async, 6B parameters ultra-fast text-to-image)

Generate images ultra-fast using [Alibaba Cloud](https://tongyi.aliyun.com/wan)'s Tongyi Wanxiang Z-Image Turbo model.

**Key Features:**

* **Lowest Price** - The most affordable image generation model on our platform
* **Fastest Speed** - 6B parameter distilled model, sub-second inference on H800 GPU with only 8 steps, the fastest on our platform
* **Bilingual Text Rendering** - Excellent Chinese and English text rendering in images
* **Photorealistic Quality** - Outstanding skin texture, lighting, depth of field in portraits and realistic scenes
* **Open Source Commercial** - Apache-2.0 license, achieving SOTA among open-source models


## OpenAPI

````yaml /en/openapi.yaml POST /generate/f/z-image-turbo
openapi: 3.0.0
info:
  contact:
    email: support@sinancode.com
    name: API Support
    url: https://sinancode.com/support
  description: AI Model Task Scheduling Platform API
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  termsOfService: https://sinancode.com/terms-of-service
  title: TikTomato API
  version: '1.0'
servers:
  - url: https://api.sinancode.com/v1
    description: Production server
security: []
paths:
  /generate/f/z-image-turbo:
    post:
      tags:
        - public
      summary: Z-Image Turbo Image Generation
      description: >-
        Generate images using Tongyi Wanxiang Z-Image Turbo model (async, 6B
        parameters ultra-fast text-to-image)
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/f.CreateZImageTurboTaskRequest'
        description: Task parameters
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dto.CreateTaskResponse'
        '400':
          description: Invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apierror.ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apierror.ErrorResponse'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apierror.ErrorResponse'
      security:
        - AccessToken: []
components:
  schemas:
    f.CreateZImageTurboTaskRequest:
      properties:
        enable_safety_checker:
          default: true
          description: Enable safety checker (default true)
          example: true
          type: boolean
        image_size:
          default: landscape_4_3
          description: Image size (preset value)
          enum:
            - square_hd
            - square
            - portrait_4_3
            - portrait_16_9
            - landscape_4_3
            - landscape_16_9
          example: landscape_4_3
          type: string
        num_images:
          default: 1
          description: Number of images to generate (1-4 images, default 1)
          example: 1
          maximum: 4
          minimum: 1
          type: integer
        output_format:
          default: png
          description: outputformat（jpeg/png/webp，default png）
          enum:
            - jpeg
            - png
            - webp
          example: png
          type: string
        prompt:
          description: prompttext（required）
          example: A hyper-realistic portrait of a cat
          minLength: 1
          type: string
        seed:
          description: Random seed (same seed + same prompt = same result)
          example: -1
          type: integer
      required:
        - prompt
      type: object
    dto.CreateTaskResponse:
      properties:
        task_id:
          description: Task ID
          example: 01234567-89ab-cdef-0123-456789abcdef
          type: string
      required:
        - task_id
      type: object
    apierror.ErrorResponse:
      properties:
        error_code:
          description: Machine-readable error code (e.g., TASK.INVALID_PARAMS)
          type: string
        message:
          description: User-friendly error message
          type: string
      type: object
  securitySchemes:
    AccessToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Please use your API Token for authentication

````