Skip to content

Billing

Billing endpoints manage subscriptions and usage-based billing.

Plans

PromptJang has two plans. No free tier.

PlanPriceEvents/moRetentionPayloadReplay/mo
Starter$29/mo100,0007 days256 KB1,000
Pro$69/mo1,000,00030 days2 MB20,000

Overage Pricing

Usage beyond plan limits is billed at pay-as-you-go rates:

ResourceStarterPro
Events (per 100K)$0.40$0.20

Pro overage is intentionally cheaper to incentivize upgrades.

Create Checkout Session

POST /api/v1/billing/checkout

Request Body

json
{
  "plan": "starter",
  "success_url": "https://app.promptjang.net/dashboard",
  "cancel_url": "https://app.promptjang.net/billing"
}

Response

json
{
  "url": "https://checkout.stripe.com/..."
}

Redirect the user to the Stripe checkout URL.

Customer Portal

GET /api/v1/billing/portal

Query Parameters

ParamRequiredDescription
return_urlYesURL to redirect after portal session

Response

json
{
  "url": "https://billing.stripe.com/..."
}

Redirect the user to the Stripe customer portal to manage their subscription, view invoices, and update payment methods.

Usage Metering

PromptJang meters all event usage per billing period. Events beyond the included plan allowance are billed at the overage rates — your events are never dropped due to usage. Overage charges appear on the next invoice.

Note: Billing is currently in development. Contact support for early access.

Released under the MIT License.