Skip to main content
Glama

generate_image_from_image

Transform existing images into new versions using text prompts for style transfer, editing, and creative variations.

Instructions

Transform an existing image into a new image based on a prompt. Use for style transfer, editing, variations, and more. Use upload_file first if you have a local image.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
image_urlYesURL of the source image to transform (use upload_file for local images)
promptYesText description of desired transformation (e.g., 'Transform into a watercolor painting')
modelNoImage-to-image model. Options: fal-ai/flux/dev/image-to-image, fal-ai/flux-2/editfal-ai/flux/dev/image-to-image
strengthNoHow much to transform (0=keep original, 1=ignore original)
num_imagesNo
negative_promptNoWhat to avoid in the output image
seedNoSeed for reproducible generation
enable_safety_checkerNoEnable safety checker to filter inappropriate content
output_formatNoOutput image formatpng
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions the transformation purpose and prerequisite for local images, but doesn't describe rate limits, authentication needs, cost implications, output format details, or what happens when transformations fail. It provides basic context but lacks comprehensive behavioral traits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is perfectly concise with two sentences that each earn their place. The first sentence states the core purpose and use cases, while the second provides crucial prerequisite guidance. No wasted words, and information is front-loaded appropriately.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex tool with 9 parameters, no annotations, and no output schema, the description provides adequate but incomplete context. It covers the basic purpose and a key prerequisite, but doesn't address mutation implications (creates new images), performance characteristics, error conditions, or output expectations. Given the complexity, more completeness would be helpful.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is high (89%), so the baseline is 3. The description doesn't add significant parameter semantics beyond what's in the schema - it mentions 'prompt' and 'image_url' implicitly but doesn't explain parameter interactions, default behaviors, or advanced usage patterns. The schema already documents parameters well.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with specific verbs ('transform', 'edit') and resources ('existing image', 'new image'), distinguishing it from siblings like generate_image (text-to-image), edit_image (likely different editing), and compose_images (combining images). It explicitly mentions style transfer, editing, and variations as use cases.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context for when to use this tool ('transform an existing image into a new image based on a prompt') and includes a specific prerequisite instruction ('use upload_file first if you have a local image'). However, it doesn't explicitly state when NOT to use it or name alternatives among siblings (e.g., when to use edit_image instead).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/raveenb/fal-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server