Reduce AI Costs: 6 Levels from OpenAI to Your Own Hardware

You can reduce AI costs by moving up one level at a time: one provider such as OpenAI, then OpenRouter with model comparison, model routing and cheap open-source models, and only then rented GPUs or your own hardware. Levels 2 to 4 are the same tier. On top of that come levers that work at every level: prompt caching, batch processing and shorter prompts.

By Kevin Michael Schindler, Evalics. As of 6 December 2026. Prices are examples and change often.

We will place your usage on the right level together.

The levels at a glance

LevelApproachWhere you saveMakes sense when
1One API key, one providerOnly through the levers further downYou are starting out, have low volume or need only one model.
2Gateway with one API and one invoiceModel comparison on real tasks, fallbacksYou want to compare models without maintaining several provider accounts.
3Automatic model choice by difficultyEasy tasks cheap, hard tasks strongYour requests vary a lot in difficulty (support, documents, agents).
4Open models instead of a flagshipMuch lower token pricesTasks such as extraction, classification, translation or simple texts come in high volume.
5Rented GPU servers, the model runs with youFixed cost instead of token price, only at high utilizationYour load is high and steady, or data must not leave your infrastructure.
6One-time purchase, the models run with youNo token fees, but purchase and operationsThere is steady load for years, data protection is strict and someone runs the hardware.

Level 1: One provider directly, for example OpenAI

You get an API key from one provider and build on it. It is the fastest start and usually the right one for pilots.

Billing is per million input and output tokens. Large models cost many times what small models cost (price table below). Without measuring, you do not know which feature costs how much: track cost per use case, such as per support ticket or document.

Makes sense when
You are starting out, have low volume or need only one model.
Watch out
Switching to another provider means a separate account, separate billing and separate integration.

Sources: Cloud Computing Insider: reducing token costs (German), OpenRouter model list (API)

Levels 2 to 4: one tier, one OpenRouter account

Level 2: OpenRouter: one access point for all models

OpenRouter bundles models from many providers behind one API with one billing. That does not make tokens cheaper by itself: OpenRouter passes provider prices through without markup, but charges a fee when you buy credits (standard plan: 5.5% on card payments, $0.80 minimum).

The value is elsewhere. You test models from different providers with the same code, compare quality and price on your real tasks and pick the right model without opening a new account. If a provider goes down, fallbacks kick in.

Makes sense when
You want to compare models without maintaining several provider accounts.
Watch out
Your data passes through OpenRouter and the model provider. Check data protection and contracts before sending customer data.

Sources: OpenRouter FAQ (fees, pricing)

Level 3: Model routing: the right model per request

Instead of fixing one model, a router decides per request. Classifying or summarizing runs on a cheap model, demanding tasks on a strong one. On OpenRouter the model name openrouter/auto is enough: the router picks model and reasoning effort per request, there is no extra fee, and you pay the normal price of the selected model. You can set allowed and excluded models.

How much this saves depends on your task mix. The RouteLLM research project (UC Berkeley, LMSYS) reports savings of over 85% on MT Bench, 45% on MMLU and 35% on GSM8K compared with GPT-4 only, at 95% of GPT-4 performance. Those are 2024 benchmarks for the pair GPT-4 and Mixtral, not a promise for your data.

Makes sense when
Your requests vary a lot in difficulty (support, documents, agents).
Watch out
A hard case routed wrongly is a quality problem that looks like a saving. Test with your own examples.

Sources: OpenRouter Auto Router, RouteLLM (LMSYS, UC Berkeley)

Level 4: Open-source models via OpenRouter

Open-weight models such as DeepSeek, Qwen or gpt-oss are available on OpenRouter at much lower prices than flagships. On 6 December 2026, DeepSeek V3.2 costs $0.28 per million input tokens and $0.42 per million output tokens, Qwen4 35B A3B $0.06 and $0.36. GPT-5.5 is at $5 and $30. That is about 18 times (input) and 71 times (output) for DeepSeek V3.2 and about 83 times for Qwen4 35B A3B (our calculation from list prices).

