Image Generator MCP
Generates images from text prompts using OpenAI's DALL-E 3, with configurable sizes and quality settings.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Image Generator MCP
AI image generation with DALL-E 3 and x402 micropayments on Base.
Features
🎨 AI Image Generation - Generate high-quality images from text prompts using OpenAI DALL-E 3
💳 x402 Payments - Pay $0.010 USDC per image via Base mainnet
📐 Multiple Sizes - 1024x1024, 1024x1792 (portrait), 1792x1024 (landscape)
⚡ Fast Generation - Images generated in seconds
🔒 Payment Verification - Secure payment verification via Coinbase CDP Facilitator
Related MCP server: mazzagrp-mcp
Live Demo
🌐 Service URL: https://image-generator-mcp.vercel.app
API Endpoints
POST /api/generate
Generate AI image from text prompt
Request:
{
"prompt": "A serene mountain landscape at sunset",
"size": "1024x1024",
"quality": "standard"
}Parameters:
prompt(required) - Text description of the imagesize(optional) - Image dimensions:1024x1024,1024x1792,1792x1024(default:1024x1024)quality(optional) - Image quality:standard,hd(default:standard)
Response:
{
"success": true,
"prompt": "A serene mountain landscape at sunset",
"revisedPrompt": "A tranquil mountain scene...",
"imageUrl": "https://oaidalleapiprodscus.blob.core.windows.net/...",
"size": "1024x1024",
"quality": "standard",
"generatedAt": "2026-09-06T10:45:00.000Z",
"payment": {
"verified": true,
"amount": "0.010",
"currency": "USDC"
}
}GET /.well-known/x402
x402 Bazaar discovery endpoint (free)
GET /mcp/tools
MCP tool metadata (free)
GET /health
Health check endpoint (free)
Payment Details
Network: Base Mainnet (eip155:8453)
Currency: USDC
Price: $0.010 per image
Protocol: x402 v2 "exact" scheme
Payment Address:
0xf081ee84c0d85278a6242bc265f0b312021ebeb1
Setup
Prerequisites
Node.js 18+
OpenAI API key
Vercel account (for deployment)
Installation
npm installEnvironment Variables
Create a .env file:
OPENAI_API_KEY=your_openai_api_key_here
X402_FACILITATOR_URL=https://api.cdp.coinbase.com/platform/v2/x402
PORT=3000Local Development
npm startServer runs on http://localhost:3000
Deployment
Deploy to Vercel
# Install Vercel CLI
npm i -g vercel
# Deploy
vercel
# Set environment variable
vercel env add OPENAI_API_KEYAdd your OpenAI API key when prompted.
How x402 Payment Works
Agent calls
/api/generatewithout paymentServer returns 402 with payment details in
PAYMENT-REQUIREDheaderAgent pays $0.010 USDC on Base via CDP Facilitator
Agent retries with
PAYMENT-SIGNATUREheaderServer verifies payment and generates image
Tech Stack
Express.js - Web server
@x402/core - Payment verification
OpenAI API - DALL-E 3 image generation
Base Mainnet - Low-fee L2 blockchain
Vercel - Serverless deployment
License
MIT
Support
For issues or questions, open an issue on GitHub.
This server cannot be deployed
Maintenance
Related MCP Connectors
AI dev tools + image generation, paid per-use with USDC on Base (x402).
AI music, video, image, and voice tools callable by agents with USDC payments via x402 on Base.
Pay-per-call AI and media tools over x402. USDC on Base, no signup, no API key.
Pay-per-use AI and data tools via x402: image, video, music, voice, search, crypto. USDC.
Related MCP Servers
- FlicenseAqualityFmaintenanceAI image generation from text prompts via x402 micropayments on Base. $0.10 USDC per image, paid automatically from your wallet. No API key required.1-
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to access 21 mazzagrp.com AI endpoints with x402 USDC micropayments on Base, paying per call without API keys.MIT
- AlicenseNot gradedqualityDmaintenanceDeterministic social image rendering for AI agents that converts specs into PNGs with exact typography, paid per call in USDC on Base via x402.68 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables coding agents to generate AI images directly through MCP tools, handling payment via the x402 protocol with USDC on Base and no API keys.MIT