Overview

Monetize your AI application by syncing Synapse token consumption directly to Stripe Billing Meters. Synapse automatically aggregates token usage per customer ID and flushes it to Stripe hourly.

Quickstart

Map your Synapse tenant IDs to your Stripe Customer IDs using the Metering API.

plaintext
1
POST /v1/billing/meters
2
{
3
"provider": "stripe",
4
"stripe_secret_key": "sk_test_...",
5
"mapping": {
6
"synapse_tenant_id": "stripe_customer_id"
7
},
8
"flush_interval": "1h"
9
}

Installation

npm
$npm install @synapse/stripe

DEPLOY / SYNAPSE OS

Start building with Synapse OS.

Two ways in — pick your path.

01

For humans

Get started with our Next.js and Python SDKs in seconds.

02

For agents

Tools to connect your autonomous agents to our edge infrastructure.

$npm install @synapse/sdk

Aquire $129

Aquire $129

Aquire $129

Create a free website with Framer, the website builder loved by startups, designers and agencies.