82trust / 100

Images Fast

by Fast image generation in AI models & inference

x402 APIPassing, checked 2 h ago

Generate an image from a text prompt at a flat price per picture, no token math and no subscription: the OpenAI images request shape in, base64 PNG or JPEG out, with an automatic fallback model so a provider outage does not become your error. Use it when an agent needs a picture cheaply and predictably.

POST https://agent402.tools/v1/images/fast

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
204 ms typical, 204 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agent402.tools/v1/images/fast" \
  -H "content-type: application/json" \
  -d '{"prompt":"A minimalist line drawing of a lighthouse at dawn"}'
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%2Fagent402.tools%2Fv1%2Fimages%2Ffast
const res = await pay("https://agent402.tools/v1/images/fast", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"prompt":"A minimalist line drawing of a lighthouse at dawn"}),
});
console.log(await res.json());

Example input

{
  "prompt": "A minimalist line drawing of a lighthouse at dawn"
}

Example output

{
  "created": 1750000000,
  "data": [
    {
      "b64_json": "/9j/4AAQSkZJRgABAQAAAQABAAD…",
      "media_type": "image/jpeg"
    }
  ],
  "model": "black-forest-labs/flux.2-klein-4b",
  "usage": {
    "completion_tokens": 4096,
    "prompt_tokens": 11,
    "total_tokens": 4107
  }
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402381 ms$0.02
6 h agoPassed402182 ms$0.02
11 h agoPassed402204 ms$0.02