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

> 通義萬相 Z-Image Turbo モデルを使用して画像を生成（非同期、6B パラメータ超高速テキストから画像生成）

[アリババクラウド](https://tongyi.aliyun.com/wan) Tongyi Wanxiang Z-Image Turbo モデルを使用して超高速で画像を生成します。

**モデルの特徴:**

* **最低価格** - 現在プラットフォーム上で最も安価な画像生成モデル
* **最速** - 6B パラメータ蒸留モデル、8 ステップ推論、H800 でサブ秒レイテンシ、プラットフォーム最速
* **バイリンガルテキストレンダリング** - 中国語と英語のテキストを正確にレンダリング、文字化けや画数欠落の問題を解決
* **写真レベルのリアリズム** - ポートレートとリアルなシーンの肌質感、光と影、被写界深度のディテールが優れている
* **オープンソース商用可** - Apache-2.0 ライセンス、オープンソースモデルで SOTA レベルを達成


## OpenAPI

````yaml /ja/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モデルタスクスケジューリングプラットフォーム 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: 本番サーバー
security: []
paths:
  /generate/f/z-image-turbo:
    post:
      tags:
        - public
      summary: Z-Image Turbo 画像生成
      description: 通義萬相 Z-Image Turbo モデルを使用して画像を生成（非同期、6B パラメータ超高速テキストから画像生成）
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/f.CreateZImageTurboTaskRequest'
        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:
    f.CreateZImageTurboTaskRequest:
      properties:
        enable_safety_checker:
          default: true
          description: セーフティチェッカーを有効にする（デフォルト true）
          example: true
          type: boolean
        image_size:
          default: landscape_4_3
          description: 画像サイズ（プリセット値）
          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: 生成する画像の数（1-4枚、デフォルト 1）
          example: 1
          maximum: 4
          minimum: 1
          type: integer
        output_format:
          default: png
          description: 出力形式（jpeg/png/webp、デフォルト png）
          enum:
            - jpeg
            - png
            - webp
          example: png
          type: string
        prompt:
          description: プロンプトテキスト（必須）
          example: A hyper-realistic portrait of a cat
          minLength: 1
          type: string
        seed:
          description: ランダムシード（同じシード + 同じプロンプト = 同じ結果）
          example: -1
          type: integer
      required:
        - prompt
      type: object
    dto.CreateTaskResponse:
      properties:
        task_id:
          description: タスクID
          example: 01234567-89ab-cdef-0123-456789abcdef
          type: string
      required:
        - task_id
      type: object
    apierror.ErrorResponse:
      properties:
        error_code:
          description: '機械可読なエラーコード（例: TASK.INVALID_PARAMS）'
          type: string
        message:
          description: ユーザーフレンドリーなエラーメッセージ
          type: string
      type: object
  securitySchemes:
    AccessToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: API Tokenを使用して認証を行ってください

````