Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generates or edits images with the Gemini image model, and makes Veo videos when the google-genai SDK is installed.
26% 91%+65 ptsof test cases passed
Passed 21 of 23 test cases with the skill, and 6 of 23 without it.
This test ran on v1. v3 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
128 agent runs
scripts/generate.py makes an image (or a video) from a prompt and prints one JSON line on
stdout. Nothing to install for images: it calls the Gemini REST API with the standard library and
takes the key from the credential resolver (gemini-image: the managed key of a desktop install,
else GEMINI_API_KEY / GEMINI_VOICE_API_KEY). Never run pip for this skill; Pillow is
optional (input resizing, jpg/webp conversion) and google-genai is only needed for --video.
G="<this skill's directory>/scripts/generate.py"
python3 "$G" --prompt "A flat-design mascot for a note-taking app, teal and cream" # text-to-image
python3 "$G" --input photo.jpg --prompt "Replace the background with a sunset" # edit
python3 "$G" --prompt "A cute robot" --output "<workspace>/results/media/robot.png" # explicit path
python3 "$G" --video --prompt "A timelapse of a city at sunset" [--aspect 9:16] # video (SDK)
Output lands at <workspace>/results/media/generated-<ts>.png (.mp4 for video), which is inside
the attachment allowlist, so the file can be sent as-is. --model overrides IMAGE_MODEL /
VIDEO_MODEL (env, then this skill's manifest.json config).
stdout is exactly one JSON line; progress goes to stderr.
| line | exit | what to do |
|---|---|---|
{"ok": true, "path": "...", "model": "...", "note"?: "..."} | 0 | deliver the file (below) |
{"ok": false, "error": "no_key", ...} | 2 | say the no-key message, verbatim, and stop |
{"ok": false, "error": "refused", "message": ...} | 1 | say it was declined; offer a reworded prompt |
{"ok": false, "error": "no_image", "message": ...} | 1 | say what the model answered instead; offer a more concrete prompt |
{"ok": false, "error": "api_error", "message": ...} | 1 | say it failed on Google's side; one retry at most, then stop |
{"ok": false, "error": "sdk_missing", ...} (video) | 2 | say the SDK is missing; offer an image instead |
{"ok": false, "error": "bad_input", ...} | 2 | fix the input path; ask for the image again |
Every failure line carries a remedy; say it. Never imply an image exists when ok is false.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.