Skip to content
Fourohtwo

Generate one image from a text prompt

imagcon.app/routes/x402/generate-image

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_u

BaseAnswering
POSThttps://imagcon.app/routes/x402/generate-image

Uptime100% of 3 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
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"
}

More from ImagconProvider status