polarsource /polar

Polar — A billing platform for the intelligence era

★ 10,454⑂ 842👁 26▤ 78
PythonCreated 2023-01-26polar.sh
10,454
stars
+0+0+130
842
forks
26
watchers
–
prs
–
issues
78
releases
–
discussions

README

Website
  •  
Docs
  •  
API Reference


  
    
  




 Polar: A billing platform for the intelligence era

Turn usage into revenue. Polar is the financial layer for a new generation of intelligent software, built for AI startups that need to charge for tokens, agents, and compute without building billing infrastructure from scratch.

- Ship any pricing model in an afternoon. Usage billing, subscriptions, seats, credits, trials, and discounts. Compose them however your product charges.
- Meter what matters. Bill tokens, API calls, agent runs, GPU seconds, and storage with precision down to the event.
- Checkouts that convert, realtime metrics, and worldwide tax handled for you.
- We're the merchant of record, so we take on the billing boilerplate (receipts, customer accounts, dunning) and the headaches (sales tax, VAT) on your behalf.

 Built for AI workloads

- AI completions: wrap any model with metered token billing on every call.
- Autonomous agents: charge per run with step-level granularity, retries without double-billing.
- GPU & compute: meter fine-tuning, hosted inference, and training runs by the second.

 Pricing

- Starter (free): 5.00% + 50¢ per transaction
- Pro: 3.80% + 40¢ per transaction
- Growth: 3.60% + 35¢ per transaction
- Scale: 3.40% + 30¢ per transaction
- Eligible startups can apply to the Startup Program for a year on our most generous plan
- Additional fees may apply. Read more

 Roadmap, Issues & Feature Requests

💬 Feature requests & bugs can be reported through the "Feedback" button found in the sidebar, bottom left of your Polar dashboard.

🔓 Found a security vulnerability? We greatly appreciate responsible and private disclosures. See Security

 Polar API & SDK

You can integrate Polar on your docs, sites or services using our Public API and Webhook API.

We also maintain SDKs for the following languages:

- JavaScript (Node.js and browsers): polarsource/polar-js
- Python: polarsource/polar-python

 Contributions

Our DEVELOPMENT.md file contains everything you need to know to configure your development environment.

 Contributors


  


♥️🙏 To our pyproject.toml friends: FastAPI, Pydantic, Dramatiq, SQLAlchemy, Githubkit, sse-starlette, Uvicorn, httpx-oauth, jinja, blinker, pyjwt, Sentry + more
♥️🙏 To our package.json friends: Next.js, TanStack Query, tailwindcss, openapi-typescript-codegen, axios, radix-ui, cmdk, framer-motion + more
♥️🙏 To IPinfo that provides IP address data to help us geolocate customers during checkout.

 License

Licensed under Apache License, Version 2.0.

Snapshot: 2026-11-04T14:00:00Z · Data license Apache-2.0 · JSON