---
title: "Shared Pools, Individual Limits: How Pinterest Budgets AI Tools"
description: "Pinterest replaced per-engineer AI tool budgets with shared team pools, each owned by a director or VP, plus individual guardrails that cap how much one person can draw over a rolling 28-day window."
url: "https://swe.quest/articles/shared-pools-individual-limits-how-pinterest-budgets-ai-tools-59cb3cec228849c3"
canonical: "https://medium.com/pinterest-engineering/shared-pools-individual-limits-how-pinterest-budgets-ai-tools-d2d35f4390ae"
source: "Pinterest Engineering"
published: "2026-12-01"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["cost-optimization","ai-coding","system-design","llms"]
---

# Shared Pools, Individual Limits: How Pinterest Budgets AI Tools

A post on [Pinterest Engineering](https://swe.quest/sources/pinterest.md), published 2026-12-01, 9 min read, Case study. Original: [https://medium.com/pinterest-engineering/shared-pools-individual-limits-how-pinterest-budgets-ai-tools-d2d35f4390ae](https://medium.com/pinterest-engineering/shared-pools-individual-limits-how-pinterest-budgets-ai-tools-d2d35f4390ae)

## Summary

Pinterest replaced per-engineer AI tool budgets with shared team pools, each owned by a director or VP, plus individual guardrails that cap how much one person can draw over a rolling 28-day window. Earlier versions used request-count quotas in an egress proxy, then reserved dollar budgets per engineer, which wasted unused money and created constant manager reassignment work. In the current design, a model gateway prices each request from token usage and checks a spend authorization service before admitting it. The service fails open, tolerates small in-flight overruns rather than reserving per request, and offers audited 24-hour emergency access. Requests to raise individual budgets fell 85% during the rollout.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Cost optimization](https://swe.quest/tags/cost-optimization.md) (Reliability & operations)
- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)

## Prerequisites

- LLM token pricing ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- API gateways

## Keywords

Pinterest, model gateway, spend authorization service, rolling 28-day window

## Related posts

- [Introducing Spend Management: Spending limits and alerts for Cloudflare](https://swe.quest/articles/introducing-spend-management-spending-limits-and-alerts-for-cloudflare-dcd9025e1197ec48.md): Cloudflare · 2026-11-13 · Medium · 9 min read · Cost optimization, System design, Serverless, Data pipelines
  Cloudflare Spend Management, now in beta for pay-as-you-go customers, lets users set spending limits and alert thresholds on Workers and Durable Objects, automatically pausing billable invocations when a cap is hit.
- [Controlling costs when building with AI](https://swe.quest/articles/controlling-costs-when-building-with-ai-e6fb1a0a01ec2e9a.md): incident.io · 2025-03-25 · Medium · 10 min read · LLMs, Cost optimization, Observability, Go
  After hitting OpenAI billing limits broke its early AI features, incident.io built per-prompt cost attribution into its Go LLM abstraction, using reflection to capture each prompt's type name alongside token usage and emitting it to Grafana metrics and Postgres records for BI.
- [A sandbox doesn't constrain an API Key: What Polsia learned running autonomous companies on Render](https://swe.quest/articles/a-sandbox-doesn-t-constrain-an-api-key-what-polsia-learned-running-autonomous-57778f83154d604e.md): Render · 2026-07-23 · Easy · 5 min read · AI agents, Identity & auth, Sandboxing & isolation, Cost optimization, LLMs
  Polsia, a solo-built platform where AI agents run businesses (outreach, ads, support, engineering) on nightly loops, shared production lessons in a talk at Render's localhost event.
- [Beyond rate limits: scaling access to Codex and Sora](https://swe.quest/articles/beyond-rate-limits-scaling-access-to-codex-and-sora-f19f4998580ba788.md): OpenAI · 2026-02-13 · Medium · 6 min read · Payments & fintech, System design, Consistency models, Event-driven architecture, Distributed systems
  OpenAI replaced hard rate-limit stops for Codex and Sora with a real-time access engine that treats rate limits, free tiers, credits, promotions and enterprise entitlements as layers in a single decision waterfall evaluated per request.
- [Scaling Model Evaluation at Pinterest with Ray (Part 4)](https://swe.quest/articles/scaling-model-evaluation-at-pinterest-with-ray-part-4-ba1e956bb72b960e.md): Pinterest Engineering · 2026-11-04 · Medium · 11 min read · ML platforms, Evaluation, Recommendations & ranking, Data pipelines, Python
  Pinterest fused model-evaluation metric computation into its Ray batch inference jobs, removing the separate Spark/Ray metrics job and the write-predictions-to-S3-then-reread handoff.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
