generate_image
Generate images from text prompts using AI models like Grok Imagine, Seedream 4, or Nano Banana 2. Pay per request with Bitcoin Lightning — no signup required.
Instructions
Generate an image from a text prompt. Returns JSON with image URL. Models: Grok Imagine (fast creative generation, 100 sats), Seedream 4 (photorealistic detail, 150 sats), Nano Banana 2 (premium quality, 200 sats, default). Supports img2img with optional base64 input. 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
| Name | Required | Description | Default |
|---|---|---|---|
| paymentId | Yes | Valid payment ID (must be paid) | |
| prompt | Yes | Text prompt describing the image | |
| modelId | No | Optional. Omit for default (best) model. | |
| imageBase64 | No | Optional base64 image for img2img generation |
Implementation Reference
- index.js:15-15 (registration)The tool 'generate_image' is not explicitly found. The closest match is the tool named 'image' on line 15, which is a static entry in the TOOLS array. Additionally, 'image_edit', 'upscale_image', 'colorize_image', and 'deblur_image' exist but none are named 'generate_image'. This is a thin client library that merely lists tool names for a remote MCP server at sats4ai.com — the actual handler logic lives on the server side.
"image",