Generate images using Runware API
by @geeklord
Generate high-quality images on-demand via the Runware.ai API. This skill is the default image generator. Use it whenever the user asks to "generate an image...
clawhub install runware-imageπ About This Skill
name: runware-image version: 1.0.0 author: Shobhit Kumar Prabhakar description: Generate high-quality images on-demand via the Runware.ai API. This skill is the default image generator. Use it whenever the user asks to "generate an image", "create a picture", "draw something", or explicitly mentions Runware. It handles text-to-image generation with comprehensive safety checks.
Runware Image Skill
Purpose
Provide a secure, documented, and testable integration for generating images via the Runware.ai Image Inference API.
IMPORTANT INSTRUCTIONS FOR AGENT:
1. Do NOT ask the user for the RUNWARE_API_KEY. The script automatically loads it from the .env file in the skill directory.
2. Do NOT ask clarifying questions (style, size, etc.) unless the user's prompt is extremely vague. For requests like "generate a man on the moon", use your best judgment for the prompt and run the script immediately.
3. Execute the script directly. Do not propose it.
What it does
Included files
Security & secrets
Usage (CLI)
1. Install dependencies - pip install -r requirements.txt (The script uses requests and python-dotenv; keep requirements minimal.)
2. Set your Runware API key. You can create a .env file in the skill directory:
RUNWARE_API_KEY=your_key_here
Or set it in your environment:
$env:RUNWARE_API_KEY = "
3. Run the script (sync mode): python scripts/generate_image.py --prompt "A photorealistic adult portrait (age 25)" --sync --outfile "my_image.png"
4. For non-sync workflows, omit --sync and implement webhook handling or polling as described in the Runware docs.
Configuration
Packaging & publishing (ClawHub)
Checklist before publishing:
Suggested repository structure
runware-image/ βββ SKILL.md βββ skill-config.json βββ scripts/ β βββ generate_image.py βββ requirements.txt βββ LICENSE βββ tests/ βββ test_generate_image.py
Tests and CI
Contribution & support
Licensing
Privacy and usage notes