81trust / 100

Tools Image Generate

by archtools.dev in AI models & inference

x402 APIPassing, checked 24 min ago

Generate images from text prompts. Pay per call with USDC (x402) or credits - archtools.dev

POST https://archtools.dev/v1/tools/image-generate

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
244 ms typical, 244 ms slowest 5%
Last check
24 min ago
Next check
in 3 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://archtools.dev/v1/tools/image-generate" \
  -H "content-type: application/json" \
  -d '{"prompt":"example","size":"1024x1024","style":"vivid"}'
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%2Farchtools.dev%2Fv1%2Ftools%2Fimage-generate
const res = await pay("https://archtools.dev/v1/tools/image-generate", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"prompt":"example","size":"1024x1024","style":"vivid"}),
});
console.log(await res.json());

Example input

{
  "prompt": "example",
  "size": "1024x1024",
  "style": "vivid"
}

Example output

{
  "ok": true
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
24 min agoPassed402244 ms$0.03
4 h agoPassed402247 ms$0.03
9 h agoPassed402208 ms$0.03