xiaohongshu
xiaohongshu
gemini-image-edit
Edit existing images with text prompts using fal.ai Gemini 3 Pro. Use when the user wants to modify, edit, transform, or change an existing image based on a text description. Supports multiple input images for context.
Full skill instructions
Edit and transform existing images using text prompts with Google's Gemini 3 Pro model via fal.ai.
FAL_KEY environment variable must be set (typically in ~/.zshrc)POST https://fal.run/fal-ai/gemini-3-pro-image-preview/edit
prompt (string): The editing instruction describing what changes to makeimage_urls (array of strings): URLs of the images to edit| 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 when true |
enable_web_search | boolean | false | Uses current web data for generation |
limit_generations | boolean | false | Restricts to 1 image per prompt round |
curl --request POST \
--url https://fal.run/fal-ai/gemini-3-pro-image-preview/edit \
--header "Authorization: Key $FAL_KEY" \
--header "Content-Type: application/json" \
--data '{
"prompt": "Add snow to this mountain scene and make it winter",
"image_urls": ["https://example.com/mountain.jpg"],
"num_images": 1,
"output_format": "png"
}'
import fal_client
result = fal_client.subscribe(
"fal-ai/gemini-3-pro-image-preview/edit",
arguments={
"prompt": "Add snow to this mountain scene and make it winter",
"image_urls": ["https://example.com/mountain.jpg"],
"num_images": 1
}
)
# Access the edited image URL
edited_url = result["images"][0]["url"]
print(f"Edited image: {edited_url}")
import { fal } from "@fal-ai/client";
const result = await fal.subscribe("fal-ai/gemini-3-pro-image-preview/edit", {
input: {
prompt: "Add snow to this mountain scene and make it winter",
image_urls: ["https://example.com/mountain.jpg"],
num_images: 1
}
});
console.log("Edited image:", result.images[0].url);
{
"images": [
{
"file_name": "edited_image.png",
"content_type": "image/png",
"url": "https://storage.googleapis.com/..."
}
],
"description": "A description of the edited image"
}
Style transformation:
Object addition:
Scene modification:
Multiple reference images:
image_urls arrayauto aspect ratio preserves the original image proportions| Error | Cause | Solution |
|---|---|---|
401 Unauthorized | Invalid FAL_KEY | Verify key at fal.ai dashboard |
429 Too Many Requests | Rate limit exceeded | Wait 60 seconds, retry |
400 Bad Request | Invalid image URL or parameters | Ensure image URLs are accessible |
500 Server Error | API temporary issue | Retry after 30 seconds |
Timeout | Generation taking too long | Reduce resolution or simplify edit |
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience