Xtopay
Metered & Usage API

Usage-Based Billing for Developer APIs & AI

Charge your customers for exactly what they use. Ingest thousands of events per second — compute minutes, database storage, API calls, or AI token counts — and let Xtopay aggregate and invoice automatically.

< 1.5ms

Event Aggregation Latency

10M+

Daily events capacity

0.00%

Usage Leakage Rate

Active Usage Meters

Tokens & Compute Ingestion · Live

Active Ingest
Events Ingested Today
1,248,390requests

AI Prompt Tokens

892,300 tokens · $0.005 / 1k

$4.46

Compute Milliseconds

348,200 ms · $0.005 / sec

$1.74

Storage Allocation

124.5 GB/hr · $0.025 / GB

$3.11
100% idempotent events queue

Developer Hurdles

Metered billing shouldn't crash your databases

Traditional tools force you to run heavy cron jobs and aggregate gigabytes of request logs. Xtopay changes the game with real-time stream ingestion.

Ingestion Overhead

Database log congestion

Writing SQL queries to sum high-volume API transaction logs blocks DB resources. You shouldn&apos;t risk database uptime to calculate billing.

Invoice Shock

Customer disputes

Billing post-usage without dynamic budget alerts triggers massive customer support complaints when developers accidentally leak API keys.

Fund Collection Gap

Uncollectible renewals

Charging Mobile Money after usage fails if the customer&apos;s wallet balance is dry. You need prepaid credit top-ups built directly into meters.

Xtopay is built on sub-millisecond, highly-available event ingestion pipelines. Create developer account →

Product Capabilities

Built for modern cloud infrastructure

A real-time metered engine engineered to handle massive event velocity. Focus on writing code while Xtopay calculates exact usage billing.

Dynamic Aggregations

Charge by sum of events, peak concurrent capacity (max), unique API calls (unique count), or final ledger snapshot (last).

10k Events / Sec

Ingest thousands of metered events simultaneously. Scale compute hours or AI token logs effortlessly with no congestion.

Flexible Volume Tiers

Configure billing rules like graduated billing (price decreases as usage increases) or strict flat rate + metered hybrid models.

Threshold Webhooks

Trigger automated warnings or block API request keys the moment a customer reaches 80% or 100% of their monthly budget limit.

Prepaid Wallet Drawdowns

Reduce collection failure risk. Let customers top up a credit wallet and draw down funds in real-time as events occur.

Idempotent Logs

Built-in event deduplication. Every ingestion payload carries a unique ID, ensuring you never double-charge for a single request.

Developer Playground

High-velocity event ingestion

Ingest usage logs instantly. Our systems aggregate events in memory with sub-millisecond response times, keeping your app fast and your metrics accurate.

1

Native API support

HTTP REST API with clean payloads

2

Webhook integrations

JSON webhooks with signature security

3

Strictly typed SDKs

Types for JS, Python, Go, and PHP

shell

Request Payload

curl -X POST https:400">"text-cyan-400">class=400">"text-zinc-500">//api.xtopay.co/v1/usage-events \  -H 400">"Authorization: Bearer sec_live_..." \  -H 400">"Content-Type: application/json" \  -d '{    400">"idempotency_key": 400">"evt_01HXYZ...",    400">"meter_id": 400">"met_tokens_consumed",    400">"customer": 400">"cus_01HXYZ...",    400">"value": 450,    400">"timestamp": 400">"2026-05-28T01:07:30Z"  }'

Response (200 OK)

{  "id": "evt_01HYS4C...",  "object": "usage_event",  "idempotency_key": "evt_01HXYZ...",  "meter_id": "met_tokens_consumed",  "customer": "cus_01HXYZ...",  "value": 450,  "status": "accepted",  "aggregated_total": 892300,  "created_at": "2026-05-28T01:07:30Z"}
Xtopay Ecosystem

Start charging by usage today

Deploy real-time token tracking or API call metering to your platform. Settle invoices instantly without database heavy lifting.

✓ No setup fees✓ Live credentials in minutes✓ 24/7 technical support