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

> Generate images using Tongyi Wanxiang Z-Image Turbo free version (async)

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

<Warning>
  This is the free version with limited features. For production use, please consider the paid [Z-Image Turbo](/en/api-reference/endpoint/z-image-turbo) version.
</Warning>

**Key Features:**

* **FREE** - No cost for image generation
* **Fast Speed** - 6B parameter distilled model with quick inference
* **Bilingual Text Rendering** - Excellent Chinese and English text rendering in images
* **Multiple Resolutions** - Support for various aspect ratios (1024x1024, 1280x720, etc.)


## OpenAPI

````yaml /en/openapi.yaml POST /generate/hf/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/hf/z-image-turbo:
    post:
      tags:
        - public
      summary: Z-Image Turbo Free Image Generation
      description: Generate images using Tongyi Wanxiang Z-Image Turbo free version (async)
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/hf.CreateZImageTurboFreeTaskRequest'
        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:
    hf.CreateZImageTurboFreeTaskRequest:
      properties:
        nsfw_threshold:
          description: >-
            NSFW detection tolerance, higher values are more permissive. 0.0 is
            strictest, default 0.02
          example: 0.02
          maximum: 1
          minimum: 0
          type: number
        num_images:
          description: generationimagecount，1-4
          example: 1
          maximum: 4
          minimum: 1
          type: integer
        prompt:
          description: prompttext（required）
          example: A beautiful sunset over mountains
          minLength: 1
          type: string
        resolution:
          description: Resolution settings (supports 1024/1280/1536 series)
          enum:
            - 1024x1024
            - 1152x896
            - 896x1152
            - 1280x720
            - 720x1280
            - 1280x1280
            - 1440x1120
            - 1536x1024
            - 1536x864
            - 1536x1536
            - 1728x1344
            - 2048x1152
            - 1152x2048
          example: 1024x1024
          type: string
        seed:
          description: Random seed, -1 means random
          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

````