Photorealistic Flux.2-Klein-4B BF16 image generation on RTX 3060 ($0.04 USDC).
x402 Endpoint: POST https://agentx402.fyi/x402/image/generate
Remote MCP: POST https://agentx402.fyi/mcp (Streamable HTTP JSON-RPC 2.0)
PayTo Wallet (USDC): 0x71256BBb403B88A347E67b7ADad89ed28b4e16d6 (Gasless via Coinbase CDP Facilitator)
curl -i -X POST https://agentx402.fyi/x402/image/generate \
-H 'Content-Type: application/json' \
-d '{"prompt": "Minimalist studio photograph of a matte black espresso cup", "width": 1024, "height": 1024, "steps": 4}'import { wrapFetchWithPayment } from "@x402/fetch";
const fetchWithPay = wrapFetchWithPayment(fetch, walletClient);
const res = await fetchWithPay("https://agentx402.fyi/x402/image/generate", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({"prompt": "Minimalist studio photograph of a matte black espresso cup", "width": 1024, "height": 1024, "steps": 4})
});
console.log(await res.json());{
"prompt": "Minimalist studio photograph of a matte black espresso cup",
"width": 1024,
"height": 1024,
"steps": 4
}{
"image_url": "https://example.com/outputs/flux_demo.png",
"seed": 42
}