Menu

Explorer & Settings

Tempo Explorer Submit Project
Back to all projects

paid-image-api

by cepuyut · Updated 2 months ago

Pay-per-request AI image generation powered by Tempo Machine Payments Protocol (MPP). Live on mainnet. Pay with USDC.

Open source alternative to:

In the AI payments ecosystem

paid-image-api is an early-stage HTML project in the AI payments / x402 ecosystem, focused on ai, api, flux, image-generation. It currently has 0 GitHub stars and 0 forks, and sits alongside related tools like mpp-sui, inflow-node, APIMesh, conway, x402, Caypo.

README.md View on GitHub →

PixelPay

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

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

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

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

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

All Micropayments projects →