Replit Margins Driven by LLM Costs
Replit
Replit’s margins show that AI coding agents behave less like normal SaaS and more like a cloud business with expensive inputs on every use. Each agent run triggers third party model spend plus Replit’s own hosting costs for sandboxes, storage, and deployment. That is why revenue can surge while gross margin swings sharply, especially before pricing, model routing, and higher margin enterprise add ons catch up.1 2 3
- The biggest cost driver is inference. When a user asks an agent to write, debug, or revise code, Replit pays for LLM calls in real time, so usage growth can raise cost of goods almost as fast as revenue. Internal research pegged category gross margins around 23% for Replit versus 35% for Lovable in the same period.1 4
- The margin path improves when users move from one off coding help into deployed apps. By July 2025, Replit’s gross margin had improved from negative 14% in April to 23%, helped by more revenue from authentication, storage, and hosted app workflows, which look more like software subscriptions than raw AI inference resale.2
- This pressure is not unique to Replit. Cursor also relied on Anthropic and OpenAI for core reasoning while building small proprietary models for cheaper low latency tasks, and later reached slight gross margin profitability through cheaper model routing. The whole category is learning that owning orchestration and attach products matters as much as owning the editor.5 6
Going forward, the winners in AI coding will be the companies that turn costly agent usage into a broader software stack. Replit is already pushing toward enterprise plans, marketplace distribution, and more hosted workflows, which should make revenue less dependent on every single model call and push margins closer to mature SaaS levels over time.1 3