360 Secure SkillHub
360 安全技能中心

shortart image generator 图片 生成

该 Skill 通过 ShortArt API 提供三种图片生成模式:文本/参考图生图、电商商品套图和模板生图;包含鉴权、模板查询、任务轮询和图片下载脚本。需要 Python 3.7+、requests 与 SHORTART_API_KEY,生成时会将提示词和参考图片上传至 ShortArt 服务。

yige666s
yige666s
热度 55.01
最近更新 2026-05-11 17:33:38
分类:创作依赖:代码执行 / 第三方 API / 读写文件应用场景:图像生成 / 品牌素材 / 社交媒体 / 模板

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add shortart-image-generator
Metadata
name
shortart-image-generator
description
Generate images using ShortArt AI platform with three modes: (1) Text-to-image and image-to-image generation for general artwork creation, (2) E-commerce suit images for product photography and Amazon listings, (3) Template-based image generation with customizable parameters. REQUIRES: SHORTART_API_KEY environment variable (get from https://shortart.ai/home). Use when users explicitly request: creating images, drawing, generating pictures, making artwork, product images, suit images, template images, or visual content creation using ShortArt. Triggers on: 生成图片, 画一张, 帮我画, 制作图片, 套图, 生成套图, 主图, 商品主图, 模版生图, 用模版生成图片, 推荐模版, generate image, create image, draw, visualize, suit image, product main image, template image generation, image-to-image, 以图生图.
homepage
https://shortart.ai
allowed-tools
Bash(python3 *)
metadata
{"openclaw":{"emoji":"🎨","requires":{"env":["SHORTART_API_KEY"]},"primaryEnv":"SHORTART_API_KEY"},"dependencies":{"python":">=3.7","pip":["requests"]}}
compatibility
Requires Python 3.7+, requests library (pip install requests), and SHORTART_API_KEY environment variable

ShortArt Image Generator

Unified interface for generating images using ShortArt AI with three specialized modes.

Authentication Setup

SHORTART_API_KEY is required. Visit https://shortart.ai/home and click on your profile picture to get the key. Configure via:

Method 1: OpenClaw Config

{
  "skills": {
    "entries": {
      "shortart-image-generator": {
        "env": { "SHORTART_API_KEY": "your_api_key_here" }
      }
    }
  }
}

Method 2: Shell Environment

export SHORTART_API_KEY="your_api_key_here"

IMPORTANT: After setting the environment variable, restart your terminal or run source ~/.zshrc to apply the changes.

Mode Selection

Identify user intent and route to appropriate mode:

Mode 1: General Image Generation

When to use: User wants to create artwork from text descriptions or reference images Triggers: "画一张图", "生成图片", "create image", "draw", "以图生图" See: references/text-to-image.md

Mode 2: E-commerce Suit Images

When to use: User wants product photography or Amazon listing images Triggers: "套图", "生成套图", "组图", "suit image", "Image Set", "Photo Gallery", "A Set of Photos" See: references/suit-image.md

Mode 3: Template-based Generation

When to use: User wants to use templates for posters, social media graphics, or marketing materials Triggers: "模版生图", "用模版生成图片", "template image generation", "create from template", "推荐模版", "recommend template", "模版推荐" See: references/template-image.md

Quick Start

  1. Verify API key: echo $SHORTART_API_KEY
  2. Identify user intent from triggers above
  3. Read the corresponding reference file for detailed workflow
  4. Execute using scripts in the appropriate subdirectory