Image generation from a text prompt
agent-data-tools.revmesh2074.workers.dev/image/generation
Image generation from a text prompt: create an image with FLUX, returning the image URL and metadata. Use when an agent needs an illustration, social post or product mock-up from a short description. No account, pay per call over x402.
GET
https://agent-data-tools.revmesh2074.workers.dev/image/generationUptime100% of 3 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agent-data-tools.revmesh2074.workers.dev/image/generation?prompt=a+lighthouse+on+a+cliff+at+sunset%2C+watercolor");
console.log(await res.json());Example input
{
"prompt": "a lighthouse on a cliff at sunset, watercolor"
}More from Image generationProvider status
- agent402.tools/api/image-genGenerate an image from a text prompt using GPT Image 2 (low quality, 1024x1024). No API key needed; pay per call via x402. Returns base64 PNG. Prompt capped at 1000 chars. A render takes 10 to 30 s; use a client timeout of at least 60 s.0.03
- agent402.tools/v1/images/generationsOpenAI-compatible image generation over x402 - point any OpenAI SDK's images.generate() at base_url https://agent402.tools/v1 and pay $0.08 per image in USDC, no API key, no signup. Served by FLUX.2 Pro with MAI-Image-2.6 Flash as the failover; prompt in (up to 4k chars), one 1024x1024 PNG out as inline base64 (response_format b64_json). One image per call (n locked to 1). Optional zdr:true routes0.08
