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

> 使用通义万相 Z-Image Turbo 免费版本生成图片（异步）

使用[阿里云](https://tongyi.aliyun.com/wan)通义万相 Z-Image Turbo 模型**免费**生成图片。

<Warning>
  这是免费版本，功能有限。如需生产环境使用，请考虑付费版 [Z-Image Turbo](/cn/api-reference/endpoint/z-image-turbo)。
</Warning>

**模型特点：**

* **完全免费** - 无需付费即可生成图片
* **速度快** - 6B 参数蒸馏模型，推理速度快
* **双语文字渲染** - 精准渲染中英文文字，解决乱码、笔画缺失问题
* **多分辨率支持** - 支持多种长宽比（1024x1024、1280x720 等）


## OpenAPI

````yaml /cn/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 模型任务调度平台 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 图片生成
      description: 使用通义万相 Z-Image Turbo 免费版本生成图片（异步）
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/hf.CreateZImageTurboFreeTaskRequest'
        description: 任务参数
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dto.CreateTaskResponse'
        '400':
          description: 参数错误
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apierror.ErrorResponse'
        '401':
          description: 未授权
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apierror.ErrorResponse'
        '500':
          description: 服务器错误
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apierror.ErrorResponse'
      security:
        - AccessToken: []
components:
  schemas:
    hf.CreateZImageTurboFreeTaskRequest:
      properties:
        nsfw_threshold:
          description: NSFW 检测宽松度，值越大越宽松。0.0 最严格，默认 0.02
          example: 0.02
          maximum: 1
          minimum: 0
          type: number
        num_images:
          description: 生成图片数量，1-4
          example: 1
          maximum: 4
          minimum: 1
          type: integer
        prompt:
          description: 提示词文本（必填）
          example: A beautiful sunset over mountains
          minLength: 1
          type: string
        resolution:
          description: 分辨率设置（支持 1024/1280/1536 系列）
          enum:
            - 1024x1024
            - 1152x896
            - 896x1152
            - 1280x720
            - 720x1280
            - 1280x1280
            - 1440x1120
            - 1536x1024
            - 1536x864
            - 1536x1536
            - 1728x1344
            - 2048x1152
            - 1152x2048
          example: 1024x1024
          type: string
        seed:
          description: 随机种子，-1 表示随机
          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: 请使用您的 API Token 进行认证

````