agent402.tools/api/image-gen-hd
Generate a higher-quality image from a text prompt using GPT Image 2 (medium quality, 1024x1024). No API key needed; pay per call via x402. Returns base64 PNG. Prompt capped at 2000 chars. A render takes 20 to 45 s; use a client timeout of at least 60 s.
POST
https://agent402.tools/api/image-gen-hdUptimeNot checked yet
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
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://agent402.tools/api/image-gen-hd", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"prompt":"A single red apple on a white background"}),
});
console.log(await res.json());Example input
{
"prompt": "A single red apple on a white background"
}