Skip to content
Fourohtwo

Text to Image (fast)

x402.freeq.one/tools/image_generate

Text to Image (fast): Generate an image from a text prompt (fast tier, 2-6s). Returns a permanent https URL to the hosted image on api.freeq.one/media/*. Game assets, avatars, illustrations, concept art. Pay per call in USDC on Base via x402 — POST https://x402.freeq.one/tools/image_generate.

BaseUnchecked
POSThttps://x402.freeq.one/tools/image_generate

UptimeNot 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://x402.freeq.one/tools/image_generate", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"width":1024,"height":1024,"prompt":"a cat wearing a tiny hat, studio lighting"}),
});
console.log(await res.json());

Example input

{
  "width": 1024,
  "height": 1024,
  "prompt": "a cat wearing a tiny hat, studio lighting"
}

More from x402-gateway