← 返回
内容创作 Key 中文

Alicloud Ai Image Zimage Turbo

Generate images with Alibaba Cloud Model Studio Z-Image Turbo (z-image-turbo) via DashScope multimodal-generation API. Use when creating text-to-image output...
使用阿里云 Model Studio Z‑Image Turbo(z‑image‑turbo)通过 DashScope 多模态生成 API 生成图像,适用于文本到图像场景。
cinience
内容创作 clawhub v1.0.3 2 版本 99812 Key: 需要
★ 0
Stars
📥 1,593
下载
💾 99
安装
2
版本
#latest

概述

Category: provider

Model Studio Z-Image Turbo

Use Z-Image Turbo for fast text-to-image generation via the DashScope multimodal-generation API.

Critical model name

Use ONLY this exact model string:

  • z-image-turbo

Prerequisites

  • Set DASHSCOPE_API_KEY in your environment, or add dashscope_api_key to ~/.alibabacloud/credentials (env takes precedence).
  • Choose region endpoint (Beijing or Singapore). If unsure, pick the most reasonable region or ask the user.

Normalized interface (image.generate)

Request

  • prompt (string, required)
  • size (string, optional) e.g. 1024*1024
  • seed (int, optional)
  • prompt_extend (bool, optional; default false)
  • base_url (string, optional) override API endpoint

Response

  • image_url (string)
  • width (int)
  • height (int)
  • prompt (string)
  • rewritten_prompt (string, optional)
  • reasoning (string, optional)
  • request_id (string)

Quick start (curl)

curl -sS 'https://dashscope.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation' \
  -H 'Content-Type: application/json' \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY" \
  -d '{
    "model": "z-image-turbo",
    "input": {
      "messages": [
        {
          "role": "user",
          "content": [{"text": "A calm lake at dawn, a lone angler casting a line, cinematic lighting"}]
        }
      ]
    },
    "parameters": {
      "size": "1024*1024",
      "prompt_extend": false
    }
  }'

Local helper script

python skills/ai/image/alicloud-ai-image-zimage-turbo/scripts/generate_image.py \
  --request '{"prompt":"a fishing scene at dawn, cinematic, realistic","size":"1024*1024"}' \
  --output output/ai-image-zimage-turbo/images/fishing.png \
  --print-response

Size notes

  • Total pixels must be between 512512 and 20482048.
  • Prefer common sizes like 10241024, 1280720, 1536*864.

Cost note

  • prompt_extend=true is billed higher than false. Only enable when you need rewritten prompts.

Output location

  • Default output: output/ai-image-zimage-turbo/images/
  • Override base dir with OUTPUT_DIR.

Validation

mkdir -p output/alicloud-ai-image-zimage-turbo
for f in skills/ai/image/alicloud-ai-image-zimage-turbo/scripts/*.py; do
  python3 -m py_compile "$f"
done
echo "py_compile_ok" > output/alicloud-ai-image-zimage-turbo/validate.txt

Pass criteria: command exits 0 and output/alicloud-ai-image-zimage-turbo/validate.txt is generated.

Output And Evidence

  • Save artifacts, command outputs, and API response summaries under output/alicloud-ai-image-zimage-turbo/.
  • Include key parameters (region/resource id/time range) in evidence files for reproducibility.

Workflow

1) Confirm user intent, region, identifiers, and whether the operation is read-only or mutating.

2) Run one minimal read-only query first to verify connectivity and permissions.

3) Execute the target operation with explicit parameters and bounded scope.

4) Verify results and save output/evidence files.

References

  • references/api_reference.md for request/response schema and regional endpoints.
  • references/sources.md for official docs.

版本历史

共 2 个版本

  • v1.0.3 当前
    2026-03-28 23:06 安全 安全
  • v1.0.2
    2026-03-11 11:09

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 860 📥 199,712
ai-intelligence

Volcengine Ai Audio Tts

cinience
在火山引擎音频服务上进行文本转语音生成。适用于需要配音、多语言语音输出、声音选择或TTS故障排除的场景。
★ 1 📥 2,183
content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,185