Image generation: from a text prompt

$0.03 per call · failed calls are never charged · no account needed: a card key or USDC

Image generation from a text prompt: create a 1024x1024 JPEG with FLUX.1 schnell, returned as base64 with its content type. Use when an agent needs an illustration, social post or product mock-up from a short description. No account, pay per call over x402.

Buy credits by card (from $1) Example result (JSON)

Inputs

NameTypeDescription
prompt (required)stringWhat the image should show (3-800 characters)
stepsintegerDiffusion steps, 1-8 (default 4)

Request

Over HTTP, with a card key from /credits:

curl -H "Authorization: Bearer adt_…" "https://tools.funwords.eu/image/generation?prompt=a%20lighthouse%20on%20a%20cliff%20at%20sunset%2C%20watercolor"

Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.

Example result

{
  "prompt": "a lighthouse on a cliff at sunset, watercolor",
  "steps": 4,
  "model": "@cf/black-forest-labs/flux-1-schnell",
  "contentType": "image/jpeg",
  "imageBase64": "/9j/4AAQSkZJRgABAQAAAQABAAD..."
}

From an AI agent (MCP)

Add the MCP server to Claude, Cursor or any MCP client. This tool is image_generation, paid from the first call:

https://tools.funwords.eu/mcp

Related tools