image-gen

Solid

Generate a single image from a text prompt using the MiniMax image generation API. Use when the user asks to create, generate, or render an image from a prompt and explicit width/height.

AI & Automation 103 stars 7 forks Updated today MIT

Install

View on GitHub

Quality Score: 82/100

Stars 20%
67
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# image-gen Generate one image from a text prompt via MiniMax `image-01` model. The output file is written to the filename you pass as the 4th argument (relative to the caller's cwd). The script path is resolved relative to this SKILL.md (not the caller's cwd), so it works from any directory. It accepts exactly four positional arguments: prompt, width, height, output_filename. ```bash SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" python3 "$SCRIPT_DIR/scripts/image-gen.py" "<prompt>" <width> <height> <output_filename> ``` | Argument | Type | Constraints | |---|---|---| | prompt | string | ≤ 1500 chars; describe subject + style + mood | | width | int | 512–2048, must be a multiple of 8 | | height | int | 512–2048, must be a multiple of 8 | | output_filename | string | Filename to write the image to, relative to cwd (e.g. `img1.png`). The file extension is preserved as-is. | ## Output - File: `<output_filename>` (relative to cwd — the directory the command is invoked from) - Format: raw image bytes base64-decoded from the API response; extension is whatever you pass (e.g. `.png`, `.jpeg`) - Always overwrites an existing file at the same path After running, confirm the file exists with `ls -lh <output_filename>` and report the absolute path to the user. ## Prompt writing tips Be explicit about style to avoid photorealistic defaults. Example style keywords: - **Flat / UI / vector**: `UI style`, `flat illustration`, `vector art`, `minimalist`, `clean cut-and...

Details

Author
Sma1lboy
Repository
Sma1lboy/rove
Created
3 months ago
Last Updated
today
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category