78trust / 100
Ai Image Edit
by flat-rate-llm.kikoribera03.workers.dev in AI models & inference
x402 APIPassing, checked 1 h ago
Edits an image you provide instead of generating one from scratch: pass the image and a black-and-white mask, and Stable Diffusion inpainting repaints only the white area following your prompt. Image and mask go as https URLs or as base64, up to 10 MB each. Returns a hosted image URL valid for 24 hours. You are only charged if the edit is delivered. No API key, no account.
GET https://flat-rate-llm.kikoribera03.workers.dev/v1/ai/image-edit
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 91.7%
- Response time
- 129 ms typical, 449 ms slowest 5%
- Last check
- 1 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://flat-rate-llm.kikoribera03.workers.dev/v1/ai/image-edit?mask_url=https%3A%2F%2Fflat-rate-llm.kikoribera03.workers.dev%2Fm%2Fmuestra-mascara.png&prompt=a+blue+wool+hat+on+the+fox&url=https%3A%2F%2Fflat-rate-llm.kikoribera03.workers.dev%2Fm%2Fmuestra-imagen.jpg"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fflat-rate-llm.kikoribera03.workers.dev%2Fv1%2Fai%2Fimage-edit
const res = await pay("https://flat-rate-llm.kikoribera03.workers.dev/v1/ai/image-edit?mask_url=https%3A%2F%2Fflat-rate-llm.kikoribera03.workers.dev%2Fm%2Fmuestra-mascara.png&prompt=a+blue+wool+hat+on+the+fox&url=https%3A%2F%2Fflat-rate-llm.kikoribera03.workers.dev%2Fm%2Fmuestra-imagen.jpg");
console.log(await res.json());Example input
{
"mask_url": "https://flat-rate-llm.kikoribera03.workers.dev/m/muestra-mascara.png",
"prompt": "a blue wool hat on the fox",
"url": "https://flat-rate-llm.kikoribera03.workers.dev/m/muestra-imagen.jpg"
}Example output
{
"bytes": 465282,
"expires": "2026-10-02T00:00:00.000Z",
"mime": "image/png",
"model": "@cf/runwayml/stable-diffusion-v1-5-inpainting",
"url": "https://flat-rate-llm.kikoribera03.workers.dev/m/0425f0c2a9e47b1d3e8a6c1f.png"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 1 h ago | Passed | 402 | 1.8 s | $0.02 |
| 5 h ago | Passed | 402 | 370 ms | $0.02 |
| 8 h ago | Passed | 402 | 42 ms | $0.02 |
| 12 h ago | Passed | 402 | 118 ms | $0.02 |
| 15 h ago | Passed | 402 | 449 ms | $0.02 |
| 19 h ago | Passed | 402 | 55 ms | $0.02 |
| 23 h ago | Passed | 402 | 129 ms | $0.02 |
| 26 h ago | Passed | 402 | 139 ms | $0.02 |
| 31 h ago | Passed | 402 | 394 ms | $0.02 |
| 34 h ago | Passed | 402 | 116 ms | $0.02 |
| 37 h ago | Passed | 402 | 41 ms | $0.02 |
| 42 h ago | Timed out | - | - | - |