Skip to content
Fourohtwo

image.gedx402.com/v1/image/:model

Fast text-to-image with Flux 1 Schnell (@cf/black-forest-labs/flux-1-schnell). POST prompt and optional steps (1-8); fixed output size, no width/height. Returns base64 image output. Hero: GET /heroes/flux-schnell. Per-generation x402 pricing per USDC per request (see npm run pricing:report).

BaseUnchecked
POSThttps://image.gedx402.com/v1/image/:model

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://image.gedx402.com/v1/image/:model", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"prompt":"A cat astronaut on the moon","steps":4}),
});
console.log(await res.json());

Example input

{
  "prompt": "A cat astronaut on the moon",
  "steps": 4
}