Supply and Demand for Builders: How Prices Signal Scarcity by kirupa (https://www.kirupa.com/me/index.htm) | filed under Economics & Finance (https://www.kirupa.com/economics_and_finance/index.htm) TL;DR: How many people want something at each price, and how much sellers will make at each price, are two lines that slope opposite ways: demand and supply. Where they cross, the market clears. A price is a message to both sides about what's scarce, and builders can read GPU, token, talent, and attention prices the same way. - At $40, 360 people wanted one of Crumb & Co.'s holiday pies and the bakery baked 200, so the pre-orders sold out by 9:40am. The curves cross at $50 and 300 pies. - Neither side sets a price alone. Alfred Marshall compared supply and demand to the two blades of a pair of scissors. - When a price can't move, scarcity shows up as sellouts, lines, waitlists, and rate limits, like the GPT-4 API waitlist in 2023. - For any price change, ask which curve moved. GPU prices rose because demand jumped, and token prices fell because supply got much cheaper. Every November, Crumb & Co. runs into the same wall. Holiday pie pre-orders open in the morning, and by the time most people finish their coffee, every pie is gone. Then the phone starts ringing. The things we build software with behave in the exact same way. GPUs get scarce, token prices fall off a cliff, and people with the right skills suddenly cost a whole lot more. In this article, we'll learn to read a price the way an economist does: as a message about what's scarce, who the message is for, and what we should do next. Onwards! Why Did Our Holiday Pies Sell Out? Last November, Rosa (our shift lead, who runs the holiday pre-orders) opened them at our usual price of $40 a pie. We baked 200 pies, which is about as many as our regular shifts can handle in the days before Thanksgiving. Here is what our pre-order page looked like at 9:40 that morning: [Image: Crumb & Co.'s holiday pie pre-order page. Pies are $40 each, and a big banner says Sold out, with a note that all 200 pies were gone by 9:40am on the first morning. Next to it, Biscuit's chat window fills up with customers asking: Any pies left? Can I get on a waitlist? Could you bake more?] (https://www.kirupa.com/economics_and_finance/images/supply_and_demand_sold_out.png) (https://www.kirupa.com/economics_and_finance/images/supply_and_demand_sold_out.png?v=9d44bbd7935d) Every pie was spoken for within a few hours, and Biscuit, the help desk bot on our website, spent the rest of the week apologizing. Was $40 the wrong price? Was 200 the wrong number of pies? To answer that, we are going to look at our customers and our bakery one side at a time. What Is Demand? Let's start with our customers. Every one of them has a most-they-would-pay number in their head for a holiday pie, even if they've never said it out loud. Here are ten of them, lined up from the biggest number to the smallest: [Image: Ten customers lined up from left to right by the most each would pay for a holiday pie: $72, $64, $58, $52, $47, $43, $38, $33, $27, $21. A dashed line marks the $40 price. The six customers whose bars reach above it want a pie at $40, and the four below it don't.] (https://www.kirupa.com/economics_and_finance/images/supply_and_demand_ten_customers.png) (https://www.kirupa.com/economics_and_finance/images/supply_and_demand_ten_customers.png?v=1deb4e057f95) At $40, the six customers on the left want a pie, because their number is at least $40. The four on the right would rather bake at home or grab a box of cookies. If we raised the price, fewer of these ten would want one. If we lowered it, more would. Now let's zoom out from these ten customers to everyone in town who might want one of our holiday pies: [Image: A chart with price going up and pies going across. A blue line slopes down from the upper left: at $60, 240 people want a pie, at $50, 300 do, and at $40, 360 do. The lower the price, the more people want one.] (https://www.kirupa.com/economics_and_finance/images/supply_and_demand_demand_curve.png) (https://www.kirupa.com/economics_and_finance/images/supply_and_demand_demand_curve.png?v=e596a700122b) This line shows how many people want a pie at each price. At $60, 240 people do. At $40, 360 people do. A line like this, which slopes down because lower prices bring in more buyers, is called a demand curve. What Is Supply? Now for our bakery's side. Our first 200 pies fit into our regular shifts, but past that point, every extra pie gets harder to make. Here is what each batch takes: [Image: Three ways the bakery can make holiday pies, each one more expensive than the last. Pies 1 to 200 fit in regular shifts and need a price of up to $40 to be worth baking. Pies 201 to 300 need overtime and up to $50. Pies 301 to 400 need a rented oven at night and up to $60.] (https://www.kirupa.com/economics_and_finance/images/supply_and_demand_cost_tiers.png) (https://www.kirupa.com/economics_and_finance/images/supply_and_demand_cost_tiers.png?v=64a20a871ea5) Pies 201 through 300 need overtime, and pies 301 through 400 need an oven we rent from a neighbor at night. An extra pie only makes sense if it sells for at least what it costs us to make. That cost of making one more of something is called its marginal cost, and we dig into it in Marginal Cost vs. Marginal Value (https://www.kirupa.com/economics_and_finance/marginal_cost_and_value.htm). If we plot how many pies we're willing to bake at each price, we get a line that slopes up: [Image: The same price-versus-pies chart with an orange line sloping up from the lower left. At $40 the bakery will bake 200 pies, at $50 it will bake 300, and at $60 it will bake 400. The higher the price, the more pies are worth baking.] (https://www.kirupa.com/economics_and_finance/images/supply_and_demand_supply_curve.png) (https://www.kirupa.com/economics_and_finance/images/supply_and_demand_supply_curve.png?v=27e2539822cf) At $40, we will bake 200 pies. At $50, overtime is worth it, so we will bake 300. A line like this, which slopes up because higher prices make more work worth doing, is called a supply curve. Where Do Supply and Demand Meet? Here are both of our curves on one chart: [Image: Both lines on one chart. The blue demand line slopes down and the orange supply line slopes up. They cross at $50 and 300 pies, where the number of people who want a pie matches the number of pies the bakery will bake.] (https://www.kirupa.com/economics_and_finance/images/supply_and_demand_cross.png) (https://www.kirupa.com/economics_and_finance/images/supply_and_demand_cross.png?v=f6bac40b3a4e) The two lines cross at $50 and 300 pies. At that price, the number of people who want a pie matches the number of pies we're willing to bake. Nobody is left standing at the counter, and no pie goes to waste. Economists call this crossing point the equilibrium price (aka the market-clearing price). Last November, though, we charged $40. Here is what that looks like on the same chart: [Image: The same chart with a red dashed line at $40. At that price, the demand line says 360 people want a pie, but the supply line says the bakery bakes only 200. The gap of 160 pies between them is the shortage.] (https://www.kirupa.com/economics_and_finance/images/supply_and_demand_shortage.png) (https://www.kirupa.com/economics_and_finance/images/supply_and_demand_shortage.png?v=e4cee8cfdcc7) At $40, 360 people want a pie, and we only bake 200. That gap of 160 pies is called a shortage, and it is exactly why our page said SOLD OUT by 9:40am. Why Is a Price Like a Message? This is the part I find really neat. Imagine we had charged $50 instead. That one number would have told two different groups two different things: [Image: Two sides of the same price change. If holiday pies cost $50 instead of $40, customers hear: pies are scarce this week, so 60 of them choose cookies or bake at home, and 360 wanting a pie becomes 300. The bakery hears: extra pies are worth the overtime, so it bakes 100 more, and 200 pies becomes 300. Both sides meet at 300.] (https://www.kirupa.com/economics_and_finance/images/supply_and_demand_signal.png) (https://www.kirupa.com/economics_and_finance/images/supply_and_demand_signal.png?v=6b91a3881695) Our customers hear that pies are scarce this week, so 60 of them pick cookies or bake at home. Our bakery hears that extra pies are worth the overtime, so we bake 100 more. Nobody had to call a meeting or send out a memo. The price carried the message to both sides at the same time. Economist Friedrich Hayek made this point back in 1945, using tin as his example. When tin suddenly gets scarce, the people who use tin don't need to know why. As he put it: All that the users of tin need to know is that some of the tin they used to consume is now more profitably employed elsewhere and that, in consequence, they must economize tin. Friedrich Hayek, The Use of Knowledge in Society, 1945 (https://www.econlib.org/library/Essays/hykKnw1.html) So why didn't we charge $50? Raising prices in a rush feels unfair to a lot of people. In a 1986 study (https://web.mit.edu/curhan/www/docs/Articles/15341_Readings/Justice/Kahneman.pdf) by Daniel Kahneman, Jack Knetsch, and Richard Thaler, 82% of the people surveyed said it was unfair for a hardware store to raise the price of snow shovels from $15 to $20 the morning after a big snowstorm. Our owner feels the same way about her pies. When the price can't move, though, the scarcity doesn't go away. It shows up somewhere else: [Image: A table of four ways scarcity shows up when the price stays put, at the bakery and in software. A sellout: sold out by 9:40am, or out of capacity, try later. A line: lining up before sunrise, or a queue with a spinner. A waitlist: call us if anyone cancels, or join the waitlist. A limit: two pies per customer, or rate limits and usage caps.] (https://www.kirupa.com/economics_and_finance/images/supply_and_demand_no_price.png) (https://www.kirupa.com/economics_and_finance/images/supply_and_demand_no_price.png?v=ed0648a9ae2f) In software, scarcity without a price change looks like waitlists, rate limits, and at-capacity pages. When OpenAI launched GPT-4 in March 2023, API access came with a waitlist, and OpenAI said it would scale up gradually (http://web.archive.org/web/20230315000633/https://openai.com/research/gpt-4) "to balance capacity with demand." Eight months later, Sam Altman posted (https://x.com/sama/status/1724626002595471740) that OpenAI was pausing new ChatGPT Plus sign-ups because "the surge in usage post devday has exceeded our capacity." This year, our owner is keeping the $40 price for her regulars, adding an overtime shift, and letting Biscuit run a waitlist for cancellations. There is one more idea to clear up before we leave the bakery. It is tempting to think that sellers set prices all by themselves. Our owner can put any number she likes on the pre-order page, but our customers decide whether that number works. At $70, we would happily bake 500 pies, and only 180 people would want one. At $30, only 100 pies would be worth baking, and 420 people would be fighting over them. Economist Alfred Marshall described supply and demand as the two blades of a pair of scissors: [Image: A pair of scissors cutting a sheet of paper labeled Price. One blade is labeled Demand, what buyers will pay, and the other is labeled Supply, what it costs to make. Neither blade cuts on its own.] (https://www.kirupa.com/economics_and_finance/images/supply_and_demand_scissors.png) (https://www.kirupa.com/economics_and_finance/images/supply_and_demand_scissors.png?v=34948e5c2961) In the 1920 edition of his Principles of Economics (https://www.econlib.org/library/Marshall/marP30.html), Marshall wrote that we might as well argue about "whether it is the upper or the under blade of a pair of scissors that cuts a piece of paper" as argue about whether buyers or sellers set a price. It takes both blades to cut. What Do Prices Tell Builders? Everything we just did with pies works for the things we build software with. We are going to look at four of them: compute, tokens, talent, and attention. Compute When ChatGPT took off, it seemed like every company wanted to train and run AI models at the same time. Demand for AI chips (GPUs) jumped, and supply couldn't keep up, because new chips take a long time to make: [Image: A concept chart of the market for AI chips (GPUs). The demand line jumps to the right, from dashed to solid, as companies rush to train and run AI models, while the supply line barely moves. The crossing point climbs to a higher price. A note says Nvidia's data center revenue was $10.32 billion in the quarter that ended July 30, 2023, up 171% from a year earlier.] (https://www.kirupa.com/economics_and_finance/images/supply_and_demand_gpus.png) (https://www.kirupa.com/economics_and_finance/images/supply_and_demand_gpus.png?v=086601a99639) The crossing point moved up. In the quarter that ended July 30, 2023, Nvidia's data center revenue hit a record $10.32 billion (https://nvidianews.nvidia.com/news/nvidia-announces-financial-results-for-second-quarter-fiscal-2024), up 171% from a year earlier. A year after that, Microsoft was still telling investors that AI "demand remained higher than our available capacity." (https://www.microsoft.com/en-us/investor/events/fy-2024/earnings-fy-2024-q4) All of that demand, and the long waits that came with it, told chip makers and cloud providers to build a lot more capacity, which is what they have been doing ever since. Tokens Tokens (the chunks of text AI models read and write, and bill us by (https://www.kirupa.com/ai_fundamentals/tokens_and_your_bill.htm)) tell the opposite story. Here are the prices OpenAI listed for a million output tokens when each of these models launched: [Image: Bars on a log scale for the price of a million output tokens when each OpenAI model launched: GPT-4 (Mar 2023) $60, GPT-4o (May 2024) $15, GPT-4o mini (Jul 2024) $0.6. Each step down is a big drop.] (https://www.kirupa.com/economics_and_finance/images/supply_and_demand_token_prices.png) (https://www.kirupa.com/economics_and_finance/images/supply_and_demand_token_prices.png?v=229ece674ef1) That is $60 for GPT-4 in March 2023, and 60 cents for GPT-4o mini in July 2024. These models aren't equally capable, so this isn't a perfect apples-to-apples comparison. The trend holds up when people measure it carefully, though. Guido Appenzeller at a16z estimated (https://a16z.com/llmflation-llm-inference-cost/) that for a model of the same capability, the cost is dropping about 10x every year. Epoch AI found (https://epoch.ai/data-insights/llm-inference-price-trends) drops ranging from 9x to 900x per year, depending on the task. This time, the supply curve moved. Better chips, smaller models, and a whole lot of competition made each token far cheaper to produce. Talent People who know how to build with AI went through the same cycle, just more slowly: [Image: Four steps from left to right. Demand jumps: every company wants people who can build with AI. Pay climbs: offers for those skills go up. People notice: more of them learn the skill. Supply grows: years later, pay settles.] (https://www.kirupa.com/economics_and_finance/images/supply_and_demand_talent.png) (https://www.kirupa.com/economics_and_finance/images/supply_and_demand_talent.png?v=c661953e44e9) When demand jumped, pay climbed. A 2024 survey by Dice (https://www.dice.com/hiring/employer-resources/press-releases/new-dice-report-shows-surge-in-tech-job-seeking-in-2024-modest-salary-growth) found that tech workers responsible for AI development earned 17.7% more than peers who weren't working on AI. That higher pay is a signal too, and it's one reason so many people are learning these skills right now. As more people learn these skills, supply catches up over the years, and the premium tends to shrink. Attention The last market is the one that matters most to anyone shipping a product: people's attention. Back in 1971, Herbert Simon wrote (http://web.archive.org/web/20210928065312/https://digitalcollections.library.cmu.edu/awweb/awarchive?type=file&item=33748) that "a wealth of information creates a poverty of attention." AI makes content and apps cheaper than ever to produce, so demand for attention keeps climbing. Supply doesn't budge at all: [Image: A concept chart of the market for people's attention. Supply is a straight vertical line, because everyone still has the same 24 hours in a day. The demand line jumps to the right, from dashed to solid, as cheap AI-made content and apps compete for those hours. Since supply can't move, the whole jump shows up as a higher price for getting noticed.] (https://www.kirupa.com/economics_and_finance/images/supply_and_demand_attention.png) (https://www.kirupa.com/economics_and_finance/images/supply_and_demand_attention.png?v=29f4c9146109) Everyone still has the same 24 hours in a day. When supply can't move, every bit of extra demand turns into a higher price. For us, that shows up as pricier ads, harder-won installs, and a lot more noise between our product and the people we want to reach. Which Curve Moved? Whenever a price changes, the most useful question we can ask is which curve moved. Here are four examples: [Image: A table of four events. A new chip makes tokens cheaper to serve: supply grows, and the price goes down. Everyone launches AI features at once: demand grows, and the price goes up. A chip shortage limits new GPUs: supply shrinks, and the price goes up. A cheaper model is good enough for most people: demand for the pricier model shrinks, and its price goes down.] (https://www.kirupa.com/economics_and_finance/images/supply_and_demand_which_curve.png) (https://www.kirupa.com/economics_and_finance/images/supply_and_demand_which_curve.png?v=5bfa59587c3d) If supply grew, the lower price is probably here to stay, and we can plan features around it. If demand grew, the price will likely stay high until supply catches up, so we plan for limits and waits. Either way, we now know who the price is talking to, and what it is asking us to do. Try It This Week Explain one recent price change in something you pay for: 1. Pick a price you pay: a model's price per million tokens, a GPU hour, a contractor's rate, or your ad costs. 2. Find out what it was a year ago. 3. Decide which curve moved, and write one sentence about why it moved. 4. Write down what the price is telling you to do: use more, use less, build something that wasn't affordable before, or lock in capacity. If you can't tell which curve moved, that's useful to know too. It usually means both of them did! Frequently Asked Questions What Is Supply and Demand? Demand is how many people want something at each price, and it slopes down because lower prices bring in more buyers. Supply is how much sellers will make at each price, and it slopes up because higher prices make more work worth doing. Where the two lines cross is the equilibrium price, where the amount people want matches the amount being made. What Happens When the Price Is Below Equilibrium? More people want the thing than sellers are willing to make, and that gap is a shortage. At Crumb & Co., a $40 holiday pie drew 360 buyers for 200 pies, so the pre-orders sold out by 9:40am. When the price can’t rise, the scarcity shows up as sellouts, lines, waitlists, or limits instead. Do Sellers Set Prices? Sellers can write any number on a price tag, but buyers decide whether it works. Price a holiday pie at $70 and the bakery would happily bake 500 while only 180 people want one. Alfred Marshall compared supply and demand to the two blades of a pair of scissors, because it takes both to cut. Why Are AI Token Prices Falling? Mostly because supply got much cheaper to produce: better chips, smaller models, and lots of competition. OpenAI’s launch price for a million output tokens went from $60 for GPT-4 in March 2023 to 60 cents for GPT-4o mini in July 2024. The models aren’t equally capable, but careful estimates for the same capability still show prices dropping by roughly 10x or more each year. Conclusion Ok! It is time to wrap things up. A demand curve shows how many people want something at each price, and a supply curve shows how much sellers will make at each price. Where they cross, the market clears. When the price sits below that crossing point, we get a shortage, and the scarcity shows up as a sold-out page, a line, or a waitlist. Neither side sets the price alone, which is Marshall's scissors. The bigger idea is that a price is a message. Expensive GPUs told the industry to build more chips, cheap tokens are telling us to try ideas that used to be too costly, and pricey attention is telling us to earn it instead of assuming it. The next time a price we depend on jumps or crashes, we'll know to ask which curve moved. And if you ever want a holiday pie from Crumb & Co., get your pre-order in before 9:40am. Before you go, here are a few things you can do: 1. Test your knowledge by taking the quiz below. 2. Read the next article in the series, Opportunity Cost (https://www.kirupa.com/economics_and_finance/opportunity_cost.htm), or check out some related content: - Tokens and How They Set Your Bill (https://www.kirupa.com/ai_fundamentals/tokens_and_your_bill.htm). How AI models bill by the token, and why output tokens cost more. - Saying No (https://www.kirupa.com/product_thinking/saying_no.htm). What to do when there’s more demand for your team’s time than there are hours. - Defaults and Anchoring: Why the First Option Wins (https://www.kirupa.com/human_behavior/defaults_and_anchoring.htm). How the first number people see shapes what feels like a fair price. 3. Stuck on something, or curious about a detail we skipped? Ask on the forums (https://forum.kirupa.com/), and we’ll help you out. [Mastery Quiz] Test your knowledge! Take the Supply and Demand for Builders: How Prices Signal Scarcity Quiz: https://www.kirupa.com/quizzes/supply_and_demand.htm Practice with 5 multiple-choice questions and an explanation after every answer. [/Mastery Quiz]