Whether quality is enough depends on the task and can only be checked with your own examples. Technically this is the same tier as levels 2 and 3: one account, different model names.

Makes sense when
Tasks such as extraction, classification, translation or simple texts come in high volume.
Watch out
Prices differ by provider and endpoint and change over time. For many models, reasoning tokens are billed on top.

Sources: OpenRouter model list (API), OpenRouter FAQ (fees, pricing)

Level 5: Rent GPUs and self-host open-source models

Here you rent GPU servers and run an open model yourself. You then pay per hour or month, whether the GPU works or not. Examples: an H100 cost $2.69 to $4.89 per hour on 2 December 2026, depending on the provider. At Hetzner, the GEX45 GPU server (24 GB VRAM) costs €214 per month net plus €209 setup, the GEX131 (96 GB VRAM) €1,499 per month net (as of 6 December 2026).

Utilization decides. An example calculation with gpt-oss-120b on one H100 finds: at the rental prices of the time, $3.99 to $4.29 per hour, the GPU must deliver roughly 62 to 66% of its benchmark throughput around the clock at 50 tokens/s per user just to match an API price of $0.20 per million tokens. At 100 tokens/s per user it is almost 100%. If the GPU sits idle at night and on weekends, it gets more expensive than paying per token.

Makes sense when
Your load is high and steady, or data must not leave your infrastructure.
Watch out
You take over operations: updates, monitoring, outages, a standby system. Poorly suited to strongly fluctuating traffic.

Sources: joulemath: H100 rental prices, 2 Dec 2026, Hetzner GPU servers (GEX), Ajay Kumar: self-hosting vs API, 20 Oct 2026

Level 6: Buy your own hardware and run open-source models

You buy a server or workstation once and run open models on it. After that there are no token fees. Ongoing costs are power, rack space or cooling, and operations.

One entry point: an NVIDIA DGX Spark with 128 GB of memory lists at $6,950 (as of 6 December 2026) and runs gpt-oss-120b at roughly 50 to 60 tokens per second for a single stream in published measurements. At the other end, a server with 8 H100 was listed at $289,000 in October 2026, just over $36,000 per GPU. By one model calculation (4 years of depreciation, rack space, power at $0.06 per kWh), an own H100 costs about $1.36 per hour running around the clock. Against the cheapest self-serve rental ($2.69 per hour), buying pays off from roughly half of the time under load; at 25% utilization, renting is cheaper.

Makes sense when
There is steady load for years, data protection is strict and someone runs the hardware.
Watch out
"No ongoing costs" is true for tokens only. Depreciation, power, operations, outage risk and aging hardware remain.

Sources: localaiprices: NVIDIA DGX Spark, Local LLM Advisor: gpt-oss 120B on DGX Spark, joulemath: rent or buy an H100, Nov 2026

These levers work at every level

Before you change infrastructure, look at these seven points. They complement the levels, they do not replace them.

  • Measure before optimizing

    Log calls, input and output tokens and model per use case. Cost per support ticket, document or workflow tells you more than a monthly total.

  • Prompt caching

    Repeated prompt beginnings are billed at a lower rate. At OpenAI the discount on cached input tokens is up to 95%, depending on the model, and caching runs automatically on supported models. It only hits on an identical prefix: static content first, variable content last.

  • Batch processing

    The OpenAI Batch API costs 50% less than synchronous calls, with results within 24 hours. Suited to evaluations, classifying large datasets and embeddings, not to chat.

  • Shorter context, capped answers

    Do not send the whole chat history and whole documents, send relevant passages and summaries. Set caps for output length and agent steps.

  • Smaller models for simple tasks

    The price gap between a provider's smallest and largest model is often 10 to 50 times. Classification, extraction and simple summaries rarely need the largest model.

  • Fixed tasks in code instead of AI

    Calculations, validation, format conversion and unambiguous filters are cheaper and more reliable in scripts and database queries than in a language model.

  • Budgets, limits and alerts

    One key per application or team, soft limits with warnings and hard caps on output tokens keep a runaway loop from getting expensive.

