Home / Use cases / dalle-image-paywall

Bill per DALL-E / Flux image generation

The problem

Image generation is expensive and easy to abuse. You need a billing primitive that enforces per-call cost in real time.

What Spawnpay does

paid-image-mcp drops into any agent client. Pre-built tools: generate_image_flux (Replicate, ~$0.003/image) and generate_image_dalle (OpenAI, ~$0.02/image). $0.001 Spawnpay markup. Polling reuses idempotency so only the create step is billed.

Code

curl -X POST https://spawnpay.ai/api/proxy\
  -H 'Authorization: Bearer spk_live_...'\
  -H 'Content-Type: application/json'\
  -H 'X-Provider-Key: $OPENAI_API_KEY' \
  -d '{  "provider": "openai",  "path": "/v1/images/generations",  "method": "POST",  "body": {    "model": "dall-e-3",    "prompt": "a green frog",    "n": 1  }}'
60-SEC QUICKSTART → PLAYGROUND → TOP UP USDC →

What you get with $7 free credit

Every new spk_ wallet starts with $7. That covers 7,000 proxy calls, 1,400 cloud-scrapes, or 700 screenshots — enough to verify Spawnpay fits your workflow before topping up.

See also