Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generates or edits images through Google Gemini or any OpenAI-compatible endpoint, with explicit backend selection.
Use this skill ↓6 of 24 test cases passed with the skill.
3 of 3 safety checks passed
Not used yet
Turn a text prompt — optionally with reference images — into one or more images
via one of two explicit backends. --backend has no default — always pick
one (gemini or openai), or set IMAGE_BACKEND. The script does the API
call, file saving, and configuration; your job is to pick the backend, craft a
strong prompt, and wire up the flags.
gemini — Google's native Gemini API via google-genai. Full feature
set: --aspect-ratio, --size tiers (1K/2K/4K), and multi-image
edit/compose (-i a.png -i b.png). Use GEMINI_API_KEY / GEMINI_IMAGE_MODEL.openai — any OpenAI-compatible image endpoint (OpenAI official,
DashScope, new-api gateways, ...). Use OPENAI_API_KEY / OPENAI_BASE_URL /
OPENAI_IMAGE_MODEL. Supports gpt-image-2, dall-e-3, etc.uv available (the script is a self-contained uv run script; deps install on first run).
The API key for the chosen backend. The script resolves it progressively, so any one works:
export GEMINI_API_KEY=... (gemini backend) or export OPENAI_API_KEY=... (openai backend), or.env file (checked in order: $PWD/.env, then ${CLAUDE_PLUGIN_ROOT}/.env), or--api-key ... on the command line.CRITICAL -- Never paste the API key into chat or commit a .env. If the key is missing,
the script prints exactly how to set it — relay that to the user rather than guessing.
A one-line request like "draw a fox in a spacesuit" needs no questions — just generate. Ask (via AskUserQuestion) only when a choice would materially change the result and you cannot reasonably default it, e.g. aspect ratio for a "banner vs. avatar", or whether an attached image should be edited vs. used as style reference.
Read references/prompting.md before writing a non-trivial prompt. In short: describe
subject, composition, lighting, style, and mood in concrete terms; put any literal text to
render in quotes; and for edits, state what to change AND what to keep. A vivid one-paragraph
Next to this one in the catalogue, plus more from the same author.