返回顶部
a

aliyun-zimage-turbo阿里云Z图像

Use when generating 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.0
安全检测
已通过
126
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

aliyun-zimage-turbo

分类:提供商

Model Studio Z-Image Turbo

通过DashScope多模态生成API,使用Z-Image Turbo实现快速文本到图像生成。

关键模型名称

仅使用以下精确模型字符串:

  • - z-image-turbo

前提条件

  • - 在环境中设置DASHSCOPEAPIKEY,或将dashscopeapikey添加到~/.alibabacloud/credentials(环境变量优先)。
  • 选择区域端点(北京或新加坡)。如果不确定,请选择最合理的区域或询问用户。

标准化接口(image.generate)

请求

  • - prompt(字符串,必填)
  • size(字符串,可选)例如 1024*1024
  • seed(整数,可选)
  • promptextend(布尔值,可选;默认值为false)
  • baseurl(字符串,可选)覆盖API端点

响应

  • - imageurl(字符串)
  • width(整数)
  • height(整数)
  • prompt(字符串)
  • rewrittenprompt(字符串,可选)
  • reasoning(字符串,可选)
  • request_id(字符串)

快速开始(curl)

bash
curl -sS https://dashscope.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation \
-H Content-Type: application/json \
-H Authorization: Bearer $DASHSCOPEAPIKEY \
-d {
model: z-image-turbo,
input: {
messages: [
{
role: user,
content: [{text: 黎明时分的宁静湖泊,一位孤独的垂钓者正在抛竿,电影级光影}]
}
]
},
parameters: {
size: 1024*1024,
prompt_extend: false
}
}

本地辅助脚本

bash
python skills/ai/image/aliyun-zimage-turbo/scripts/generate_image.py \
--request {prompt:黎明时分的垂钓场景,电影级,逼真,size:1024*1024} \
--output output/ai-image-zimage-turbo/images/fishing.png \
--print-response

尺寸说明

  • - 总像素数必须在512512到20482048之间。
  • 优先使用常见尺寸,如10241024、1280720、1536*864。

成本说明

  • - prompt_extend=true的计费高于false。仅在需要重写提示词时启用。

输出位置

  • - 默认输出:output/ai-image-zimage-turbo/images/
  • 使用OUTPUT_DIR覆盖基础目录。

验证

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

通过标准:命令退出码为0,且生成了output/aliyun-zimage-turbo/validate.txt。

输出与证据

  • - 将工件、命令输出和API响应摘要保存在output/aliyun-zimage-turbo/目录下。
  • 在证据文件中包含关键参数(区域/资源ID/时间范围),以确保可复现性。

工作流程

1) 确认用户意图、区域、标识符,以及操作是只读还是修改型。
2) 首先运行一个最小的只读查询,以验证连接和权限。
3) 使用明确的参数和限定范围执行目标操作。
4) 验证结果并保存输出/证据文件。

参考资料

  • - references/api_reference.md:请求/响应模式和区域端点。
  • references/sources.md:官方文档。

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 aliyun-zimage-turbo-1775885176 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 aliyun-zimage-turbo-1775885176 技能

通过命令行安装

skillhub install aliyun-zimage-turbo-1775885176

下载

⬇ 下载 aliyun-zimage-turbo v1.0.0(免费)

文件大小: 6.12 KB | 发布时间: 2026-4-12 08:58

v1.0.0 最新 2026-4-12 08:58
Initial release of aliyun-zimage-turbo skill.

- Enables image generation using Alibaba Cloud Model Studio Z-Image Turbo via the DashScope API.
- Supports control of prompt, size, seed, prompt extension, and API endpoint.
- Provides detailed request/response mapping and example usage with curl and Python scripts.
- Includes guidance for validation, output organization, and reproducibility.
- Documents prerequisites, model string, cost notes, and workflow best practices.

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

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

p2p_official_large
返回顶部