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'.

Input Schema

NameRequiredDescriptionDefault
promptYesText prompt describing the image
modelIdNoOptional. Omit for default (best) model.
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
    • 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. 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"
      +}
  3. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.