# S11 E27: Billing AI Agents and Protecting Margins with Raj Dosanjh of Paid

Published: 2025-12-02
Duration: 2263s
Audio: https://pdst.fm/e/pscrb.fm/rss/p/audio4.redcircle.com/episodes/4f01a6db-729a-4ba8-b177-5e2f95285165/stream.mp3

## Key Takeaways
- Token Costs Change the Math: Unlike many SaaS costs, token usage is billed as it happens, so some customers are more profitable than others. A voice agent customer who talks a lot costs more and may need to be billed accordingly.
- Telemetry Over Manual Metering: Paid's SDK event submission stalled integrations, so the team leaned on OpenTelemetry. AI helps turn raw trace data into billable business metrics that map to what end customers pay for.
- Paid Design Partners: Unpaid design partners agreed to help but put off integrating. Having partners pay put skin in the game, created a forcing function and drove the engagement Paid needed to iterate quickly.
- Engineers Own the Customer: Paid has no real roadmap in the traditional sense. Engineers stay close to customers from implementation through expansion and retention, and can ship fixes within hours of hearing an objection.
- Scale With Observability: Raj advises watching metrics like P95s and CPU usage and fixing bottlenecks as they appear. A cache or database proxy may help far more than a big bet like migrating to Kubernetes.

**Billing AI agents: Raj Dosanjh of Paid on pricing agent-delivered work, tracking costs and keeping AI companies profitable.**

———

Raj Dosanjh grew up in Coventry, which he calls the Detroit of the UK. He still enjoys following the football team, and hopes they rejuvenate the city some. He eventually left for University and moved to London. He likes to dig into how people think and how things are built. Outside of tech, he is engaged to be married in 2026. As such, he has recently taking up physical training - which results in a lot of working out, and meals filled with chicken.

In the past, Raj's now co-founder reached out to him, post shutting the doors on his prior startup. After they had felt out the market to see if a solution for billing could fit, they moved forward and eventually started enabling revenue streams for AI agents.

This is the creation of [Paid](https://paid.ai/).

Sponsors

- [Incogni](http://incogni.com/codestory)
- [NordProtect](https://nordprotect.com/codestory)
- [Vention](https://ventionteams.com/codestory)
- CodeCrafters helps you become a better engineer by building real-world, production-grade projects. Learn hands-on by creating your own Git, Redis, HTTP server, SQLite, or DNS server from scratch. Sign up for free today using this [link](https://l.mailtrack.com/l/23126a66ca05e0f5c6fed5631effe0f55a6e32d1?u=12932909) and enjoy 40% off.
- [Full Scale](https://productdriven.com/codestory)
- [Paddle.com](https://www.paddle.com/)
- [Sema Software](https://www.semasoftware.com/)
- [PropelAuth](https://www.propelauth.com/)
- [Postman](https://www.postman.com/podcast/codestory)
- [Meilisearch](https://www.meilisearch.com/?utm_campaign=podcast&utm_medium=ad&utm_source=codestory)

Links

- [https://paid.ai/](https://paid.ai/)
- [https://www.linkedin.com/in/rdosanjh/](https://www.linkedin.com/in/rdosanjh/)

  

Timestamps

00:00 – Intro

07:31 – Building the Paid MVP

11:09 – Maturing the Product Roadmap

14:46 – Building the Paid Team

18:07 – Fighting Scale at Paid

21:34 – Proudest Moment So Far

24:45 – Mistakes and Co-Founder Tension

27:52 – The Future of Paid

31:57 – Influences on Raj's Work

35:25 – Advice for Young Entrepreneurs

Times are from the episode recording; ad breaks in your player may shift them a bit later.

  

Read the key answers from this episode, with quotes and timestamps from Raj Dosanjh from Paid: [https://www.codestory.co/episodes/s11-e27-why-conventional-saas-billing-fails-the-agentic-era-and-how-to-protect-margins-on-non-deterministic-actions-with-raj-dosanjh-co-founder-engineering-lead-at-paid/](https://www.codestory.co/episodes/s11-e27-why-conventional-saas-billing-fails-the-agentic-era-and-how-to-protect-margins-on-non-deterministic-actions-with-raj-dosanjh-co-founder-engineering-lead-at-paid/)

  
  

Current Sponsors:

- [Tiger Data](https://tigerdata.com/)

- [Protected Harbor](http://protectedharbor.com/codestory)

- [Render](https://render.com/)

- [Fitnexa](https://www.fitnexa.com/)

- [Perplexity](https://pplx.ai/codestory)

- [Entelligence](https://entelligence.ai/)

Checkout our [Substack](https://news.codestory.co/subscribe)

Checkout our [Stacklist!](https://stacks.codestory.co/)

Checkout our [Patreon!](https://www.patreon.com/cw/codestory)

Hosted by  [Noah Labhart.](https://noahlabhart.com/)

  
  
Our Sponsors:  
* Check out Granola and use my code granola.ai/CODESTORY for a great deal: https://granola.ai  
* Check out Perplexity: https://pplx.ai/codestory  
  
  
Advertising Inquiries: [https://redcircle.com/brands](https://redcircle.com/brands)  
  
Privacy & Opt-Out: [https://redcircle.com/privacy](https://redcircle.com/privacy)

## Chapters
- 0:00 — Intro
- 7:31 — Building the Paid MVP
- 11:09 — Maturing the Product Roadmap
- 14:46 — Building the Paid Team
- 18:07 — Fighting Scale at Paid
- 21:34 — Proudest Moment So Far
- 24:45 — Mistakes and Co-Founder Tension
- 27:52 — The Future of Paid
- 31:57 — Influences on Raj's Work
- 35:25 — Advice for Young Entrepreneurs

## Frequently Asked Questions
- **Q:** Why doesn't conventional SaaS billing work well for AI agents? — **A:** Raj Dosanjh explains that generative AI costs hit immediately and vary by customer, whereas SaaS costs did not always rise straight away. As he put it, "use a token at the moment you are getting billed for that so some customers are going to be more" [06:37] profitable than others.
- **Q:** How does Paid use OpenTelemetry to bill for AI agent activity? — **A:** Paid reads telemetry data to understand what an agent is doing, and initially proved the approach with cost tracking, identifying calls to OpenAI in Node.js apps. Raj said they "use natural language to create transformational queries that can then turn this sort of raw data" [23:20] into billable business metrics.
- **Q:** How did Paid find its early design partners and adopters? — **A:** Raj says early agent startups agreed to be design partners but kept delaying integration, which suggested the ideal customer profile or the approach was wrong. Repeatedly addressing objections helped, and so did charging partners, because "that now puts some skin in the game their side" [10:17].
- **Q:** How does Paid decide what to build without a traditional roadmap? — **A:** Drawing on his time at Palantir and its forward deployed engineer model, Raj keeps engineers embedded closely with customers so less information is lost in handoffs. He said, "if the engineer has seen it themselves, they have an opinion." [12:37]
- **Q:** What is Raj Dosanjh's advice on scaling a startup's application? — **A:** Raj advises against large architecture changes aimed at perceived problems, and favors forming a hypothesis, backing it with data and making targeted fixes. In his view, "it all comes down to good observability." [18:51]