Sources: OpenAI prompt caching, OpenAI Batch API, Cloud Computing Insider: reducing token costs (German), llm.guide: cost and latency, Lotus Libre: LLM gateway and cost control (German)

Example prices per 1 million tokens

The gaps between model classes are large. The table shows list prices in USD from the OpenRouter model list, read on 6 December 2026.

ModelClassInputOutputCached input
OpenAI GPT-5.5Closed, large$5.00$30.00$0.50
Anthropic Claude Fable 5.2Closed, large$8.00$40.00$0.20
OpenAI GPT-6 LunaClosed, small$0.10$0.50$0.01
Anthropic Claude Haiku 5.5Closed, small$0.10$0.50$0.01
DeepSeek V3.2Open weights$0.28$0.42$0.028
Qwen4 35B A3BOpen weights$0.06$0.36$0.003
OpenAI gpt-oss-120bOpen weights$0.09$0.36n/a

Examples, not a price list and not a model recommendation. Prices and models change often, check the current state with the provider. OpenRouter model list (API)

Worked example: 100 million input and 20 million output tokens per month

Assumption for the calculation, not a client figure: 100 million input and 20 million output tokens per month. In the cache column, 80% of input is read from cache.

ModelWithout cachingWith caching (80% of input)
OpenAI GPT-5.5$1,100$740
Anthropic Claude Fable 5.2$1,600$976
OpenAI GPT-6 Luna$20$12.80
Anthropic Claude Haiku 5.5$20$12.80
DeepSeek V3.2$36.40$16.24
Qwen4 35B A3B$13.20$8.64
OpenAI gpt-oss-120b$16.20n/a

Pure price arithmetic at the same token volume, our calculation from list prices. A saving only counts if quality is enough for your task. For comparison: a rented GPU server costs from €214 net per month (Hetzner GEX45), even when it sits idle.

From practice

Kevin Schindler built heavily parallelized workflows on his own Hetzner servers with K3s at Differential. Running your own servers is doable, but it is an operations topic of its own, not a switch you flip. So: measure first, then pick the smallest level that meets your bill and your data protection requirements.

Frequently asked questions about AI costs

How can I reduce AI costs?

Measure cost per use case first. Typical levers are a smaller model for simple tasks, prompt caching, batch processing for non-urgent jobs and shorter prompts. After that come model routing, open-source models and, only with constantly high load, rented GPUs or your own hardware.

Is OpenRouter cheaper than OpenAI directly?

Not per token. OpenRouter passes provider prices through without markup but charges a fee when you buy credits (standard plan: 5.5% on card payments, $0.80 minimum, as of 6 December 2026). It gets cheaper by choosing other models, through routing and through open-source models.

What is model routing and does it really save money?

With model routing, a router picks the right model per request. On OpenRouter that works with openrouter/auto at no extra fee. The saving depends on your task mix: the RouteLLM study reports 35% to over 85% compared with GPT-4 only, depending on the benchmark. Check with your own examples that quality holds.

When does self-hosting on your own GPUs pay off?

Usually only with constantly high, steady load or when data must not leave your infrastructure. A rented GPU costs money even when idle. In one example calculation, a rented H100 has to use roughly 62 to 66% of its benchmark throughput around the clock at 50 tokens/s per user to match the API price of an open-source model.

How much do prompt caching and batch processing save?

At OpenAI, cached input tokens are up to 95% cheaper depending on the model when the prompt beginning is identical. The Batch API costs 50% less than synchronous calls with a turnaround of up to 24 hours. How much that is in your case depends on the share of repeated prompt parts and non-urgent tasks.

Which level fits my company?

Start at level 1 or 2, measure cost per use case and move on only if your bill or your data protection requirements call for it. We are happy to place your usage together in an intro call.

Further reading

Which level fits your AI bill?

Book an intro call. We look at your usage together and show which level pays off for you.