← All 28 APIs · Home · Swagger / OpenAPI · x402 Manifest
$0.04 USDC / callAI/ImageBase & Polygon x402 v2

GPU-x402 Flux.2 BF16 Image Studio

Photorealistic Flux.2-Klein-4B BF16 image generation on RTX 3060 ($0.04 USDC).

Endpoint & Settlement Specs

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)

Quickstart (cURL — Returns x402 v2 Invoice + Bazaar Schema)

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}'

TypeScript Autonomous Agent (@x402/fetch)

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());

Example JSON Input

{
  "prompt": "Minimalist studio photograph of a matte black espresso cup",
  "width": 1024,
  "height": 1024,
  "steps": 4
}

Example JSON Output

{
  "image_url": "https://example.com/outputs/flux_demo.png",
  "seed": 42
}