I

Imagcon · Routes Generate Image

by Imagcon

POSTBase

$0.195

per call · USD Coin on Base

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.

Endpoint

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

1

Calls / 30d

1

Unique payers / 30d

Aug 29

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("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"
  }),
});
const data = await res.json();
cURL
curl -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"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

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

Payment details

Pay to0x1f2a484ef654d49c58c625b09e78b538501d652d
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Media & Generation and the homepage with a featured placement.

Get featured →

More from Imagcon & similar services