openrouter-image-generatelisted
Install: claude install-skill Yuki001/game-dev-skills
# OpenRouter Image Generation
Use this skill to generate images with OpenRouter's dedicated Image API and save the returned base64 image bytes to files.
## Default workflow
1. Use the OpenRouter API key from the current environment first. If it is missing, rely on the bundled script's automatic lookup of the nearest project `.env` file containing `OPENROUTER_API_KEY`, unless the user explicitly provides another environment variable name or env file path.
2. Pick a model from the user's request. If no model is specified, use `bytedance-seed/seedream-4.5` as a practical default and mention that the user can override it.
3. Use the bundled script at `scripts/openrouter_image_generate.py` rather than constructing requests manually.
4. Save generated images to a user-visible output directory, defaulting to the current working directory if the user did not specify one.
5. Do not print API keys. Do not put API keys directly on the command line because shell history may capture them.
## Bundled script
Run from this skill directory or pass the script path directly:
```bash
python scripts/openrouter_image_generate.py generate \
--prompt "a red panda astronaut floating in space, studio lighting" \
--model "bytedance-seed/seedream-4.5" \
--resolution 2K \
--aspect-ratio 16:9 \
--output-dir ./outputs
```
The script reads `OPENROUTER_API_KEY` from the current environment first. If it is not set, it automatically searches from the current working directory upward for the ne