AI image generation API: text to 1024x1024 JPEG with FLUX.1 schnell

$0.01 per call · failed calls are never charged · no account or subscription: pay per call with a card key or USDC

Text-to-image generation with FLUX.1 schnell. Send a prompt, get a 1024x1024 JPEG back as base64 in a few seconds. Use for illustrations, thumbnails, mockups, avatars and social media images. Optional steps parameter (1-8, default 4) trades speed for detail.

When to use it

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?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, and the first 25 successful calls are free:

https://tools.funwords.eu/mcp

Questions

What do I get back?

A 1024x1024 JPEG as base64, in a few seconds.

How long can the prompt be?

3 to 800 characters.

How do I pay?

Each successful call costs $0.01; failed calls are not charged. This tool is not in the free calls; pay with card credits (from $1; the key goes in an Authorization header or, for clients that can only fetch a URL, as api_key= in the URL) or per call in USDC over x402 or MPP. No account is needed.

Related tools