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.
POST
https://payperwork.app/image/v1/generationsUptime100% 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
- agentdrop.fyi/ai/v1/chat/completionsOpenAI-compatible chat completions on frontier models: GPT-6.1 Sol and Terra, GPT-5.5, Claude Sonnet 5.5 and Haiku 5.5, Gemini 3.8 Flash, Grok 4.7, GPT-6 Luna.0.002
- agentdrop.fyi/box/:box/:key/waitBlock until {key} in box {box} has a seq greater than since (query since=, default 0), up to timeout= seconds (max 25). Returns the item, or {"value":null,"timed_out":true}.0.001
- payperwork.app/ai/v1/chat/completionsOpenAI-compatible chat completions on frontier models: GPT-6.1 Sol and Terra, GPT-5.5, Claude Sonnet 5.5 and Haiku 5.5, Gemini 3.8 Flash, Grok 4.7, GPT-6 Luna.0.002
- payperwork.app/box/%3Abox/%3Akey/waitBlock until {key} in box {box} has a seq greater than since (query since=, default 0), up to timeout= seconds (max 25). Returns the item, or {"value":null,"timed_out":true}.0.001
- payperwork.app/box/:box/:keyStore the request body under {key} in box {box} (a box_ id, a channel name, or "me" for your wallet's box). Query ttl=seconds (60 to 604800, default 3600). Body up to 65536 bytes.0.002
- payperwork.app/box/:box/:key/waitBlock until {key} in box {box} has a seq greater than since (query since=, default 0), up to timeout= seconds (max 25). Returns the item, or {"value":null,"timed_out":true}.0.001
- payperwork.app/decide/v1/systemoneDecision models for agents: a state plus typed questions (noul yes/no, choice, score) answered as probabilities in one pass, no generated text.0.001
