AIFrom $0.03 per call · failed calls are never charged
Image generation: from a text prompt
No account. Pay by card from $1 and your key appears right after payment. Get a key by card
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.
Inputs
| Name | Type | Description |
|---|---|---|
prompt (required) | string | What the image should show (3-800 characters) |
steps | integer | Diffusion steps, 1-8 (default 4) |
Request
Over HTTP, with a card key from /credits:
curl -H "Authorization: Bearer adt_…" "https://glyphtools.com/image/generation?prompt=a%20lighthouse%20on%20a%20cliff%20at%20sunset%2C%20watercolor"
Node.js
const r = await fetch("https://glyphtools.com/image/generation?prompt=a%20lighthouse%20on%20a%20cliff%20at%20sunset%2C%20watercolor", {
headers: { Authorization: "Bearer adt_…" },
});
const data = await r.json(); // 402 until the key is in the header
Python
import requests
r = requests.get("https://glyphtools.com/image/generation?prompt=a%20lighthouse%20on%20a%20cliff%20at%20sunset%2C%20watercolor", headers={"Authorization": "Bearer adt_…"}, timeout=60)
data = r.json()
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://glyphtools.com/mcp