Track revenue, costs & profits in realtime. Understand your business performance like never before.

import { Ingestion } from "@polar-sh/ingestion";
import { LLMStrategy } from "@polar-sh/ingestion/strategies/LLM";
import { generateText } from "ai";
import { openai } from "@ai-sdk/openai";
const llmIngestion = Ingestion({ accessToken: 'xxx' })
.strategy(new LLMStrategy(openai("gpt-4o")))
.ingest("openai-usage");
export async function POST(req: Request) {
const { prompt }: { prompt: string } = await req.json();
const model = llmIngestion.client({
externalCustomerId: "<USER_ID_FROM_YOUR_DATABASE>",
});
const { text } = await generateText({
model,
system: "You are a helpful assistant.",
prompt,
});
return Response.json({ text });
}
Forget all about billing & taxes. We handle it all for you as the merchant of record.
Sales Tax, VAT, GST, etc.
Withdraw with Stripe Connect
Detailed Transactions Ledger

Configure automated benefits which are granted to customers when they purchase your products.


The speed at which Polar is executing on the financial infrastructure primitives the new world needs is very impressive
—

Open source + great DX + responsive support always wins.
If you're selling stuff online and haven't tried @polar_sh yet — 100% recommend doing so!
—

I've joined Polar as an advisor!
I think it benefits everyone for devs to have more options to get paid to work on their passions, to support upstreams, and for users to have more confidence/transparency in the software they're supporting/purchasing.
—

Amazing! Really excited to seeing how this turns out.
Polar is the cutting edge of how open source might be financed in the future.
—

Huge congrats to Polar, love what this team is doing. Three person team, executing like crazy.
Building the perfect solution at the perfect time in history.
There has never been a better time to build software, and now, there has never been an easier way to charge for the software you build.
—

I switched to @polar_sh a few weeks back. Best decision ever.
—

We switched to @polar_sh because of their killer API, UX, and product. Also love that it's Open-Source. Their team cares A LOT as well. Worth the minor fee difference.
—

You can tell @polar_sh is building DX first
—

man, @polar_sh has one of the BEST onboardings I've seen for a payment provider.
Took me less than 20 minutes while some others took literally weeks
—

| Feature | Polar | Stripe |
|---|---|---|
| Payment Processing | ||
| Subscription Management | ||
| Merchant of Record | ||
| Global Tax Compliance | ||
| Framework Adapters | ||
| Payments in 6 lines of code | ||
| Flexible Usage Billing |