Billing
Billing endpoints manage subscriptions and usage-based billing.
Plans
PromptJang has two plans. No free tier.
| Plan | Price | Events/mo | Retention | Payload | Replay/mo |
|---|---|---|---|---|---|
| Starter | $29/mo | 100,000 | 7 days | 256 KB | 1,000 |
| Pro | $69/mo | 1,000,000 | 30 days | 2 MB | 20,000 |
Overage Pricing
Usage beyond plan limits is billed at pay-as-you-go rates:
| Resource | Starter | Pro |
|---|---|---|
| Events (per 100K) | $0.40 | $0.20 |
Pro overage is intentionally cheaper to incentivize upgrades.
Create Checkout Session
POST /api/v1/billing/checkoutRequest 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/portalQuery Parameters
| Param | Required | Description |
|---|---|---|
return_url | Yes | URL 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.