Skip to main content
Glama

edit_image

Edit images using natural language commands. Add or remove objects, transfer styles, or inpaint areas. Pay per request via Bitcoin Lightning — no signup needed.

Instructions

Edit an image with natural language instructions. Uses Nano Banana 2 — understands context, handles object addition/removal, style transfer, and inpainting. Returns JSON with image URL. Resolution-tiered pricing: 1K=200 sats, 2K=300 sats, 4K=450 sats. Pay per request with Bitcoin Lightning — no API key or signup needed. Requires create_payment with toolName='edit_image' and resolution param.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paymentIdYesValid payment ID (must be paid)
promptYesEditing instructions describing what to change
imageBase64YesBase64 encoded image to edit
aspectRatioNoOutput aspect ratio (default: match_input_image)match_input_image
outputFormatNoOutput formatjpg
resolutionNoOutput resolution. 1K=200 sats, 2K=300 sats, 4K=450 sats1K
Behavior4/5

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

With no annotations, the description carries full burden. It discloses model used, output format (JSON with image URL), pricing per resolution, and payment requirement. It does not cover rate limits, error responses, or image size limits, but covers key operational aspects.

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?

Description is a single paragraph, efficient and front-loaded with purpose. Each sentence adds value: model, capabilities, output, pricing, payment prerequisite. No wasted words.

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

Completeness4/5

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

The tool has 6 parameters (3 required) and no output schema. Description explains payment dependency and pricing but only briefly mentions 'Returns JSON with image URL'. Could elaborate on error scenarios or response structure. Otherwise, sufficient for a paid editing tool.

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

Parameters4/5

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

Schema coverage is 100% so baseline 3. Description adds value by detailing resolution-to-pricing mapping and the need for create_payment. This extra context clarifies the paymentId parameter's origin and the cost implications of resolution.

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 edits images with natural language instructions, specifying capabilities like object addition/removal, style transfer, and inpainting. It distinguishes itself from siblings like generate_image or remove_background by focusing on editing an existing image with language.

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 explains the payment flow (create_payment with toolName and resolution) and pricing tiers. It does not explicitly compare to alternatives but the capabilities are clear. It could mention when to prefer this over other image tools.

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/cnghockey/sats4ai-mcp-server'

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