Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

LLM API cost is the sum of separately billed usage categories: input tokens, output tokens, and any applicable cached-input, cache-write, storage, tool, modality, or service charges. A reliable estimate measures the actual request, applies the selected model’s current rates per million tokens, and then adjusts for caching or batch processing. Input and output rates can differ sharply, and token counts vary by model, prompt history, retrieved context, and generated reasoning.

How LLM API billing works

Most text-generation APIs publish prices per million tokens. The basic estimate is:

estimated cost = (input tokens ÷ 1,000,000 × input rate) + (output tokens ÷ 1,000,000 × output rate) + other applicable charges

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

“Other applicable charges” may include cached-input reads, cache creation or writes, cache storage, tool calls, image or audio processing, search grounding, data-residency options, or a service-mode surcharge. Do not assume those categories are free; check the model’s current rate card.

#1 Best Overall
Sale
Compressed Air Duster,130000RPM Super Power Cordless Air Duster,Rechargeable Brushless Blower,3 Gear Adjustable Blower with LED Light,Dust Remover for Computer/House/Outdoor/Car
  • Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
  • With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
  • Wide Application: attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
  • Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
  • Economical &Reusable: Built durable materials with a long-lasting battery,our CAGIWIRU air duster it's a sustainable alternative to disposable air cans.

Prices in this article were checked on October 13, 2026. Provider tables change, and some pages show different rates by model, context length, processing mode, region, account terms, or effective date. Confirm the applicable row immediately before forecasting spend:

The amount you pay is therefore a workload calculation, not a single universal “price per prompt.”

Input tokens: what you send is billable

What counts as input

Input tokens are the material the model processes. They commonly include the system or developer instruction, the user’s message, conversation history, retrieved documents, tool results inserted into the context, structured JSON, and formatting characters. An application can send far more input than the visible message suggests because it resends history and instructions on every turn.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For example, a support chat may contain a 500-token user question but also resend a 2,000-token policy prompt, 8,000 tokens of previous conversation, and 20,000 tokens retrieved from a knowledge base. The billable input is the complete request accepted by the API, not just the last question.

Why input totals change

  • Longer conversation history is appended on each turn.
  • Retrieval returns more passages than the task needs.
  • System prompts gain examples, rules, schemas, or tool descriptions.
  • Tool results, function arguments, and prior outputs are fed back into the next request.
  • Different models tokenize identical text differently.

Measure the request payload and the provider’s usage fields rather than converting a word count with a fixed multiplier.

Output tokens: generated text can cost more

Output tokens are generated by the model. Rate cards often price them higher than input tokens because generation consumes compute step by step. A response’s visible text may not represent all generated usage: some models expose reasoning or “thinking” tokens, and structured output can contain many syntax tokens even when the prose looks short.

Rank #2
EVEO® Screen Cleaner Spray Kit (Streak-Free) TV Screen Cleaner for Smart TV, Lcd, LEd, Oled | Computer Screen Cleaner Spray and Wipe Microfiber Cloth - TV, Monitor, Laptop, iPad, Car - 6.7oz 1 Pack
  • Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
  • Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
  • Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
  • Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
  • Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth

Set an output-token limit appropriate to the task, but do not use an artificially low limit that causes truncation and expensive retries. Log requested limits, actual output tokens, stop reasons, and retries so that a failed generation is not mistaken for one normal response.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

OpenAI’s token-pricing guidance warns: “A lower price per million tokens does not necessarily produce a lower total cost: models can tokenize the same text differently and generate different amounts of output or reasoning.” Read the full guidance in Understanding and counting tokens.

Tokens are not words: estimate with the real tokenizer

A token can represent a whole short word, part of a longer word, punctuation, whitespace, or a fragment of a non-English word. Code, tables, JSON, and languages with different writing systems can have very different token-to-character ratios. Two models can split the same prompt into different token counts.

Use a representative sample and the tokenizer or usage endpoint for the exact model. Include production system instructions, typical history, retrieved text, tool schemas, and the expected output format. Measure several short, medium, and long requests; one tiny prompt is not a dependable forecast.

  1. Capture the exact request sent to the API, excluding secrets and personal data.
  2. Record input and output token counts returned by the provider.
  3. Group measurements by model, endpoint, task type, and context-length band.
  4. Calculate average, high-percentile, and worst-case usage rather than only a mean.
  5. Multiply each category by the rate effective on the date you will be charged.
  6. Recheck after prompt, model, retrieval, or response-format changes.

