Skip to content
Fourohtwo

flat-rate-llm.kikoribera03.workers.dev/v1/ai/image-edit

Use when an agent must change an image it already has and keep the rest: pass the image and say the change in plain words ("put a blue wool hat on the fox"), and FLUX.2 klein edits it, in about 3 seconds. No mask needed: the prompt says what to change. The image goes as an https URL or as base64, up to 10 MB. Returns a hosted image URL valid for 24 hours. You are only charged if the edit is delive

BasePolygonArbitrumAnswering
POSThttps://flat-rate-llm.kikoribera03.workers.dev/v1/ai/image-edit

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

// 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-edit", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"prompt":"put a blue wool hat on the fox in the middle, keep everything else the same","url":"https://flat-rate-llm.kikoribera03.workers.dev/m/muestra-imagen.jpg"}),
});
console.log(await res.json());

Example input

{
  "prompt": "put a blue wool hat on the fox in the middle, keep everything else the same",
  "url": "https://flat-rate-llm.kikoribera03.workers.dev/m/muestra-imagen.jpg"
}