๐Ÿค– Software ยท LARZ-501 · Session 3 of 8

Pricing Your AI App

Declare plans and credit as code so customers can pay for usage.

⏱ 10 min read📅 Updated 2026-07-25📊 Code examples throughout

Pricing-as-code

import larz.money as money; money.enable(app, base_url="https://you.com")
from larz.pricing import Pricing
(Pricing()
 .plan("free", "$0", limits={"words_per_day": 500})
 .plan("pro", "$19/mo", trial_days=7, features=["Unlimited words"])
 .plan("unlimited", "$99/mo", limits={"ai_unlimited": True})
 .credit_pack("starter", price="$10", credit="$12")
 .mount(app))

One object generates the /larz/pricing page, checkout, entitlements and credit packs. The unlimited plan sets ai_unlimited โ€” later that skips the per-token meter for those subscribers.

Takeaways

  • Metered AI is usually sold as prepaid credit + optional plans.
  • ai_unlimited lets premium tiers bypass metering.

More in this course

Course home → · Browse all courses →