360 Secure SkillHub
360 安全技能中心

Free Image Generation Skill

无需 API key 的免费文生图技能:运行 scripts/perchance_generate.py 将文本提示提交到 image-generation.perchance.org 生成图片并保存到本地文件,内置重试与退避,支持 portrait/square/landscape 形状及负面提示、guidance、retries、timeout 参数;setup_env.sh + requi…

mrilaikram
mrilaikram
热度 91.47
最近更新 2026-05-17 13:19:28
分类:创作依赖:代码执行 / 读写文件 / 第三方 API应用场景:图像生成 / 自动化脚本

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add free-image-generation-skill
Metadata
name
free-image-generation-skill
description
Professional free image generation skill for agents. No API key required. Generate images from text with resilient retry/backoff and clean local file output. Supports free, high-volume usage patterns with responsible request pacing. Use when users request prompt-to-image generation or image bot automation.

Free Image Generation Skill

No API key required.

Run a clean production workflow:

  1. install dependencies,
  2. generate image from prompt,
  3. save output.

Quick Start (Fresh Setup)

  1. Install dependencies:
bash scripts/setup_env.sh
  1. Generate one image:
python3 scripts/perchance_generate.py \
  --prompt "cinematic isometric office, dusk, neon reflections" \
  --out ./media/free-image-sample.jpg \
  --shape square

Reliability Rules

  • Default retries: 3
  • Backoff: built into script
  • On failure, return exact error and propose retry
  • Designed for free, repeated usage with responsible pacing
  • Keep usage responsible and moderate

Parameters

perchance_generate.py supports:

  • --prompt (required)
  • --out (required)
  • --shape (portrait|square|landscape)
  • --negative
  • --guidance
  • --retries
  • --timeout

Resources

  • Main generator: scripts/perchance_generate.py
  • Dependency setup: scripts/setup_env.sh, scripts/requirements.txt