78trust / 100
Generate Image
by WebberSites x402 Data API in AI models & inference
x402 APIPassing, checked 1 h ago
AI IMAGE GENERATION — POST {prompt} and get back a PNG, base64 in JSON (?raw=1 for raw bytes). Gemini 2.5 Flash Image (nano-banana): photoreal scenes, illustrations, product shots, UI mockups — renders text in images well. Optional {aspect_ratio}: 1:1 (default), 16:9, 9:16, 4:3 + 6 more. Reference images: pass {url} or {image_base64}, or up to 3 in {reference_images}, to edit, restyle, or compose ('put this product on this beach'). The x402 payment IS the auth.
POST https://api.webbersites.com/api/generate-image
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 250 ms typical, 500 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 POST "https://api.webbersites.com/api/generate-image" \
-H "content-type: application/json" \
-d '{"aspect_ratio":"16:9","prompt":"A watercolor fox reading a newspaper in a rainy cafe window"}'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%2Fapi.webbersites.com%2Fapi%2Fgenerate-image
const res = await pay("https://api.webbersites.com/api/generate-image", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"aspect_ratio":"16:9","prompt":"A watercolor fox reading a newspaper in a rainy cafe window"}),
});
console.log(await res.json());Example input
{
"aspect_ratio": "16:9",
"prompt": "A watercolor fox reading a newspaper in a rainy cafe window"
}Example output
{
"aspect_ratio": "16:9",
"bytes": 812344,
"content_type": "image/png",
"image_base64": "iVBORw0KGgo…",
"mode": "generate",
"model": "gemini-2.5-flash-image"
}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 | 179 ms | $0.07 |
| 5 h ago | Passed | 402 | 412 ms | $0.07 |
| 9 h ago | Passed | 402 | 408 ms | $0.07 |
| 12 h ago | Passed | 402 | 550 ms | $0.07 |
| 16 h ago | Passed | 402 | 340 ms | $0.07 |
| 19 h ago | Passed | 402 | 215 ms | $0.07 |
| 23 h ago | Passed | 402 | 500 ms | $0.07 |
| 27 h ago | Passed | 402 | 250 ms | $0.07 |
| 30 h ago | Passed | 402 | 211 ms | $0.07 |
| 34 h ago | Passed | 402 | 237 ms | $0.07 |
| 37 h ago | Passed | 402 | 444 ms | $0.07 |
| 43 h ago | Passed | 402 | 148 ms | $0.07 |