PixelPay

April 9, 2026 · View on GitHub

AI image generation API monetized via MPP (Machine Payments Protocol). No API keys — just pay per request with USDC on Tempo blockchain.

Live: https://pixelpayapi.com

Pricing

ModelTierPrice
fal-ai/flux/schnellSchnell (fast)$0.03
fal-ai/stable-diffusion-v35-largeSD3.5$0.04
fal-ai/flux/devDev (balanced)$0.05
fal-ai/recraft-v3Recraft (SVG + raster)$0.06
fal-ai/hidream-i1-fullHiDream (high quality)$0.08
fal-ai/ideogram/v3Ideogram (text-in-image)$0.08
fal-ai/flux-pro/v1.1Pro (high quality)$0.10

How It Works

POST /v1/images/generate  →  402 "pay first"  →  transfer USDC  →  200 + image
  1. Send POST /v1/images/generate with a prompt and model
  2. Receive 402 Payment Required with payment challenge (amount varies by model)
  3. Sign a Tempo transaction for the required USDC
  4. Retry with Authorization: Payment <credential>
  5. Get your generated image(s) + Payment-Receipt header

Endpoints

MethodPathDescription
POST/v1/images/generateGenerate image (MPP-protected)
POST/api/demoFree demo (3/day, no wallet needed)
GET/v1/pricesCurrent pricing tiers
GET/openapi.jsonMPP service discovery
GET/llms.txtLLM-friendly docs
GET/healthHealth check

Quick Start

cp .env.example .env
# Edit .env with your WALLET_PRIVATE_KEY (Tempo wallet)
npm install
npm start

Tech Stack

  • Server: Express.js
  • Image backend: fal.ai via MPP (9 models, paid with same Tempo wallet)
  • Payments: MPP via Tempo blockchain (USDC)
  • Deploy: Render

MPP Directory

Listed on MPPscan. The /openapi.json includes x-payment-info and x-discovery extensions per the MPP spec.

License

MIT