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.5 (ranked #1 on the Artificial Analysis text-to-image leaderboard as of September 2026, 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'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYesText prompt describing the image
modelIdNoOptional. Omit for default (best) model.
paymentIdYesValid payment ID (must be paid)
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
    • 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"
      +}
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations, the description carries the behavioral transparency burden and does so thoroughly. It discloses the JSON return format, model-specific costs, default model behavior, img2img support, stable endpoints with automatic model upgrades, Bitcoin Lightning payment, and no API key/signup requirement.

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?

Although longer than many descriptions, every sentence earns its place: purpose and return type are front-loaded, then models/pricing, parameter nuances, pricing stability, and the payment prerequisite. The structure is dense without irrelevant filler.

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 paid, 5-parameter tool with no output schema and no annotations, the description is largely complete: it covers return shape, model selection, costs, defaults, img2img, aspect ratio effects, auth/payment, and stability guarantees. It only omits potential async/retrieval or error-handling behavior, which would make it fully complete.

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?

The input schema already describes every parameter with high coverage, so the baseline is 3. The description adds meaningful extra context beyond the schema by providing model names, pricing, the default model default, aspect-ratio price neutrality, and the payment prerequisite, which helps an agent choose and invoke parameters correctly.

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?

The description opens with a specific verb and resource: "Generate an image from a text prompt," and states the return value as JSON with an image URL. It is clear about text-to-image and img2img support, though it does not explicitly differentiate itself from sibling tools like edit_image or generate_text.

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?

It provides strong usage context: when to use the tool, model selection guidance, default model behavior, pricing tiers, and the prerequisite that create_payment must be called first. It does not give explicit exclusions or say when to choose an alternative sibling instead.

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.