API 文档接口参考

Z-Image Turbo · 查询单个模型

模型对象包含 slug、name、type、vendor、params 和 providers。供应商条目包含其实际参数和价格档位。

GET/api/v1/models/{slug}公开接口 · 无需 API Key
z-image-turbo图片 · Alibaba模型详情与价格

此模型使用的接口

选择供应商可查看其实际参数限制。自动路由会选择支持所传参数的供应商。示例包含默认值和必填输入,请将示例媒体地址替换为可访问的文件。

请求

cURL
curl 'https://01router.com/api/v1/models/z-image-turbo'

输入参数

查询 / 路径参数
slug
string · path必填

模型目录中的 slug;项目密钥也可使用项目自定义的模型 slug。

可选值:"z-image-turbo"

响应示例

200 · application/json
{
  "slug": "z-image-turbo",
  "name": "Z-Image Turbo",
  "type": "image",
  "vendor": "Alibaba",
  "description": "Tongyi Z-Image Turbo: sub-second, very low-cost photoreal images with bilingual text.",
  "tags": [
    "text-to-image",
    "fast"
  ],
  "coverUrl": "",
  "params": [
    {
      "name": "prompt",
      "type": "text",
      "label": "Prompt",
      "required": true
    },
    {
      "name": "aspect_ratio",
      "type": "enum",
      "label": "Aspect ratio",
      "options": [
        "1:1",
        "16:9",
        "9:16",
        "4:3",
        "3:4"
      ],
      "default": "1:1"
    },
    {
      "name": "num_images",
      "type": "integer",
      "label": "Images",
      "min": 1,
      "max": 4,
      "default": 1
    },
    {
      "name": "seed",
      "type": "integer",
      "label": "Seed",
      "min": 0,
      "max": 2147483647
    }
  ],
  "providers": [
    {
      "provider": "fal",
      "providerName": "fal.ai",
      "discount": 90,
      "preferred": false,
      "params": [
        {
          "name": "prompt",
          "type": "text",
          "label": "Prompt",
          "required": true
        },
        {
          "name": "aspect_ratio",
          "type": "enum",
          "label": "Aspect ratio",
          "options": [
            "1:1",
            "16:9",
            "9:16",
            "4:3",
            "3:4"
          ],
          "default": "1:1"
        },
        {
          "name": "num_images",
          "type": "integer",
          "label": "Images",
          "min": 1,
          "max": 4,
          "default": 1
        },
        {
          "name": "seed",
          "type": "integer",
          "label": "Seed",
          "min": 0,
          "max": 2147483647
        }
      ],
      "prices": [
        {
          "unit": "image",
          "conditions": {},
          "priceMicros": 4500,
          "originalMicros": 5000,
          "credits": 1
        }
      ]
    },
    {
      "provider": "01router",
      "providerName": "01router",
      "discount": null,
      "preferred": true,
      "params": [
        {
          "name": "prompt",
          "type": "text",
          "label": "Prompt",
          "required": true
        },
        {
          "name": "aspect_ratio",
          "type": "enum",
          "label": "Aspect ratio",
          "options": [
            "1:1",
            "16:9",
            "9:16",
            "4:3",
            "3:4"
          ],
          "default": "1:1"
        },
        {
          "name": "num_images",
          "type": "integer",
          "label": "Images",
          "min": 1,
          "max": 4,
          "default": 1
        },
        {
          "name": "seed",
          "type": "integer",
          "label": "Seed",
          "min": 0,
          "max": 2147483647
        }
      ],
      "prices": [
        {
          "unit": "image",
          "conditions": {},
          "priceMicros": 4500,
          "originalMicros": null,
          "credits": 1
        }
      ]
    },
    {
      "provider": "wavespeed",
      "providerName": "WaveSpeedAI",
      "discount": 90,
      "preferred": false,
      "params": [
        {
          "name": "prompt",
          "type": "text",
          "label": "Prompt",
          "required": true
        },
        {
          "name": "aspect_ratio",
          "type": "enum",
          "label": "Aspect ratio",
          "options": [
            "1:1",
            "16:9",
            "9:16",
            "4:3",
            "3:4"
          ],
          "default": "1:1"
        },
        {
          "name": "num_images",
          "type": "integer",
          "label": "Images",
          "min": 1,
          "max": 4,
          "default": 1,
          "options": [
            1
          ]
        },
        {
          "name": "seed",
          "type": "integer",
          "label": "Seed",
          "min": 0,
          "max": 2147483647
        }
      ],
      "prices": [
        {
          "unit": "image",
          "conditions": {},
          "priceMicros": 4500,
          "originalMicros": 5000,
          "credits": 1
        }
      ]
    },
    {
      "provider": "kie",
      "providerName": "KIE AI",
      "discount": 90,
      "preferred": false,
      "params": [
        {
          "name": "prompt",
          "type": "text",
          "label": "Prompt",
          "required": true
        },
        {
          "name": "aspect_ratio",
          "type": "enum",
          "label": "Aspect ratio",
          "options": [
            "1:1",
            "16:9",
            "9:16",
            "4:3",
            "3:4"
          ],
          "default": "1:1"
        },
        {
          "name": "num_images",
          "type": "integer",
          "label": "Images",
          "min": 1,
          "max": 4,
          "default": 1,
          "options": [
            1
          ]
        },
        {
          "name": "seed",
          "type": "integer",
          "label": "Seed",
          "min": 0,
          "max": 2147483647
        }
      ],
      "prices": [
        {
          "unit": "image",
          "conditions": {},
          "priceMicros": 3600,
          "originalMicros": 4000,
          "credits": 1
        }
      ]
    },
    {
      "provider": "apimart",
      "providerName": "APIMart",
      "discount": 90,
      "preferred": false,
      "params": [
        {
          "name": "prompt",
          "type": "text",
          "label": "Prompt",
          "required": true
        },
        {
          "name": "aspect_ratio",
          "type": "enum",
          "label": "Aspect ratio",
          "options": [
            "1:1",
            "16:9",
            "9:16",
            "4:3",
            "3:4"
          ],
          "default": "1:1"
        },
        {
          "name": "num_images",
          "type": "integer",
          "label": "Images",
          "min": 1,
          "max": 4,
          "default": 1,
          "options": [
            1
          ]
        },
        {
          "name": "seed",
          "type": "integer",
          "label": "Seed",
          "min": 0,
          "max": 2147483647
        }
      ],
      "prices": [
        {
          "unit": "image",
          "conditions": {},
          "priceMicros": 9000,
          "originalMicros": 10000,
          "credits": 1
        }
      ]
    },
    {
      "provider": "evolink",
      "providerName": "EvoLink",
      "discount": 90,
      "preferred": false,
      "params": [
        {
          "name": "prompt",
          "type": "text",
          "label": "Prompt",
          "required": true
        },
        {
          "name": "aspect_ratio",
          "type": "enum",
          "label": "Aspect ratio",
          "options": [
            "1:1"
          ],
          "default": "1:1"
        },
        {
          "name": "num_images",
          "type": "integer",
          "label": "Images",
          "min": 1,
          "max": 4,
          "default": 1,
          "options": [
            1
          ]
        },
        {
          "name": "seed",
          "type": "integer",
          "label": "Seed",
          "min": 0,
          "max": 2147483647
        }
      ],
      "prices": [
        {
          "unit": "image",
          "conditions": {},
          "priceMicros": 3510,
          "originalMicros": 3900,
          "credits": 1
        }
      ]
    },
    {
      "provider": "atlascloud",
      "providerName": "AtlasCloud",
      "discount": 90,
      "preferred": false,
      "params": [
        {
          "name": "prompt",
          "type": "text",
          "label": "Prompt",
          "required": true
        },
        {
          "name": "aspect_ratio",
          "type": "enum",
          "label": "Aspect ratio",
          "options": [
            "1:1",
            "16:9",
            "9:16",
            "4:3",
            "3:4"
          ],
          "default": "1:1"
        },
        {
          "name": "num_images",
          "type": "integer",
          "label": "Images",
          "min": 1,
          "max": 4,
          "default": 1,
          "options": [
            1
          ]
        },
        {
          "name": "seed",
          "type": "integer",
          "label": "Seed",
          "min": 0,
          "max": 2147483647
        }
      ],
      "prices": [
        {
          "unit": "image",
          "conditions": {},
          "priceMicros": 4500,
          "originalMicros": 5000,
          "credits": 1
        }
      ]
    }
  ],
  "fromMicros": 3510,
  "fromOriginalMicros": 3900,
  "fromUnit": "image"
}

响应仅用于说明结构;ID、用量、价格和结果以实际请求为准。

输出字段

slug
string

模型目录中的 slug;项目密钥也可使用项目自定义的模型 slug。

params
array

参数定义:name、type、required、default、options,以及已配置的 min、max、maxItems、maxLength。

providers
array

可用供应商、各自的参数约束及公开价格档位。

给 AI 使用

把文档索引或完整接口文档交给 AI 编程助手,包含实时模型参数。