How to set up Billing for AI Agents with LangChain and Kong in 15 Minutes | Monetize AI Agents

May 12, 2026

Want to bill customers for the AI tokens they actually use?

This video shows you how to set up a LangChain app that meters LLM token usage and streams it to Kong Konnect Metering & Billing as CloudEvents — turning every prompt and response into invoiced usage, automatically.

Clone the repo and code along:
https://github.com/tejakummarikuntla/llm-metering-langchian-kong

What you'll learn

  • How to set up LangChain callbacks for every LLM call
  • How to send CloudEvents with input and output token counts
  • How Kong meters, features, and plans turn raw usage into dollars
  • Resources

Kong Metering & Billing: https://developer.konghq.com/metering-and-billing/
CloudEvents spec: https://cloudevents.io/