Skip to main content
Glama

Sats4AI - Bitcoin-Powered AI Tools

generate_image

Generate an image from a text prompt. Returns JSON with image URL. Models: Grok Imagine 2 (fast creative generation, 100 sats), Seedream 5 Pro (most permissive content policy, 150 sats at 1K / 300 at 2K), GPT Image 2.6 (ranked #1 on the Artificial Analysis text-to-image leaderboard as of November 2026 at its maximum quality setting; this API uses the automatic setting; 1200 sats, default). Supports img2img with optional base64 input. Optional aspectRatio (default 1:1) works on every model tier and does not change the price. Stable endpoints — models upgrade automatically as SOTA evolves. Pay per request with Bitcoin Lightning — no API key or signup needed. Requires create_payment with toolName='generate_image'.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "paymentId": "<paymentId>",
      "prompt": "<prompt>"
    },
    "name": "generate_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYesText prompt describing the image
modelIdNoOptional. Omit to run the model this payment was created for.
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.
aspectRatioNoOptional output shape, default 1:1. Same price for every shape.
imageBase64NoOptional base64 image for img2img generation

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / modelId / description
      Previous value: -"Optional. Omit for default (best) model."New value: +"Optional. Omit to run the model this payment was created for."
  2. 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"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / aspectRatio
      Added value: +{
      +  "description": "Optional output shape, default 1:1. Same price for every shape.",
      +  "enum": [
      +    "1:1",
      +    "16:9",
      +    "9:16",
      +    "4:3",
      +    "3:4",
      +    "3:2",
      +    "2:3"
      +  ],
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses the payment model (Bitcoin Lightning, per-request, no API key), per-model pricing (100/150/300/1200 sats), relative content permissiveness of Seedream 5 Pro, that aspectRatio never changes price, the return shape (JSON with image URL), and that endpoints auto-upgrade as models change. The resultKey timeout-retry contract is reinforced in the schema, so the agent knows how to recover from a failure.

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 core action, then pricing, then the payment prerequisite — a sensible order for an agent. The parenthetical about being "ranked #1 on the Artificial Analysis text-to-image leaderboard as of November 2026 at its maximum quality setting; this API uses the automatic setting" is the one passage that is verbose and hedged enough to distract rather than inform.

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?

There is no output schema, but the description states the return format (JSON with image URL), and it covers the payment prerequisite, model tradeoffs, price, and retry semantics. For a 6-parameter generation tool, nothing an agent needs to call it correctly is missing.

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 is 3, but the description adds real meaning: modelId is tied to specific pricing tiers and the payment created, aspectRatio is declared price-invariant and universal across tiers, and imageBase64 is framed as the img2img switch. It does not clarify resultKey behavior in the description text itself, but that gap is minor given the schema documents it.

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?

Opens with a specific verb+resource ("Generate an image from a text prompt") and immediately scopes it further with img2img support via base64 input. It also enumerates the selectable models by name and price, so an agent can distinguish this from siblings like edit_image, upscale_image, or generate_video without opening the schema.

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?

States a hard prerequisite clearly: "Requires create_payment with toolName='generate_image'", which is exactly the sequencing an agent needs. It also implies the img2img path is an alternative mode. It does not explicitly say when to prefer edit_image/upscale_image over regenerating, so there is no exclusion guidance.

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.