Skip to content
Fourohtwo

Image generation for agents

payperwork.app/image/v1/generations

Image generation for agents: a prompt in, one image out (base64), on GPT Image or Gemini image models.

BaseAnswering
POSThttps://payperwork.app/image/v1/generations

Uptime100% of 1 check in 30 days

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://payperwork.app/image/v1/generations", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"aspect_ratio":"16:9","model":"google/nano-banana-2.1","prompt":"A paper airplane made of a dollar bill, flying over a city at dusk, soft light.","resolution":"1K"}),
});
console.log(await res.json());

Example input

{
  "aspect_ratio": "16:9",
  "model": "google/nano-banana-2.1",
  "prompt": "A paper airplane made of a dollar bill, flying over a city at dusk, soft light.",
  "resolution": "1K"
}

More from payperwork