AI Image Generation
Four paid tiers. Any prompt. No API key.
## ImageGen — imagegen.coinopai.com
AI image generation over x402 on Base mainnet. Four paid tiers from $0.25-$0.75 USDC.
ENDPOINT
GET /generate
GET /generate/clean
GET /generate/hd
GET /generate/pro
PARAMETERS
prompt (required) — image description
aspect (optional) — 1:1 | 16:9 | 9:16 | 4:3 (default: 1:1)
RESPONSE
{ image_url, prompt, aspect, generated_at }
PAYMENT
Protocol : x402
Amount : 0.25 / 0.35 / 0.50 / 0.75 USDC
Network : Base mainnet (eip155:8453)
Wallet : 0x4C1a4FcE51Fea51f128a01ccE8BecB106d391155
NPM
forgemesh-imagegen v1.0.2 — https://www.npmjs.com/package/forgemesh-imagegen
| Endpoint | What it does | Price |
|---|---|---|
GET /generate |
Standard image generation, returns PNG URL | $0.25 |
GET /generate/clean |
Image generation with background removed | $0.35 |
GET /generate/hd |
Premium image generation with 4x upscale | $0.50 |
GET /generate/pro |
Top-tier generation with background removal and 4x upscale | $0.75 |
No subscriptions. 10 requests/minute/IP. USDC on Base mainnet.
# Step 1: request hits 402 — server returns payment instructions
curl -i "https://imagegen.coinopai.com/generate?prompt=neon+wolf&aspect=16:9"
# HTTP/2 402
# X-Payment-Required: { scheme, payTo, maxAmountRequired, ... }
# Step 2: x402 client pays $0.25 USDC on Base, retries with header
# HTTP/2 200 → { image_url, prompt, aspect, generated_at }
# With the x402 JS client:
npx x402-fetch "https://imagegen.coinopai.com/generate?prompt=neon+wolf" \
--private-key "0x<your-key>"
Add to claude_desktop_config.json — funds a Base wallet, no signup required.
{
"mcpServers": {
"imagegen": {
"command": "npx",
"args": ["-y", "forgemesh-imagegen"],
"env": {
"WALLET_PRIVATE_KEY": "0x<your-key>"
}
}
}
}