Reasoning usage, where exposed, belongs in the provider’s stated billing category. If a provider includes reasoning tokens in output pricing, include them in output estimates even when they are not displayed to the end user.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Prompt caching: discounted reads are only one part of the price

Cached input reads

Prompt or context caching stores reusable content so a later request can refer to it without paying the normal uncached input rate for every token. A stable prefix might contain system instructions, a long policy manual, or a fixed set of examples. When a request qualifies for a cache hit, the provider may charge a lower cached-input rate.

Rank #3
Sale
BladeHawks RGB Gaming Mouse Pad Extra Large Extended 31.5x12 Inch-Black | LED mouse pad with 14 lighting modes, covers keyboard & mouse, anti-slip rubber base, waterproof surface, USB powered
  • 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
  • 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
  • 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
  • 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
  • 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.

There is no universal “cache discount.” A rate card can distinguish cache reads from normal input, and the qualifying prefix, minimum size, expiration behavior, and supported models differ.

Cache creation and storage

Creating a cache can have its own write or creation charge. Some services also charge for storing cached tokens over time. Google’s pricing documentation, for example, lists storage per million tokens per hour for applicable models. A cache that is rarely reused can cost more than sending the same text normally.

Anthropic states: “A request’s prompt length counts all of its input tokens, including cache reads and cache writes.” That matters when a model has a context-length threshold: a request can cross the threshold because cached and newly written portions are both part of the prompt. See the provider’s details at Anthropic pricing documentation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

When caching tends to pay off

Caching is most promising when a substantial prefix is stable, reused many times, and retained long enough to amortize creation and storage. A useful break-even calculation is:

uncached cost over N requests − (cache-write cost + cached-read cost over N requests + storage cost) > 0

Use the provider’s actual rates and cache rules in that equation. Savings are not guaranteed for a short prompt, a one-off request, a rapidly changing prefix, or a workload with few cache hits.

Rank #4
Sale
Vaydeer Wrist Rest for Keyboard and Mouse, Computer Ergonomic Wrist Support Pad, Soft Memory Foam Arm Cushion for Desk, Palm Hand Office Laptop Typing
  • 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
  • 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
  • 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
  • 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
  • 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.

Cache implementation checklist

  • Put stable instructions and reference material before variable user content when the API uses prefix matching.
  • Keep volatile values, timestamps, user names, and per-request data out of the reusable prefix.
  • Record cache-hit, cache-write, and uncached token counts separately.
  • Measure the hit rate and lifetime; do not assume every request qualifies.
  • Include storage charges and minimum-prefix requirements in the estimate.
  • Verify that cached content is isolated correctly between users and tenants.

Batch APIs: lower eligible cost in exchange for latency

A batch endpoint accepts work for asynchronous processing. You submit a collection of requests, receive a job identifier, and retrieve results after processing. This model is suited to offline evaluation, document backfills, nightly classification, embedding or extraction queues, and other work that does not need an immediate answer.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Anthropic’s documentation describes a 50% discount on input and output token prices for Batch API processing. Google’s Gemini documentation advertises a 50% cost reduction for its Batch API. Those figures are provider-specific checked documentation, not a guarantee that every model, account, region, or endpoint receives the same treatment. Confirm eligibility, request limits, completion windows, cancellation rules, and batch-specific rates on the current page.

When batch is a good fit

  • The result can arrive minutes or hours later.
  • You can tolerate a job-level failure and retry individual records.
  • You have a large, predictable queue that benefits from a lower processing rate.
  • You are running evaluations, backfills, enrichment, or periodic reports.

When synchronous processing is better

  • A user is waiting in an interactive product flow.
  • The next operation depends immediately on the response.
  • Fresh external data or a short-lived authorization context is required.
  • Your volume is too small for batch overhead to matter.

Batch workflow

  1. Separate latency-sensitive requests from offline work.
  2. Validate each request locally, including model, token limit, tools, and metadata.
  3. Submit a bounded batch and persist its job identifier.
  4. Poll or receive completion notification according to the provider’s rules.
  5. Match each result to its input identifier and record usage, errors, and retries.
  6. Calculate the final bill using the batch rate and any non-token charges.

How to compare models and providers fairly

Compare the complete workload, not one input-price cell. The following dimensions prevent misleading conclusions:

