Meter Overview

Solenoid Meter is an edge-native usage metering API that tracks and deducts credits atomically with single-digit millisecond latency.

Concurrent deduct requests never put balances below zero. Operations are serialized through distributed state coordination, eliminating race conditions without external locks.

Capabilities

  • Atomic balance operations — deduct, refill, reset, and check balances with guaranteed consistency
  • Sub-10ms p99 latency — executes at the nearest edge location to each request
  • Multi-tenant metering — per-user meters via /v1/meter/:meterId/* endpoints, created implicitly on first use
  • Shared API keys — one sm_ key works across all Solenoid products (Gate, Witness, Relay, Latch, Pulse)
  • Standard REST API — predictable /v1/ versioning, JSON responses, and request ID tracing on every call

Use Cases

  • API quota enforcement — track calls per user and reject when limits are reached
  • Credit-based billing — deduct tokens for AI inference, compute jobs, or file processing
  • Consumption metering — record storage, bandwidth, or processing time for invoicing
  • Per-customer metering — isolate balances per end user with multi-tenant endpoints
  • Prepaid wallets — sell credit packs and deduct on each API call

Pricing

Every Meter operation costs 1 credit from your account’s shared pool. See Pricing for tier details.

Next Steps