AI image generation API monetized via MPP (Machine Payments Protocol). No API keys — just pay per request with USDC on Tempo blockchain.
Live: https://paid-image-api.onrender.com
| Model | Tier | Price |
|---|---|---|
fal-ai/flux/schnell |
Schnell (fast) | $0.03 |
fal-ai/stable-diffusion-v35-large |
SD3.5 | $0.04 |
fal-ai/flux/dev |
Dev (balanced) | $0.05 |
fal-ai/recraft-v3 |
Recraft (SVG + raster) | $0.06 |
fal-ai/hidream-i1-full |
HiDream (high quality) | $0.08 |
fal-ai/ideogram/v3 |
Ideogram (text-in-image) | $0.08 |
fal-ai/flux-pro/v1.1 |
Pro (high quality) | $0.10 |
POST /v1/images/generate → 402 "pay first" → transfer USDC → 200 + image
- Send
POST /v1/images/generatewith a prompt and model - Receive
402 Payment Requiredwith payment challenge (amount varies by model) - Sign a Tempo transaction for the required USDC
- Retry with
Authorization: Payment <credential> - Get your generated image(s) +
Payment-Receiptheader
| Method | Path | Description |
|---|---|---|
POST |
/v1/images/generate |
Generate image (MPP-protected) |
POST |
/api/demo |
Free demo (3/day, no wallet needed) |
GET |
/v1/prices |
Current pricing tiers |
GET |
/openapi.json |
MPP service discovery |
GET |
/llms.txt |
LLM-friendly docs |
GET |
/health |
Health check |
cp .env.example .env
# Edit .env with your FAL_KEY
npm install
npm start- Server: Express.js
- Image backend: fal.ai (7 models)
- Payments: MPP via Tempo blockchain (USDC)
- Deploy: Render
Listed on MPPscan. The /openapi.json includes x-payment-info and x-discovery extensions per the MPP spec.
MIT