Create Image Gpt Image Fal
Unsigned, install at your own risk
UnverifiedThis skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.
Install this skill
No account required. Pick your tool, then copy.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install goose-skills-create-image-gpt-image-falWhat this does: Generate a single photoreal or designed image with OpenAI gpt-image via fal.ai. Supports gpt-image-1 (default, fixed sizes — the FAL fallback for Higgsfield's `gpt_image_2`) and gpt-image-2 (`openai/gpt-image-2`, custom output sizes up to 3840px). Routes to text-to-image or the edit variant depending on whether a reference image is provided. Use for photoreal character anchors, scene keyframes, and designed sheets (e.g. storyboards) where precise layout and legible text matter.
Manual setup by platform
Claude Code
~/.claude/skills/goose-skills-create-image-gpt-image-fal/SKILL.md
Instructions
create-image-gpt-image-fal
Purpose
Generate one image via fal.ai's OpenAI gpt-image endpoints. Two model families are supported through a single --model flag:
gpt-image-1(default) —fal-ai/gpt-image-1. The FAL fallback for Higgsfield'sgpt_image_2. Fixed output sizes only. Used by:video-orchestrator/lock-characterPhase 0 (anchor portrait) and Phase 1 (angle keyframes via/edit)video-orchestrator/create-clipsPhase 1 for photoreal scenes- the orchestrator's
generate_with_fallback.pyrouter on Higgsfield failure
gpt-image-2—openai/gpt-image-2. The newer model; accepts custom output sizes (any multiple of 16, up to 3840px) and renders dense text/layouts well. Used for designed sheets such as ad storyboards.
The default stays gpt-image-1 so existing callers and the lock-character anchor-parity contract are unaffected. Opt into the newer model with --model gpt-image-2.
Inputs
Required:
--prompt— text prompt. A verbatim character descriptor block goes here for character work.--output— local PNG destination.
Optional:
--model—gpt-image-1(default) orgpt-image-2.--aspect-ratio—9:16(default),16:9,1:1,2:3,3:2. gpt-image-2 also accepts3:4,4:3,4:5. Used when--image-sizeis not given.--image-size— explicitWIDTHxHEIGHT(e.g.1728x2304). gpt-image-2 only — values are rounded to multiples of 16 and capped at 3840px. Ongpt-image-1a custom size is ignored with a warning and the aspect-ratio mapping is used instead.--quality—low | medium | high(defaultmedium; usehighfor finals).--ref-image/--ref-url— a PUBLIC image URL for the/editvariant. Repeatable — pass it twice to send multiple refs (e.g. identity + style). The proxy does not upload local files, so a local path is rejected — host the image first (the MCPmedia_upload, or any public URL) and pass that URL. When present, routes to the model's/editvariant so the model can match the references. Order matters: pass identity (character) first, then style refs.--with-logs— stream fal queue logs.
Credentials (proxy-routed — NOT a raw FAL key):
- The bundled
scripts/media_proxy.pyroutes every call through the GooseWorks fal-proxy, so every call is charged to your GooseWorks credits. It reads~/.gooseworks/credentials.json(api_base,api_key,agent_id), written by the GooseWorks CLI. Do not setFAL_API_KEY: an agent (cal_) token is not a FAL key and 401s against fal directly. - Set
GW_PROJECT_ID=<ad project id>in the env so the generation's spend attributes to that ad project (per-project cost shows in the app).
Credentials at run time
A cloud sandbox injects GW_MEDIA_PROXY_TOKEN; a terminal uses the CLI's credentials file. With
neither, the bundled helper relays each paid call through the agent instead (see media-proxy), so
the script never asks for a key or a sign-in.
Workflow
# Text-to-image, default model (gpt-image-1)
python3 skills/video/create-image-gpt-image-fal/scripts/generate.py \
--prompt "..." \
--output /path/to/anchor.png \
--aspect-ratio 9:16 \
--quality medium
# Edit-from-reference (anchor -> angle). --ref-image must be a PUBLIC URL,
# NOT a local path (the proxy does not upload local files):
python3 .../generate.py \
--prompt "..." \
--output /path/to/angle-3q-left.png \
--ref-image "https://.../anchor.png" \
--aspect-ratio 9:16
# gpt-image-2 with a custom output size (e.g. a designed storyboard sheet)
python3 .../generate.py \
--prompt "..." \
--output /path/to/storyboard.png \
--model gpt-image-2 \
--image-size 1728x2304 \
--quality high
The script:
- Loads the agent credentials from
~/.gooseworks/credentials.jsonvia the bundledmedia_proxy.py(proxy-routed; charged to your GooseWorks credits). - Resolves the model family (
--model) and output size (--image-sizeif given and supported, else the aspect-ratio mapping). - If one or more
--ref-image/--ref-urlflags are set, passes them asimage_urls=[url1, url2, ...](they must already be PUBLIC URLs) and routes to the model's/editvariant. Otherwise routes to the/text-to-imagevariant. - Submits through the GooseWorks fal-proxy and polls the queue to completion — host-swapping the
queue.fal.runstatus/response URLs to the proxy base (seemedia_proxy.py); never pollsqueue.fal.rundirectly. - Downloads the first result image to
--output. - Writes
<output>.meta.jsonwithgateway: "fal-proxy", model id,model_family, request, and cost.
Output
<output_path>— PNG (≥ 1 KB).<output_path>.meta.json— request + result metadata + cost, includingmodel_family(gpt-image-1orgpt-image-2).
Quality Checks
- Output file exists and is > 1 KB.
- For character anchors: visually inspect against the descriptor block (hair, shirt color, age).
meta.jsonincludesgateway: "fal-proxy", the resolvedmodelid,model_family,image_size, andquality.- For gpt-image-2 custom sizes: confirm the output dimensions match the requested
WIDTHxHEIGHT. - No readable text in the prompt that should appear in the image. AI image models mangle short brand text, URLs, code tokens, captions, and wordmarks even with explicit prompting. Examples observed:
"ffmpeg"→"ffmmg";"claritude"→"clarytude";"therapists"→"therapits". Use PIL orffmpeg drawtextfor any overlay containing readable text. Reserve image gen for purely visual content (characters, scenes, backgrounds). Repeats LEARNINGS L4.
Failure Modes
| Symptom | Likely cause | Fix |
|---|---|---|
401 Unauthorized from fal | Calling fal directly with an agent token, or polling queue.fal.run instead of the proxy | This atom is proxy-routed — it uses the ~/.gooseworks/credentials.json agent token via media_proxy.py, never a raw FAL_API_KEY. Without that file the helper relays the call instead. |
ERROR: ref images must be PUBLIC URLs | Passed a local path to --ref-image / --ref-url | The proxy does not upload local files. Host it (the MCP media_upload) and pass the resulting public URL. |
429 Too Many Requests | RPS limit | Drop concurrency to 2-3. |
| Custom size ignored | --image-size passed with --model gpt-image-1 | gpt-image-1 only supports fixed sizes; use --model gpt-image-2 for custom sizes. |
| Aspect-ratio drift (gpt-image-1) | gpt-image-1 only supports 1024x1024, 1024x1536, 1536x1024 | The script maps aspect ratios to these internally. |
| Size rejected (gpt-image-2) | Dimension not a multiple of 16, or > 3840px | The script rounds to /16 and caps at 3840; pass a smaller size. |
| Anchor reference ignored | /text-to-image variant doesn't accept refs | Pass --ref-image to force the /edit variant. |
| Skin / face looks "AI-stock" | gpt-image's failure mode | Add anti-AI cues to the prompt: "natural skin texture with pores, slight asymmetry, no perfect teeth". |
Model notes
- Product lettering.
openai/gpt-image-2/editoff a real product photo keeps proportions and exact
lettering far better than nano-banana, so use it for product-hero frames. Cheaper and pixel-exact:
cut the real photo out and composite it instead of redrawing the product. /editcan ignore the aspect ratio and return a 1024x1024 square; center-cropping that to 9:16
chops the subject. Pass--image-size(gpt-image-2) or verify the returned size before using it.- No contact shadow under a soft key on a bright seamless floor. That is physically right for the
lighting, so re-prompting cannot fix it: ask for a harder key from a steeper angle, a floor several
stops darker than the wall, or composite the shadow afterwards. - Safe zones: see create-image-fal; it holds the notes that apply to every image model.
Cross-provider parity note
When this atom generates a character anchor (lock-character Phase 0), the anchor approved here MUST be pinned for all downstream angle gens, and the same --model must be used for those angle gens. Mixing model families (or mixing FAL-gpt-image with Higgsfield-gpt_image_2) introduces aesthetic drift. The orchestrator's generate_with_fallback.py inherits gateway/model_family from the anchor's .meta.json for subsequent calls.
References
- fal.ai/models/fal-ai/gpt-image-1
- fal.ai/models/openai/gpt-image-2
- Sibling Higgsfield path:
mcp__higgsfield__generate_imagewithmodel="gpt_image_2" - Shared helper:
scripts/media_proxy.py(proxy-routed FAL/ElevenLabs; charged to your GooseWorks credits — the helpergenerate.pyactually imports).scripts/fal_helpers.pyis a LEGACY raw-FAL helper kept for reference only;generate.pydoes not use it (it would need a realFAL_KEY). - Storyboard sheets for video ads are made with this skill's
gpt-image-2mode.
Security
Reviews (0)
Related skills
Browse all →More from goose-skills
View source →More Build skills
Browse category →Frequently asked questions about create-image-gpt-image-fal
What does the create-image-gpt-image-fal skill do?
Generate a single photoreal or designed image with OpenAI gpt-image via fal.ai. Supports gpt-image-1 (default, fixed sizes — the FAL fallback for Higgsfield's `gpt_image_2`) and gpt-image-2 (`openai/gpt-image-2`, custom output sizes up to 3840px). Routes to text-to-image or the edit variant depending on whether a reference image is provided. Use for photoreal character anchors, scene keyframes, and designed sheets (e.g. storyboards) where precise layout and legible text matter. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the create-image-gpt-image-fal skill?
Run `npx @skills-hub-ai/cli install goose-skills-create-image-gpt-image-fal` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/goose-skills-create-image-gpt-image-fal/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does create-image-gpt-image-fal work with?
create-image-gpt-image-fal runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the create-image-gpt-image-fal skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use create-image-gpt-image-fal after installing it?
In Claude Code, type `/goose-skills-create-image-gpt-image-fal` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the create-image-gpt-image-fal skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.