<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[LightCube Notes]]></title><description><![CDATA[LightCube Notes]]></description><link>https://lightcubedata.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Sat, 28 Nov 2026 21:56:44 GMT</lastBuildDate><atom:link href="https://lightcubedata.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[OpenAI API Pricing Ladder: What 1,000 Chat Requests Cost Across 12 Models]]></title><description><![CDATA[Per token prices are hard to compare in your head. This table puts 12 OpenAI models on the same workload so you can see the cost spread in dollars, not…]]></description><link>https://lightcubedata.hashnode.dev/openai-api-pricing-ladder-what-1-000-chat-requests-cost-across-12-models-mwzri82o</link><guid isPermaLink="true">https://lightcubedata.hashnode.dev/openai-api-pricing-ladder-what-1-000-chat-requests-cost-across-12-models-mwzri82o</guid><dc:creator><![CDATA[LightCube]]></dc:creator><pubDate>Sat, 28 Nov 2026 01:59:20 GMT</pubDate><content:encoded><![CDATA[<h1>OpenAI API Pricing Ladder: What 1,000 Chat Requests Cost Across 12 Models</h1>
<p><img src="https://lightcubedata.com/og-default.png" alt="LightCube Data AI API cost calculator" /></p>
<p>Per token prices are hard to compare in your head. This table puts 12 OpenAI models on the same workload so you can see the cost spread in dollars, not tokens. Prices are OpenAI list prices in USD per 1M tokens, standard paid tier, as shown on the <a href="https://lightcubedata.com/tools/openai-api-cost-calculator/?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=p4_hn_openai">free OpenAI API cost calculator</a> (checked 2026-11-24).</p>
<h3>The workload</h3>
<ul>
<li>1k chat is 1,000 requests of 2,000 input and 500 output tokens</li>
<li>1k RAG is 1,000 requests of 8,000 input and 300 output tokens, which is long retrieved context and a short answer</li>
<li>No caching or batch discount is applied to the 1k chat and 1k RAG columns</li>
</ul>
<h3>The ladder, cheapest first</h3>
<table>
<thead>
<tr>
<th>Model</th>
<th>Input /1M</th>
<th>Cached input /1M</th>
<th>Output /1M</th>
<th>1k chat</th>
<th>1k RAG</th>
</tr>
</thead>
<tbody><tr>
<td>gpt-5-nano</td>
<td>$0.05</td>
<td>$0.005</td>
<td>$0.40</td>
<td>$0.30</td>
<td>$0.52</td>
</tr>
<tr>
<td>gpt-6-luna</td>
<td>$0.10</td>
<td>$0.010</td>
<td>$0.50</td>
<td>$0.45</td>
<td>$0.95</td>
</tr>
<tr>
<td>gpt-4o-mini</td>
<td>$0.15</td>
<td>$0.075</td>
<td>$0.60</td>
<td>$0.60</td>
<td>$1.38</td>
</tr>
<tr>
<td>gpt-5.6-luna</td>
<td>$0.20</td>
<td>$0.020</td>
<td>$1.20</td>
<td>$1.00</td>
<td>$1.96</td>
</tr>
<tr>
<td>gpt-5.4-nano</td>
<td>$0.20</td>
<td>$0.020</td>
<td>$1.25</td>
<td>$1.03</td>
<td>$1.98</td>
</tr>
<tr>
<td>gpt-5-mini</td>
<td>$0.25</td>
<td>$0.025</td>
<td>$2.00</td>
<td>$1.50</td>
<td>$2.60</td>
</tr>
<tr>
<td>gpt-4.1-mini</td>
<td>$0.40</td>
<td>$0.100</td>
<td>$1.60</td>
<td>$1.60</td>
<td>$3.68</td>
</tr>
<tr>
<td>gpt-5.4-mini</td>
<td>$0.75</td>
<td>$0.075</td>
<td>$4.50</td>
<td>$3.75</td>
<td>$7.35</td>
</tr>
<tr>
<td>gpt-6.1-terra</td>
<td>$1.00</td>
<td>$0.050</td>
<td>$5.00</td>
<td>$4.50</td>
<td>$9.50</td>
</tr>
<tr>
<td>gpt-6.2-sol</td>
<td>$2.00</td>
<td>$0.100</td>
<td>$10.00</td>
<td>$9.00</td>
<td>$19.00</td>
</tr>
<tr>
<td>gpt-5.5</td>
<td>$5.00</td>
<td>$0.500</td>
<td>$30.00</td>
<td>$25.00</td>
<td>$49.00</td>
</tr>
<tr>
<td>gpt-6.2-astra</td>
<td>$8.00</td>
<td>$0.400</td>
<td>$40.00</td>
<td>$36.00</td>
<td>$76.00</td>
</tr>
</tbody></table>
<h3>What stands out</h3>
<ul>
<li>The 1k chat spread runs from $0.30 (gpt-5-nano) to $36.00 (gpt-6.2-astra), a 120x gap on the same workload</li>
<li>RAG costs 1.7x to 2.3x as much as chat on every row because input tokens dominate, for example $19.00 against $9.00 on gpt-6.2-sol</li>
<li>Cached input is much cheaper than fresh input on every row, for example $0.400 against $8.00 on gpt-6.2-astra</li>
<li>Batch halves the chat figure, so 1k chat on gpt-6.2-sol drops from $9.00 to $4.50</li>
<li>At 10,000 chat requests a day, a month runs $90.00 on gpt-5-nano and $2,700.00 on gpt-6.2-sol</li>
<li>All rows use the short context rate, prompts up to 272K input tokens</li>
</ul>
<h3>Try it with your own token counts</h3>
<p>The free calculator shows cost per request, per 1,000 calls and per month for every current OpenAI model. A free printable cheat sheet covering 28 models from OpenAI, Anthropic, Google and DeepSeek is on the same page. Enter your email to download the PDF. To compare OpenAI against other providers on one table, use the <a href="https://lightcubedata.com/tools/ai-api-cost-calculator/?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=p4_hn_openai">AI API cost calculator for OpenAI, Claude, Gemini and more</a>.</p>
<p><a href="https://lightcubedata.com/tools/openai-api-cost-calculator/?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=p4_hn_openai">Open the free OpenAI API cost calculator</a></p>
]]></content:encoded></item><item><title><![CDATA[OpenAI API Pricing Ladder: What 1,000 Chat Requests Cost Across 12 Models]]></title><description><![CDATA[Per token prices are hard to compare in your head. This table puts 12 OpenAI models on the same workload so you can see the cost spread in dollars, not…]]></description><link>https://lightcubedata.hashnode.dev/openai-api-pricing-ladder-what-1-000-chat-requests-cost-across-12-models</link><guid isPermaLink="true">https://lightcubedata.hashnode.dev/openai-api-pricing-ladder-what-1-000-chat-requests-cost-across-12-models</guid><category><![CDATA[llm]]></category><category><![CDATA[openai]]></category><category><![CDATA[api]]></category><category><![CDATA[pricing]]></category><category><![CDATA[AI]]></category><dc:creator><![CDATA[LightCube]]></dc:creator><pubDate>Fri, 27 Nov 2026 19:14:22 GMT</pubDate><content:encoded><![CDATA[<p><img src="https://lightcubedata.com/og-default.png" alt="LightCube Data AI API cost calculator" /></p>
<p>Per token prices are hard to compare in your head. This table puts 12 OpenAI models on the same workload so you can see the cost spread in dollars, not tokens. Prices are OpenAI list prices in USD per 1M tokens, standard paid tier, as shown on the <a href="https://lightcubedata.com/tools/openai-api-cost-calculator/?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=p4_hn_openai">free OpenAI API cost calculator</a> (checked 2026-11-24).</p>
<h3>The workload</h3>
<ul>
<li>1k chat is 1,000 requests of 2,000 input and 500 output tokens</li>
<li>1k RAG is 1,000 requests of 8,000 input and 300 output tokens, which is long retrieved context and a short answer</li>
<li>No caching or batch discount is applied to the 1k chat and 1k RAG columns</li>
</ul>
<h3>The ladder, cheapest first</h3>
<table>
<thead>
<tr>
<th>Model</th>
<th>Input /1M</th>
<th>Cached input /1M</th>
<th>Output /1M</th>
<th>1k chat</th>
<th>1k RAG</th>
</tr>
</thead>
<tbody><tr>
<td>gpt-5-nano</td>
<td>$0.05</td>
<td>$0.005</td>
<td>$0.40</td>
<td>$0.30</td>
<td>$0.52</td>
</tr>
<tr>
<td>gpt-6-luna</td>
<td>$0.10</td>
<td>$0.010</td>
<td>$0.50</td>
<td>$0.45</td>
<td>$0.95</td>
</tr>
<tr>
<td>gpt-4o-mini</td>
<td>$0.15</td>
<td>$0.075</td>
<td>$0.60</td>
<td>$0.60</td>
<td>$1.38</td>
</tr>
<tr>
<td>gpt-5.6-luna</td>
<td>$0.20</td>
<td>$0.020</td>
<td>$1.20</td>
<td>$1.00</td>
<td>$1.96</td>
</tr>
<tr>
<td>gpt-5.4-nano</td>
<td>$0.20</td>
<td>$0.020</td>
<td>$1.25</td>
<td>$1.03</td>
<td>$1.98</td>
</tr>
<tr>
<td>gpt-5-mini</td>
<td>$0.25</td>
<td>$0.025</td>
<td>$2.00</td>
<td>$1.50</td>
<td>$2.60</td>
</tr>
<tr>
<td>gpt-4.1-mini</td>
<td>$0.40</td>
<td>$0.100</td>
<td>$1.60</td>
<td>$1.60</td>
<td>$3.68</td>
</tr>
<tr>
<td>gpt-5.4-mini</td>
<td>$0.75</td>
<td>$0.075</td>
<td>$4.50</td>
<td>$3.75</td>
<td>$7.35</td>
</tr>
<tr>
<td>gpt-6.1-terra</td>
<td>$1.00</td>
<td>$0.050</td>
<td>$5.00</td>
<td>$4.50</td>
<td>$9.50</td>
</tr>
<tr>
<td>gpt-6.2-sol</td>
<td>$2.00</td>
<td>$0.100</td>
<td>$10.00</td>
<td>$9.00</td>
<td>$19.00</td>
</tr>
<tr>
<td>gpt-5.5</td>
<td>$5.00</td>
<td>$0.500</td>
<td>$30.00</td>
<td>$25.00</td>
<td>$49.00</td>
</tr>
<tr>
<td>gpt-6.2-astra</td>
<td>$8.00</td>
<td>$0.400</td>
<td>$40.00</td>
<td>$36.00</td>
<td>$76.00</td>
</tr>
</tbody></table>
<h3>What stands out</h3>
<ul>
<li>The 1k chat spread runs from $0.30 (gpt-5-nano) to $36.00 (gpt-6.2-astra), a 120x gap on the same workload</li>
<li>RAG costs 1.7x to 2.3x as much as chat on every row because input tokens dominate, for example $19.00 against $9.00 on gpt-6.2-sol</li>
<li>Cached input is much cheaper than fresh input on every row, for example $0.400 against $8.00 on gpt-6.2-astra</li>
<li>Batch halves the chat figure, so 1k chat on gpt-6.2-sol drops from $9.00 to $4.50</li>
<li>At 10,000 chat requests a day, a month runs $90.00 on gpt-5-nano and $2,700.00 on gpt-6.2-sol</li>
<li>All rows use the short context rate, prompts up to 272K input tokens</li>
</ul>
<h3>Try it with your own token counts</h3>
<p>The free calculator shows cost per request, per 1,000 calls and per month for every current OpenAI model. A free printable cheat sheet covering 28 models from OpenAI, Anthropic, Google and DeepSeek is on the same page. Enter your email to download the PDF. To compare OpenAI against other providers on one table, use the <a href="https://lightcubedata.com/tools/ai-api-cost-calculator/?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=p4_hn_openai">AI API cost calculator for OpenAI, Claude, Gemini and more</a>.</p>
<p><a href="https://lightcubedata.com/tools/openai-api-cost-calculator/?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=p4_hn_openai">Open the free OpenAI API cost calculator</a></p>
]]></content:encoded></item><item><title><![CDATA[How to Estimate What 1,000 LLM API Requests Will Cost]]></title><description><![CDATA[A price per million tokens tells you the rate. It does not tell you what your app will cost. Your bill depends on how many tokens each request uses, how…]]></description><link>https://lightcubedata.hashnode.dev/how-to-estimate-what-1-000-llm-api-requests-will-cost</link><guid isPermaLink="true">https://lightcubedata.hashnode.dev/how-to-estimate-what-1-000-llm-api-requests-will-cost</guid><category><![CDATA[llm]]></category><category><![CDATA[AI]]></category><category><![CDATA[api]]></category><category><![CDATA[pricing]]></category><category><![CDATA[Developer Tools]]></category><dc:creator><![CDATA[LightCube]]></dc:creator><pubDate>Thu, 26 Nov 2026 08:28:50 GMT</pubDate><content:encoded><![CDATA[<p>A price per million tokens tells you the rate. It does not tell you what your app will cost. Your bill depends on how many tokens each request uses, how many of those tokens are cached, and how long the replies are.</p>
<p>Here is a way to price a workload before you pick a model.</p>
<h2>The formula</h2>
<p>LLM APIs bill input tokens (your prompt) and output tokens (the reply) separately, quoted per 1,000,000 tokens. For one request:</p>
<p>cost per request = (uncached input tokens x input price + cached input tokens x cached price + output tokens x output price) / 1,000,000</p>
<p>Then multiply by requests per day and days per month.</p>
<h2>A worked example</h2>
<p>The rates below are made up so the arithmetic is easy to follow. They are not real model prices. Swap in the current rates from your provider's pricing page.</p>
<p>Workload: 1,000 chat requests, 2,000 input tokens and 500 output tokens each.
Example rates: $1.00 per million input tokens, $0.25 per million cached input tokens, $4.00 per million output tokens.</p>
<p><strong>No caching.</strong>
Input: 1,000 x 2,000 = 2,000,000 tokens, which is 2 x $1.00 = $2.00.
Output: 1,000 x 500 = 500,000 tokens, which is 0.5 x $4.00 = $2.00.
Total: $4.00.</p>
<p><strong>With 50 percent of input served from cache.</strong>
Uncached input: 1,000,000 tokens x $1.00 per million = $1.00.
Cached input: 1,000,000 tokens x $0.25 per million = $0.25.
Output stays at $2.00.
Total: $3.25.</p>
<p><strong>With a Batch API at half price, if your provider offers one.</strong>
$3.25 x 0.5 = $1.625. Batch jobs usually return within about 24 hours, so this fits bulk summarization or evaluation and not live chat.</p>
<h2>Three levers that move the number</h2>
<ol>
<li><strong>Output length.</strong> A short prompt can still be expensive when replies are long and the output rate is high. Compare the same task with a tighter response format.</li>
<li><strong>Cache share.</strong> If many requests share a long prefix, check which tokens qualify for the cached rate. Some providers also charge a one-time cache write fee, so heavy-caching workloads can cost a bit more than a simple estimate shows.</li>
<li><strong>Retrieved context.</strong> In a RAG app the retrieved passages are input tokens too. Count them with the question.</li>
</ol>
<h2>Which model is cheapest</h2>
<p>It depends on your workload. A model with cheap input and expensive output can win for retrieval-heavy prompts and lose for long generations. Caching or batch discounts can flip the ranking. The only reliable check is to run the same workload through every candidate.</p>
<h2>Try it on your numbers</h2>
<p>LightCube has a free calculator that does this comparison in your browser. Enter requests per day, input and output tokens, days per month and your cache percentage, and it ranks models by monthly cost. Your prompts and numbers stay on your device. Prices are list prices on the standard tier, token counts are estimates, and you should confirm current prices on the official pages before budgeting.</p>
<p>Calculator: <a href="https://lightcubedata.com/tools/ai-api-cost-calculator/?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=fm1126">https://lightcubedata.com/tools/ai-api-cost-calculator/?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=fm1126</a></p>
<p><em>This article was written with AI assistance and checked against the live page before publishing.</em></p>
]]></content:encoded></item></channel></rss>