Skip to main content
Glama

Sats4AI - Bitcoin-Powered AI Tools

edit_image

Edit an image with natural language instructions. Uses MAI-Image-2.6, ranked #3 on the Artificial Analysis image-editing leaderboard as of September 2026 — understands context, handles object addition/removal, style transfer, and inpainting. Returns JSON with image URL. 200 sats per edit, one flat price. Pay per request with Bitcoin Lightning — no API key or signup needed. Requires create_payment with toolName='edit_image'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYesEditing instructions describing what to change
paymentIdYesValid payment ID (must be paid)
resolutionNoIgnored: MAI-Image-2.6 has no resolution setting. Accepted for compatibility; every edit is 200 sats.1K
aspectRatioNoOutput aspect ratio (default: match_input_image, which keeps the input's shape)match_input_image
imageBase64YesBase64 encoded image to edit
outputFormatNoOutput formatjpg
returnBase64NoAlso return the edited image as a base64 data URL (base64Image). Default false: imageUrl is the deliverable and the base64 copy is megabytes of context.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / aspectRatio / description
      Previous value: -"Output aspect ratio (default: match_input_image)"New value: +"Output aspect ratio (default: match_input_image, which keeps the input's shape)"
    • addedInput schema / properties / aspectRatio / enum
      Added value: +[
      +  "match_input_image",
      +  "auto",
      +  "1:1",
      +  "4:3",
      +  "3:4",
      +  "16:9",
      +  "9:16",
      +  "3:2",
      +  "2:3"
      +]
    • changedInput schema / properties / resolution / description
      Previous value: -"Output resolution. Accepted for compatibility and does not change the price: every edit is 200 sats."New value: +"Ignored: MAI-Image-2.6 has no resolution setting. Accepted for compatibility; every edit is 200 sats."
  2. Changed1 schema field changed
    • changedInput schema / properties / resolution / description
      Previous value: -"Output resolution. 1K=200 sats, 2K=300 sats, 4K=450 sats"New value: +"Output resolution. Accepted for compatibility and does not change the price: every edit is 200 sats."
  3. Changed1 schema field changed
    • addedInput schema / properties / returnBase64
      Added value: +{
      +  "default": false,
      +  "description": "Also return the edited image as a base64 data URL (base64Image). Default false: imageUrl is the deliverable and the base64 copy is megabytes of context.",
      +  "type": "boolean"
      +}
  4. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations provided, the description carries the full behavioral burden and does a solid job: it discloses the flat 200 sats price, that payment is per-request via Lightning with no API key/signup, the required payment precondition, and the return shape ('JSON with image URL'). It stops short of latency, failure/refund behavior, or input size limits.

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

Conciseness4/5

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

Front-loaded with the action, then capabilities, return, price, and payment flow in a logical order. The leaderboard-ranking clause is marketing filler that consumes a sentence without helping invocation, keeping it out of 5 territory.

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?

For a 7-param, no-output-schema, no-annotation tool, the description supplies the essentials an agent needs: what it returns, how to pay, and the required prerequisite call. It is not fully complete — no error/refund or input-size guidance — but nothing critical is missing for a correct invocation.

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 100%, so every parameter including the unusual 'resolution is ignored' note is already documented in the schema. The description adds no parameter-level detail beyond the schema (returnBase64/base64Image tradeoff is explained in the schema, not here), so the baseline 3 applies.

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?

States a specific verb+resource ('Edit an image with natural language instructions') and immediately scopes the capability set (object addition/removal, style transfer, inpainting). This clearly separates it from siblings like generate_image, remove_object, upscale_image, and colorize_image.

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?

Gives a hard prerequisite ('Requires create_payment with toolName="edit_image"') and the pricing model, which tells the agent when the tool is callable. It does not, however, say when to prefer this over generate_image or remove_object for overlapping edits, so sibling routing is left to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.