Generate or edit a single image via OpenRouter (google/gemini-3.1-flash-image-preview by default). Accepts a text prompt and optional --input-image for image-to-image editing. Trigger when the user asks for an AI image, illustration, concept art, product render, or wants to modify an existing image.
68
83%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Generates one PNG from a text prompt (optionally seeded with an input
image for editing). Used by meta-short-drama for per-shot first-frame
generation, but standalone for any single-image request.
with:)| key | required | default | notes |
|---|---|---|---|
prompt | yes | — | Plain English prompt. Append --ar 9:16 etc. as text. |
filename | yes | — | Output path. Relative resolves against process cwd. |
aspect_ratio | no | 1:1 | One of 1:1, 3:2, 2:3, 4:3, 3:4, 16:9, 9:16. |
image_size | no | 1K | 1K, 2K, 4K. Higher = slower + costlier. |
model | no | google/gemini-3.1-flash-image-preview | Any OpenRouter image-capable model. |
max_retries | no | 0 | Compatibility budget used only for a failure proven to occur before a paid submit. Provider responses and ambiguous transport failures always stop. |
fallback_model | no | "" | Compatibility fallback used only after a proven safe pre-submit failure. It is never selected in response to a provider result or ambiguous paid POST. |
placeholder_on_fail | no | no | yes / no. When every model refuses, write a 720x1280 solid-colour PNG with a "Scene placeholder" label so a downstream merge step still has a file in this slot. |
To pass an input image for edit mode, invoke the script directly with
--input-image PATH. The meta-skill engine does not route input images
through with: by convention; for edit workflows call the script.
API-key resolution order (first hit wins):
--api-key CLI argument (rarely used; meta-skills don't pass it)OPENSQUILLA_META_CAPABILITY_PROVIDER,
OPENSQUILLA_META_CAPABILITY_API_KEY, and
OPENSQUILLA_META_CAPABILITY_BASE_URL. An optional
OPENSQUILLA_META_CAPABILITY_PROXY applies only to requests to that
matching provider API. These internal, volatile values are scoped to this
bundled skill and are not written to argv, run inputs, or transcripts.OPENSQUILLA_META_OPENROUTER_API_KEY, retained for older parent runtimes
and bound only to OpenRouter's official API origin.OPENROUTER_API_KEY environment variable for direct CLI use, also bound
only to OpenRouter's official API origin.The parent-injected generic key is accepted only when its provider and base URL
are present as one tuple. --base-url may change the path for a parent or
canonical credential but cannot change its scheme, hostname, or effective
port. To intentionally use a different API origin from the direct CLI, pass
both --api-key and --base-url. Authenticated requests reject URL userinfo,
queries, fragments, malformed ports, and redirects before a key can be sent.
The child script never discovers or parses opensquilla.toml from its current
working directory and never lets a workspace choose an arbitrary
llm.api_key_env. Configure the active Gateway normally; the parent runtime
performs that resolution before launching this bundled subprocess.
No Google Gemini key needed — OpenRouter routes the request to the Gemini image model on the user's behalf.
When a parent-resolved profile-pool credential receives an authentication, credit, or rate-limit failure, OpenSquilla parks that key for the next explicitly authorized run. It never repeats the current paid generation automatically.
Prints the absolute path of the saved PNG, then an
IMAGE_GENERATION_RECEIPT: {...} line on stdout. A matching sanitized
receipt is saved as <filename>.receipt.json; it records provider,
model, provider request id when available, and whether the file is a
real model result or a local placeholder. It never contains the API key
or prompt. Provider image MIME, decoded format, dimensions, and payload
integrity are verified and supported formats are normalized to PNG before a
generated receipt is written. Consumers must not report a placeholder receipt as a real
image-generation success. A provider result without a request id is
marked generated_unverified and likewise cannot satisfy verified E2E
provenance. Non-zero exit on any hard error; stderr carries the
diagnostic.
Image generation is a paid, non-idempotent operation. The script never submits a second paid request automatically after any provider response, timeout, lost connection, malformed response, policy refusal, or other ambiguous outcome. The retry/fallback inputs remain accepted for compatibility, but can advance only from an explicitly classified pre-submit failure.
no OpenRouter API key found → for direct CLI use, set
OPENROUTER_API_KEY or pass --api-key; for a meta-skill run, configure the
Gateway's OpenRouter provider connection and retry from that Gateway.OpenRouter returned no image → the model rejected the prompt
(content moderation or unsupported request). Rewrite prompt; check
IP-safety rules in ai-video-script.OpenRouter HTTP 402 / 429 → out of credits / rate-limited.94ac35e
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.