AgentSkillsCN

image-gen-road2all

通过 Road2all(兼容 OpenAI 的图像 API)生成图像,并按日期保存至工作区下载目录。

SKILL.md
--- frontmatter
name: image-gen-road2all
description: Generate images via Road2all (OpenAI-compatible) Images API and save to workspace downloads by date.
metadata: {"openclaw":{"emoji":"🖼️"}}

image-gen-road2all

Generate images using the Road2all Images API (OpenAI-compatible), save them under:

  • {workspace}/downloads/YYYY-MM-DD/

Inputs

  • prompt (required)
  • size (optional, default: 1024x1024) — e.g. 1024x1536, 1536x1024
  • n (optional, default: 1)
  • model (optional, default: gpt-image-1.5)

Auth

Reads Road2all config from:

  • ~/.clawdbot/clawdbot.jsonmodels.providers.road2all.baseUrl
  • ~/.clawdbot/clawdbot.jsonmodels.providers.road2all.apiKey

Optionally can be overridden by env:

  • ROAD2ALL_BASE_URL
  • ROAD2ALL_API_KEY

Output

Returns a JSON payload with generated file paths.