返回顶部
a

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 outputs, controlling size/seed/prompt_extend, or documenting request/response mapping for Z-Image.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.3
安全检测
已通过
1,130
下载量
0
收藏
概述
安装方式
版本历史

alicloud-ai-image-zimage-turbo

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) ```bash 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 ```bash 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 `512*512` and `2048*2048`. - Prefer common sizes like `1024*1024`, `1280*720`, `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 ```bash 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.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 alicloud-ai-image-zimage-turbo-1776419938 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 alicloud-ai-image-zimage-turbo-1776419938 技能

通过命令行安装

skillhub install alicloud-ai-image-zimage-turbo-1776419938

下载 Zip 包

⬇ 下载 alicloud-ai-image-zimage-turbo v1.0.3

文件大小: 6.29 KB | 发布时间: 2026-4-17 20:03

v1.0.3 最新 2026-4-17 20:03
batch publish from alicloud-skills on 2026-03-11

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部