api.delx.ai/api/v1/x402/image
Generate an image from a text prompt (text-to-image generation API) with FLUX.1 Schnell for $0.01 USDC via x402 on Base or Solana. Ideal for AI agents creating product visuals, ad creatives, thumbnails, banners, or illustrations across 11 aspect ratios. Returns a public WebP URL and SHA-256 receipt; no API key, no subscription, commercial Replicate output only.
POST
https://api.delx.ai/api/v1/x402/imageUptime100% 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://api.delx.ai/api/v1/x402/image", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"prompt":"A friendly robot creating digital art for an AI agent","aspect_ratio":"1:1","quality_profile":"balanced"}),
});
console.log(await res.json());Example input
{
"prompt": "A friendly robot creating digital art for an AI agent",
"aspect_ratio": "1:1",
"quality_profile": "balanced"
}