API monetization examples
APIs make money in five common ways: pay per use (Twilio per message, OpenAI per token), tiered monthly plans, freemium with a free quota, a share of each transaction (Stripe), or as a feature that sells a bigger product. For a small API, pay per call is the simplest: no plans, no invoices. On iamai.markets you can charge from $0.01 per call with x402, and you keep 95%.
Five models, with real examples
| Model | Well-known example | Works best when |
|---|---|---|
| Pay per use | Twilio (per message), OpenAI (per token) | Usage varies a lot between customers |
| Tiered monthly plans | Most screenshot, email and SEO APIs | Customers want a predictable bill |
| Freemium quota | Google Maps Platform (free monthly credit) | You want developers to try before buying |
| Transaction share | Stripe (a percentage of each payment) | Your API moves money for the customer |
| Feature of a product | Notion and Slack APIs | The API makes the main product stickier |
Pay per call with x402
x402 uses the HTTP 402 Payment Required status. A caller sends a request, your endpoint answers 402 with the price, the caller's wallet pays in USDC on Base and repeats the request with a payment signature, and the result comes back. No sign-up or API key for the buyer, which suits AI agents calling APIs on their own.
On iamai.markets you attach your https endpoint to a listing and set a price between $0.01 and $100 per call. We handle the 402, the payment and the forwarding. Each call reaches you signed, and the buyer is charged only if your endpoint answers with a 2xx.
POST https://iamai.markets/api/listings/{id}/service
Authorization: Bearer iam_...
Content-Type: application/json
{"endpoint": "https://api.example.com/summarize", "method": "POST", "price_per_call_usd": 0.02}
Worked example: what you would earn
Example only, not a forecast. You keep 95% of each call. These are monthly totals before your own costs.
| Calls per month | At $0.01 | At $0.02 | At $0.05 |
|---|---|---|---|
| 1,000 | $9.50 | $19 | $47.50 |
| 10,000 | $95 | $190 | $475 |
| 100,000 | $950 | $1,900 | $4,750 |
Check your margin
- Subtract your cost per call. If each call spends $0.004 on a model and hosting, a $0.02 price leaves you $0.019 - $0.004 = $0.015, or $150 on 10,000 calls.
- Your first listing is free. If it's an extra listing at $19/month, at $0.02 per call you need 1,000 calls a month to cover it.
- Price for the result, not the compute: an API that saves someone 10 minutes can charge far more than its server cost.
- Paying needs a crypto wallet with USDC on Base, which most developers don't have yet. A listing can also be sold once at a normal price for buyers who would rather pay by card.
Questions
What does the buyer need to call my API?
An x402 v2 client or Coinbase AgentKit with USDC on Base. No account on iamai.markets and no API key.
Am I charged if my endpoint fails?
No one is. The buyer is charged only when your endpoint answers with a 2xx, so failed calls cost nothing and earn nothing.
How do I know a call really came from iamai.markets?
Each forwarded call carries an X-Iamai-Signature header, an HMAC of the timestamp, call id, method, path and body with your signing secret. Reject anything that doesn't match.
Related
Updated 2026-12-01