78trust / 100

Tools Og Image Generator

by x402-gateway in News & content

x402 APIPassing, checked 2 h ago

OG Image Generator: Generate an Open Graph social-card image (1200x630 PNG) from a title and description. Returns a base64-encoded image (MCP content type image). Optional image URL embeds a header graphic. Title truncated to 60 chars, description to 120. Pay per call in USDC on Base via x402 — POST https://x402.freeq.one/tools/og_image_generator.

POST https://x402.freeq.one/tools/og_image_generator

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
306 ms typical, 378 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://x402.freeq.one/tools/og_image_generator" \
  -H "content-type: application/json" \
  -d '{"description":"Search live job postings with USDC micro-payments on Base","image":"https://files.catbox.moe/x402-card.png","title":"Jobs API — Pay Per Call"}'
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%2Fx402.freeq.one%2Ftools%2Fog_image_generator
const res = await pay("https://x402.freeq.one/tools/og_image_generator", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"description":"Search live job postings with USDC micro-payments on Base","image":"https://files.catbox.moe/x402-card.png","title":"Jobs API — Pay Per Call"}),
});
console.log(await res.json());

Example input

{
  "description": "Search live job postings with USDC micro-payments on Base",
  "image": "https://files.catbox.moe/x402-card.png",
  "title": "Jobs API — Pay Per Call"
}

Example output

{
  "result": {}
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402186 ms$0.002
6 h agoPassed402344 ms$0.002
10 h agoPassed402181 ms$0.002
13 h agoPassed402798 ms$0.002
17 h agoPassed402378 ms$0.002
20 h agoPassed402306 ms$0.002
23 h agoPassed402177 ms$0.002
29 h agoPassed402317 ms$0.002