Use when an agent needs an illustration at a size it chooses
flat-rate-llm.kikoribera03.workers.dev/v1/ai/image-styled
Use when an agent needs an illustration at a size it chooses: FLUX.2 klein from a text prompt, with your own width and height (256-1536). If klein is slow, FLUX.1 [schnell] answers instead at 1024x1024, and the response says which model drew it. A seed is passed through but does not guarantee the same image twice. Returns a hosted image URL valid for 24 hours; add inline=true to also get the base6
POST
https://flat-rate-llm.kikoribera03.workers.dev/v1/ai/image-styledUptime100% 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
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://flat-rate-llm.kikoribera03.workers.dev/v1/ai/image-styled", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"prompt":"a red fox reading a newspaper, watercolor","seed":42}),
});
console.log(await res.json());Example input
{
"prompt": "a red fox reading a newspaper, watercolor",
"seed": 42
}