Free up to 100 users · Stripe Connect built in · No credit card required

Turn AI usage into revenue

Nasca is the monetisation layer for AI apps. We handle per-user limits, credit top-ups, and upgrade prompts automatically.

Shipping AI features is the easy part

Once you launch, every AI app runs into the same three walls.

💸

Surprise bills

One power user can burn through your entire monthly OpenAI budget overnight. No native per-user limits exist.

📉

Users churn at the limit

When users hit your hard cap they leave. Most would have paid to keep going, but there's no on-ramp.

🔧

Billing is a full project

Token counting, Redis counters, Stripe webhooks, a checkout flow, and an admin UI. Weeks of work before your first dollar.

Everything in one SDK

Nasca is the complete AI billing layer. Plug it in once; everything else is config.

Per-user spend limits

Set monthly, daily, and weekly AI budgets per user tier. Over-budget users are blocked instantly, with zero extra latency on passing requests.

Credit top-ups

Sell AI credits directly to your end-users via Stripe Connect. Fixed packs or flexible top-ups: they pay, your Stripe account receives, Nasca takes 2%.

Subscription plans

Link your Stripe recurring prices to monthly AI spend limits. Nasca unlocks a higher budget the moment a user subscribes. No webhooks to write.

Revenue analytics

Track checkout conversions, daily revenue, and prompts blocked, all in one dashboard. See which users bought, what they paid, and what you earned.

How Nasca compares

Cloudflare and Vercel handle blocking. Nasca handles everything that comes after.

NascaCloudflare AI GatewayVercel AI GatewayBuild yourself
Per-user spend limitsVia API keysWeeks
Daily & weekly limitsWeeks
No proxy required
Upgrade promptingWeeks
Credit top-upsWeeks
Hosted checkoutWeeks
Conversion analyticsWeeks
Works on any host
Integration effort10 linesProxy setupProxy setupWeeks

Three steps to ship

Works with Next.js, Express, and plain Node.js

1

Install and initialise

npm install @nasca/sdk
Your project · once
import { Nasca } from '@nasca/sdk'

const nasca = new Nasca({
  accountId: process.env.NASCA_ACCOUNT_ID,
  workerUrl: process.env.NASCA_WORKER_URL,
  apiKey: process.env.NASCA_API_KEY,
  getUserId: (ctx) => ctx.user.id,
  getUserTier: (ctx) => ctx.user.plan,
})
2

Wrap your AI function

Your AI module · once
const callAI = nasca.wrap(
  openai.chat.completions.create.bind(openai.chat.completions)
)

One wrap call covers all your AI providers: OpenAI, Anthropic, or any OpenRouter model.

3

Handle the blocked error

Every AI call
try {
  const result = await callAI({ model: 'gpt-4o', messages: [...] }, ctx)
} catch (err) {
  if (err instanceof NascaBlockedError) {
    // err.checkoutUrl  → Stripe checkout or top-up page
    // err.message      → your custom upgrade prompt
  }
}

Over-budget users receive a NascaBlockedError with your custom message and a ready-made checkoutUrl. Nasca checks limits in under 50ms and logs usage after the response, all invisible to your users.

Supports OpenAI, Anthropic Claude, and OpenRouter. Any provider with token counts in the response works with custom pricing.

Turn limits into revenue

When a user hits their limit, Nasca shows them a path forward, not a dead end.

01

User hits their limit

Nasca blocks the request and throws a NascaBlockedError with your custom upgrade message and a checkout URL.

02

User buys more

They click through to a Stripe checkout for a credit pack, a flexible top-up, or a subscription. All payments are processed through your Stripe account.

03

Nasca credits them instantly

Stripe notifies Nasca. The user's AI credits are topped up and their next request goes through. No manual intervention needed.

2%
Platform fee on credit purchases. You keep 98%.
<50 ms
Redis check latency added to each AI call.
0
Stripe webhooks, billing pages, or Redis infra to manage.

Simple pricing

Start free, upgrade when you scale.

Both plans include a 2% platform fee on all conversions processed through Nasca checkout.

Free

$0

Everything you need to start monetising

  • Up to 100 tracked end-users
  • Per-user limits (monthly, daily, weekly)
  • Credit top-ups and flexible top-ups
  • Upgrade prompting with custom messages
  • Monetisation dashboard and analytics
  • 30-day data retention
Get started free

Pro

$19/month

For apps with real traction

  • Unlimited tracked end-users
  • Everything in Free
  • Advanced conversion analytics
  • A/B testing of upgrade prompts (coming soon)
  • 90-day data retention
  • Priority support
Get started

2% platform fee applies to credit pack purchases and subscription upgrades processed through Nasca-hosted checkout. No fee on AI usage itself. Enterprise pricing available.

Ship AI billing this week,
not this quarter

Add limits, credit packs, and subscriptions to your app in an afternoon. Free for your first 100 users.