Free up to 250 users · No credit card required

Per-user AI cost limits
in 10 lines of code

Add spend budgets to every end-user in your app. Block over-budget users automatically, show them your upgrade prompt, and watch spend in a live dashboard.

The problem with AI APIs

💸

Surprise bills

One power user can burn through your entire monthly OpenAI budget overnight.

🚫

No per-user limits

OpenAI and Anthropic have no native way to set spending limits per end-user. It's all or nothing.

🔧

Hard to build yourself

Building token counting, Redis counters, block logic, and a billing UI takes weeks.

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,  // 'Free', 'Pro', etc. — matches your tier names
})
2

Wrap your AI function

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

Use it everywhere — identical API

Every AI call
// Throws NascaBlockedError if user is over budget
const result = await callAI(
  { model: 'gpt-4o', messages: [...] },   // or 'claude-sonnet-4-6'
  ctx
)

Over-budget users get a NascaBlockedError with your custom upgrade message. Under the hood, Nasca checks Redis in under 50ms — your app never slows down.

Currently supports OpenAI and Anthropic Claude. More providers coming soon.

Simple pricing

Priced by how many end-users you track. No per-request fees.

Free

$0
250 users tracked
Get started

Starter

$29/mo
2,000 users tracked
Get started
Most popular

Growth

$59/mo
10,000 users tracked
Get started

Pro

$149/mo
50,000 users tracked
Get started

Scale

$299/mo
150,000 users tracked
Get started

Enterprise

Custom
Custom tracked
Contact us

Stop worrying about AI bills

Built for indie developers who ship fast.

Get started free — no credit card required