create-image-gpt-image-fal
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).
Install / Use
npx skills add gooseworks-ai/goose-skills --skill create-image-gpt-image-falInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
AI & Machine LearningSupported Platforms
Our assessment of create-image-gpt-image-fal
create-image-gpt-image-fal scores 88/100 on our quality scale, 458th of 952 AI & Machine Learning skills we index (top 49%).
Its SKILL.md is 9.3 KB long, well organised into 15 sections with 1 code example: a thorough specification that gives an agent plenty to work with.
With 1,222 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 33 days ago, so create-image-gpt-image-fal is actively maintained.
- Our last check on 2026-10-06 found the source still online.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
create-image-gpt-image-fal compared with similar skills
All 4 of these similar skills score higher than create-image-gpt-image-fal; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| create-image-gpt-image-fal (this skill)by gooseworks-ai | 88 | 1.2k | 33d ago | SKILL.md |
| claude-memby thedotmack | 100 | 103.1k | today | CLAUDE.md |
| taste-skillby Leonxlnx | 100 | 102.4k | today | CLAUDE.md |
| Understand-Anythingby Egonex-AI | 100 | 88.2k | 3d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 77.8k | 1d ago | CLAUDE.md |
Frequently asked questions
- How do I install create-image-gpt-image-fal?
- Run
npx skills add gooseworks-ai/goose-skills --skill create-image-gpt-image-fal. The install tabs above show the steps for each supported agent. - Which AI agents does create-image-gpt-image-fal work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is create-image-gpt-image-fal safe to use?
- It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is create-image-gpt-image-fal still maintained?
- The repository was last updated 33 days ago, so create-image-gpt-image-fal is actively maintained.
Skill content
View source on GitHubname: create-image-gpt-image-fal
description: 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.
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.
Related Skills
claude-mem
103.1kPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
taste-skill
102.4kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
Understand-Anything
88.2kGraphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
headroom
77.8kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
