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
Tokens & Compute Ingestion · Live
AI Prompt Tokens
892,300 tokens · $0.005 / 1k
Compute Milliseconds
348,200 ms · $0.005 / sec
Storage Allocation
124.5 GB/hr · $0.025 / GB
Developer Hurdles
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
Writing SQL queries to sum high-volume API transaction logs blocks DB resources. You shouldn't risk database uptime to calculate billing.
Invoice Shock
Billing post-usage without dynamic budget alerts triggers massive customer support complaints when developers accidentally leak API keys.
Fund Collection Gap
Charging Mobile Money after usage fails if the customer'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
A real-time metered engine engineered to handle massive event velocity. Focus on writing code while Xtopay calculates exact usage billing.
Charge by sum of events, peak concurrent capacity (max), unique API calls (unique count), or final ledger snapshot (last).
Ingest thousands of metered events simultaneously. Scale compute hours or AI token logs effortlessly with no congestion.
Configure billing rules like graduated billing (price decreases as usage increases) or strict flat rate + metered hybrid models.
Trigger automated warnings or block API request keys the moment a customer reaches 80% or 100% of their monthly budget limit.
Reduce collection failure risk. Let customers top up a credit wallet and draw down funds in real-time as events occur.
Built-in event deduplication. Every ingestion payload carries a unique ID, ensuring you never double-charge for a single request.
Ingest usage logs instantly. Our systems aggregate events in memory with sub-millisecond response times, keeping your app fast and your metrics accurate.
HTTP REST API with clean payloads
JSON webhooks with signature security
Types for JS, Python, Go, and PHP
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"}Deploy real-time token tracking or API call metering to your platform. Settle invoices instantly without database heavy lifting.