80trust / 100

Routes Generate Image

by Imagcon in AI models & inference

x402 APIPassing, checked 28 min ago

Generate one image from a text prompt: app icon, brand logo, character mascot or illustration. POST JSON {description, type?, style?, aspect_ratio?}. type is icon, logo, mascot or illustration (default icon; only icon gets app-icon framing and mask safe margins). style is flat, metallic, 2d-game, clay, 3d, gradient or glassmorphism. aspect_ratio is 1:1, 4:3 or 16:9. Returns image_key and preview_url. No account required.

POST https://imagcon.app/routes/x402/generate-image

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
245 ms typical, 327 ms slowest 5%
Last check
28 min ago
Next check
in 5 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://imagcon.app/routes/x402/generate-image" \
  -H "content-type: application/json" \
  -d '{"description":"A friendly lobster holding a starfish","style":"clay","type":"mascot"}'
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%2Fimagcon.app%2Froutes%2Fx402%2Fgenerate-image
const res = await pay("https://imagcon.app/routes/x402/generate-image", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"description":"A friendly lobster holding a starfish","style":"clay","type":"mascot"}),
});
console.log(await res.json());

Example input

{
  "description": "A friendly lobster holding a starfish",
  "style": "clay",
  "type": "mascot"
}

Example output

{
  "image_key": "generated_images/anonymous/<uuid>.png",
  "preview_url": "https://imagcon.app/routes/get-image/generated_images/anonymous/<uuid>.png"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
28 min agoPassed402239 ms$0.195
4 h agoPassed402245 ms$0.195
8 h agoPassed402226 ms$0.195
12 h agoPassed402362 ms$0.195
15 h agoPassed402275 ms$0.195
19 h agoPassed402184 ms$0.195
23 h agoPassed402286 ms$0.195
26 h agoPassed402183 ms$0.195
31 h agoPassed402327 ms$0.195