generate_image.py

Tools · Pictures and footage · MIT

What it does

A small script that sends a prompt, and optionally an image to edit, to Google's Gemini image API and saves a PNG at 1K, 2K or 4K.

Get it

uv run skills/threejs-image-generator/scripts/generate_image.py --prompt "..." --filename out.png [--input-image in.png] [--resolution 1K|2K|4K]

Source on GitHub
Needs

Uv (fetches google-genai and pillow); GEMINI_API_KEY

License

MIT

License notes are on the pack's page

From

Three.js Game Skills

Everything from Three.js Game Skills in the gallery

Back to the Asset Library