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

NameRequiredDescriptionDefault
promptYesEditing instructions describing what to change
paymentIdYesValid payment ID (must be paid)
resultKeyNoOptional. The resultKey from create_payment. Send it with the same arguments to get this result again after a timeout.
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. Changed1 schema field changed
    • addedInput schema / properties / resultKey
      Added value: +{
      +  "description": "Optional. The resultKey from create_payment. Send it with the same arguments to get this result again after a timeout.",
      +  "type": "string"
      +}
  2. 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."
  3. 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."
  4. 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"
      +}
  5. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does substantial work: flat 200-sat price, Lightning pay-per-request auth, no signup, and a stated return shape ('Returns JSON with image URL'). It omits sync-vs-async behavior and timeout/retry handling (only hinted at by the resultKey schema param), which keeps it from a 5.

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?

Purpose is front-loaded in the first sentence, followed by capability, return, and pricing in a logical order. The sentence about the model being 'ranked #3 on the Artificial Analysis leaderboard as of September 2026' is selection-irrelevant marketing and slightly dilutes an otherwise dense description.

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

Completeness5/5

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

For an 8-parameter, unannotated, no-output-schema tool, the description covers what an agent needs: what it does, what it returns, what it costs, and the mandatory create_payment precondition. Remaining gaps (sync/async, timeout) are partially covered by the resultKey parameter documentation.

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 one of the 8 parameters is already documented, including the unusual 'resolution is ignored for compatibility' note and the returnBase64 context-cost tradeoff. The description adds no parameter-level meaning beyond reinforcing the payment requirement, so the baseline 3 applies.

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

Purpose4/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 enumerates capabilities (object addition/removal, style transfer, inpainting), which implicitly separates it from single-purpose siblings like colorize_image, upscale_image, or remove_background. It stops short of naming those siblings, so an agent must infer routing rather than being told.

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

Usage Guidelines3/5

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

The description gives an explicit invocation prerequisite ('Requires create_payment with toolName=edit_image') and notes no API key/signup is needed, which is real usage context. However it never states when to prefer this over generate_image, remove_object, or restore_face, so alternative selection 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.