image-editor
Image Editor
Edit and transform existing images using text prompts with Google's Gemini 3 Pro model via fal.ai.
See references/fal-api.md for setup, Python patterns, and error handling.
API Endpoint
fal-ai/gemini-3-pro-image-preview/edit
Parameters
Required
prompt(string): The editing instruction describing what changes to makeimage_urls(array of strings): URLs of the images to edit (usefal_client.upload_file()for local files)
Optional
| Parameter | Type | Default | Options |
|---|---|---|---|
num_images |
integer | 1 | 1-4 |
aspect_ratio |
string | "auto" | "auto", "21:9", "16:9", "3:2", "4:3", "5:4", "1:1", "4:5", "3:4", "2:3", "9:16" |
output_format |
string | "png" | "jpeg", "png", "webp" |
resolution |
string | "1K" | "1K", "2K", "4K" |
sync_mode |
boolean | false | Returns data URI directly (no download needed) |
enable_web_search |
boolean | true | Grounds editing in current web data |
safety_tolerance |
string | "6" | Always set to "6" for maximum creative freedom |
seed |
integer | - | Fix seed for reproducible results |
limit_generations |
boolean | false | Restricts to 1 image per prompt round |
Note: aspect_ratio defaults to "auto" for editing, which preserves the original image proportions.
CLI Script
python3 scripts/fal_generate.py \
--endpoint edit \
--prompt "Add snow to this mountain scene" \
--image /path/to/mountain.jpg \
--output edited.png
Tips
- Be specific about what changes you want: "make the sky sunset orange" is better than "change the sky"
- Use
aspect_ratio: "auto"(the default) to preserve original image proportions - Multiple images can be provided for context, style transfer, or combining elements
- Set
enable_web_search: Truefor style-grounded edits ("make it look like a Monet painting") - Always include
safety_tolerance: "6"for maximum creative flexibility - Upload local files with
fal_client.upload_file()before passing toimage_urls
More from bluewaves-creations/bluewaves-skills
photographer-testino
Generate images in Mario Testino's glamorous vibrant style. Use when users ask for Testino style, high fashion glamour, bold saturated colors, warm luxurious photography, dynamic sensual energy.
35photographer-lindbergh
Generate images in Peter Lindbergh's iconic black and white style. Use when users ask for Lindbergh style, raw authentic beauty, emotional B&W portraits, supermodel aesthetic, or unretouched natural photography.
30photographer-lachapelle
Generate images in David LaChapelle's surreal pop art style. Use when users ask for LaChapelle style, pop surrealism, hyper-saturated colors, theatrical staging, baroque maximalism, kitsch aesthetic.
24epub-creator
Create production-quality EPUB 3 ebooks from markdown and images with automated QA, formatting fixes, and validation. Use when creating ebooks, converting markdown to EPUB, or compiling chapters into a publishable book. Handles markdown quirks, generates TOC, adds covers, and validates output automatically.
22photographer-vonunwerth
Generate images in Ellen von Unwerth's playful vintage style. Use when users ask for von Unwerth style, playful sensuality, vintage film noir, whimsical feminine photography, retro glamour, narrative storytelling.
19photographer-ritts
Generate images in Herb Ritts' sculptural black and white style. Use when users ask for Ritts style, classical Greek aesthetic, sculptural body photography, California golden hour, minimalist athletic portraits.
18