‹ Back to apps
Narev
Real-time LLM pricing with tools to implement usage-based billing
What’s inside
1 MCP server · 5 skills- MCP servernarevMCP server with real-time LLM pricing
- Skillclerk-narevAdd Clerk auth + Narev/Polar usage-based billing to a Next.js App Router app. Two paths — new app (prebuilt useChat hook + @ai-billing/nextjs UI, no custom route handler) or existing Vercel AI SDK app (wrap streamText/generateText calls with create[Provider]WithBilling). Covers the Clerk userId → billing tags bridge, Polar customer provisioning on sign-up, and @ai-billing/nextjs usage/top-up UI. Self-contained — works without clerk-setup or narev-nextjs-patterns installed.
- Skillnarev-lookup-llm-pricingNarev pricing API on https://api.narev.ai — seven public endpoints only: reference providers/models, price by provider, price search, find cheapest, and POST /v1/calculate. No Bearer token. For pinning rates into the repo, use update-llm-pricing.
- Skillnarev-nextjs-patternsNext.js App Router billing with Narev — always wire a billing destination (prefer @ai-billing/polar for usage-based billing; Stripe supported but consider Polar). Greenfield setup (packages, Polar, @ai-billing/nextjs UI) and brownfield retrofit (wrap generateText/streamText with provider middleware, createNarevPriceResolver, destinations, customer tags, multi-provider factories, test bypasses). Use for any Next.js + Vercel AI SDK + Narev billing task.
- Skillnarev-starter>-
- Skillnarev-update-llm-pricingPin LLM pricing in the repo: fetch rows from narev-lookup-llm-pricing (price/search or price per provider), map pricing.prompt/completion into your schema, write a committed file. Use for snapshots — not for endpoint contracts (use lookup-llm-pricing).