Start with the task, not the server
“Which is cheaper: an API or our own model?” sounds as if comparing two price tags were enough. In practice, compare the cost of an equally useful outcome: for example, a correctly classified inquiry, a draft reply, extracted invoice fields, or a clause found in a contract.
The amount of work must be comparable too. A task may include a retry, a knowledge-base search, format validation, a tool call, and a handoff to a person. Counting only the first API call but electricity for a local model is unfair. Counting only token prices while forgetting to operate a local setup is unfair as well.
Start with a narrow process and one unit of outcome. Define its trigger, measurable result, acceptance criteria, acceptable latency, and share requiring manual review. Build real examples with unnecessary data removed, and appoint a process owner who judges usefulness. If the model makes more mistakes, people spend longer correcting the result: the “saving” becomes another department’s expense.
An illustrative API calculation is only a starting point
Suppose a hypothetical workload has 20,000 short tasks per month, each with 2,000 input tokens and 400 output tokens. OpenAI’s pricing page lists GPT‑6.2 Sol Standard at $2 per million input tokens and $10 per million output tokens. Under those assumptions, one call costs about $0.008, and 20,000 tasks cost around $160 per month.
This is an arithmetic illustration using a published rate, not a bill forecast or a recommendation to use this model. It excludes taxes, currency exchange, fallback calls, tools, storage, integration, and staff time. A real prompt may be several times longer; an agent may make several calls. Measure these in a test:
- median and 90th-percentile input and output tokens;
- retries and the share of tasks routed to a fallback;
- the share of answers accepted on the first pass;
- cost per accepted outcome, including human review.
An average hides spikes. A budget must account for peak days, long documents, and tool chains as well as routine requests.
What local inference costs
A local model does not make computation free. The provider’s charge is replaced by:
- purchase or rental of a server, GPU, memory, and storage;
- hardware amortization over its useful life;
- electricity and cooling, including idle time;
- runtime setup, updates, monitoring, and redundancy;
- engineering time for integration, security, and incidents;
- quality evaluation on your data and routing maintenance.
For illustration, assume equipment costs ₽90,000 and is amortized over 36 months: ₽2,500 per month. Add a hypothetical ₽1,500 monthly for operations; electricity and other components are not yet counted. These are not a market price or vendor quote, only example inputs for the formula. Replace them with a supplier quote, measured power use, and an estimate of team time.
Model file size is not the same as server requirements. Ollama’s catalog lists Qwen3 weight files ranging from 523 MB to tens of gigabytes. That helps estimate disk space, but does not guarantee the model will fit in memory with its context and workload. Check quantization, runtime requirements, context length, concurrency, and speed on your own hardware.
At low volumes, fixed costs can make a local deployment more expensive than API tokens. A large, steady workload or a requirement to keep data inside the company may change the economics—but validate it with a test, not the word “local.”
The break-even point
Let F be monthly fixed costs for the local setup, L the variable local processing cost per task, and A the full variable API cost for a comparable task. When A > L, a rough break-even volume is N = F / (A − L). If local processing is not cheaper per task than the API, more volume alone will not pay off the fixed investment. Include mistakes, manual review, and redundancy.
The hypothetical API call above costs $0.008. It cannot be directly compared with ruble expenses without an exchange rate, fees, and tax treatment. For illustration only, at ₽90 per dollar, the variable component is ₽0.72 per task. With ₽4,000 in fixed local costs, simple arithmetic gives about 5,556 tasks per month if L is close to zero. In practice, a local service consumes resources, needs support, and may require a fallback API—so the real threshold is higher.
Model scenarios at 2,000, 10,000, and 50,000 tasks; short and long context; one and three calls per task; and 70%, 85%, and 95% first-pass acceptance. Compare monthly cost per accepted outcome, not “model cost.”
API, local deployment, or hybrid
An API helps test a process without capital spending. It may fit when data policy permits transfer, volume is small or variable, and launch speed matters. Before sending data, check the contract, service availability, retention rules, applicable law, and internal requirements.
A local deployment is worth testing when data must not leave company infrastructure, demand is steady, the team can operate the system, and the model meets the required quality. Local execution alone does not provide security: access controls, updates, request auditing, backup protection, and network isolation are still needed.
A hybrid is often more practical than an ideological choice: handle sensitive documents inside the company and route anonymized routine tasks to an API; or use a smaller model for routing and extraction, escalating difficult cases to a stronger model or a person. Routing rules must be explicit, testable, and account for the cost of another pass.
A two-week pilot
Do not start by buying a server. Prepare 100–300 typical tasks, including difficult and malformed inputs. Record the current workflow and staff time. Define which errors are acceptable and which always require a person.
Compare the manual baseline, one API option with token logging, a local model on available or temporarily rented hardware, and a hybrid if needed. For each option, measure accuracy by task type, latency, human workload, cost per accepted outcome, retries, and escalations. Do not upload confidential documents to an external service just for convenience: first create a safe test set and define processing conditions.
A useful pilot answers three questions: does quality meet the target, does the system fit the process time, and is the full workflow economical after review and operations? If the answer is unclear, extending a short test costs less than keeping a server on a permanent internship.
The management takeaway
Do not approve a local GPU budget based on token volume alone, and do not call an API cheap based only on its pricing page. Ask for cost per accepted outcome, quality on a representative sample, fixed costs, and data-handling conditions. Then the choice—API, local deployment, or hybrid—becomes measurable rather than ideological.
The rate is supported by OpenAI’s current documentation. Qwen3 file sizes illustrate only that weight-file size and runtime requirements are different. Verify the exact build’s specifications, license, and commercial-use rights separately.