Comparison axis What to measure or verify
Workload volume Representative input and output tokens, including system prompts, history, retrieval, tools, and exposed reasoning.
Input/output mix Apply each model’s own input and output rates; output-heavy tasks can reverse an input-only ranking.
Tokenizer and behavior Run equivalent tasks and measure tokenization, response length, reasoning usage, retries, and truncation.
Cache economics Check expected hit rate, cached-read price, write price, minimum prefix, expiry, and storage.
Batch fit Confirm asynchronous suitability, model eligibility, limits, completion timing, and batch rates.
Context length Look for long-prompt thresholds that change the rate for part or all of a request.
Extra features Price tools, images, audio, video, search grounding, residency, and other capability-specific units.
Quality and latency Test the same acceptance criteria and response-time target; the lowest list price may require more retries or post-processing.

OpenAI presents applicable prices per one million tokens with separate input, cached-input, cache-write, and output columns. Context length and processing mode can add further distinctions; inspect the exact model row at OpenAI API pricing.

Google’s page includes explicit effective-date changes for some Gemini models, with rates shown through December 31, 2026 and different rates beginning January 1, 2027. Tie any quoted figure to its model and effective date rather than treating it as permanent.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Worked cost calculations

The following numbers are illustrative assumptions, not provider quotations. Replace them with the rates for your model and billing account.

Best Value
Sale
Under Desk Cable Management Tray No Drill, Metal Mesh Cable Management Under Desk with Clamp Mount, 2 Hole Cable Tray with Wire Management and Cord Organizer for Home Office Standing Desk
  • 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
  • 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
  • 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
  • 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
  • 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.

Example 1: ordinary synchronous request

Assume a model rate of $3 per million input tokens and $15 per million output tokens. A request uses 120,000 input tokens and produces 8,000 output tokens:

  • Input: 120,000 ÷ 1,000,000 × $3 = $0.36
  • Output: 8,000 ÷ 1,000,000 × $15 = $0.12
  • Total token charge: $0.48, before any tools or modality charges

If the application resends 120,000 input tokens on every turn, ten turns would use 1.2 million input tokens, not 120,000.

Example 2: deciding whether to cache

Suppose 100,000 tokens are stable and 20,000 are unique per request. You expect 50 requests. Compute the uncached cost for all 120,000 tokens on each request. Then compute the cache-write charge once, cached-read charges for the 100,000-token prefix on each qualifying request, normal input charges for the 20,000-token variable portion, and any hourly storage. Caching is favorable only when the second total is lower and the cache behavior is reliable.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Example 3: batch versus immediate processing

For 10 million input tokens and 1 million output tokens, calculate the synchronous total using the standard rates. Recalculate with the provider’s published batch rates, then add any submission, storage, tool, or failed-record costs. A nominal 50% token discount does not make batch appropriate if delayed results cause user-visible retries or duplicate work.

Why a bill is higher than expected

  • History growth: trim or summarize old turns, and measure the complete payload before sending it.
  • Retrieval oversupply: reduce irrelevant passages, duplicate chunks, and oversized metadata.
  • Long outputs: tighten schemas and output limits while preserving enough room for valid results.
  • Hidden reasoning or retries: inspect usage fields, stop reasons, timeouts, and automatic retry behavior.
  • Cache misses: check prefix order, minimum size, expiration, model support, and tenant isolation.
  • Context threshold: identify whether a long-prompt tier applies to the request.
  • Extra modalities or tools: separate token charges from image, audio, search, or tool-service charges.
  • Rate-date mismatch: verify the effective date, region, plan, and account terms used in your forecast.

A practical budget-control routine

  1. Define an accepted quality and latency target before choosing the cheapest rate card.
  2. Collect production-like samples and record input, output, cache, reasoning, tool, and retry usage.
  3. Build a per-task cost model with low, typical, and high-percentile token volumes.
  4. Apply current model rates and label the date, context tier, region, and billing assumptions.
  5. Route interactive work to synchronous APIs and eligible offline work to batch processing.
  6. Introduce caching only after measuring stable-prefix size, hit rate, write cost, and storage duration.
  7. Set alerts on spend, tokens per request, cache-hit rate, output length, and retry rate.
  8. Recalculate after changing prompts, retrieval settings, model versions, tools, or provider pricing.

The dependable answer to “How much does an LLM API cost per token?” is therefore model- and workload-specific: measure both directions of token use, include every applicable feature charge, and evaluate caching or batching with their full rules rather than a headline discount.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.