Method notes

A planning model for choosing between serverless per-token pricing and dedicated GPU capacity. It does the arithmetic on the assumptions you enter. It does not run inference, benchmark hardware or fetch prices. The measured scenario, loaded from measured.json, carries its own run date and sources.

1. Workload

Both options use the same request count, mean input and output tokens and assumed model quality. All requests are assumed billable. These are comparison assumptions. They are no evidence that a compact model can replace a larger one. Requests from retries, agent loops or tool calls must already be included in the workload. There is no retry or failure simulator.

The month is exactly 30 days (720 hours). Traffic occupies the selected number of hours on each day. The peak multiplier is relative to the active-window average, not the whole-month average. No burst duration, frequency or queue distribution is invented.

Active average req/s = monthly requests / (30 × active hours/day × 3,600)
Peak req/s = active average req/s × burst multiplier

2. Serverless token cost

Prices are dollars per one million tokens. The cache fraction is the fraction of input tokens billed at the cached-input rate, not the fraction of requests with a cache hit. Output tokens, reasoning tokens included, are never cache-discounted in this model.

Serverless variable cost / request = [input tokens × ((1 − cached fraction) × input price + cached fraction × cached-input price) + output tokens × output price] / 1,000,000
Serverless monthly cost = requests × variable cost/request + serverless operations allowance

The three preset profiles are generic compact, general-purpose and large-model archetypes. Every rate there is illustrative. They are not a particular vendor or model, and a higher profile cost does not establish higher quality. Replace the values with a dated quote and add its reference in the source note.

3. Dedicated fleet size

A replica is one complete serving unit, which can span several GPUs. Its price is the price of all its GPUs per hour. Aggregate prefill and decode throughput are isolated-phase assumptions. Because both consume the same serving resources, the model adds their normalized work instead of assuming both rates can be achieved simultaneously.

Replica-seconds / request = input tokens / prefill tok/s + output tokens / decode tok/s
Working replicas = max(1, ceil(peak req/s × replica-seconds/request / target utilization))
Purchased replicas = working replicas + warm spare replicas
Dedicated monthly cost = billed replica-hours × replica-hour price + dedicated operations allowance

This additive approximation is conservative relative to treating the two rates as independent simultaneous constraints. It is not guaranteed to be conservative against real hardware. Batching, memory pressure, context length, contention and scheduling may reduce achieved performance further.

Cached serverless billing does not save dedicated compute; all input tokens consume modeled prefill work. Spares are warm and paid but excluded from serving capacity. At zero demand the fleet still has at least one working replica plus the configured spares.

3a. Billing mode

Always on bills every purchased replica for all 720 hours. Autoscaled, per GPU-second follows Fireworks On Demand billing: the fleet is sized as above during the active window, stays up for an idle timeout after the window ends each day, then drops to a minimum replica count. Start-up time is not charged. Fireworks lists H100 80 GB and H200 141 GB at $8.00/h and B200 at $13.00/h, with idle deployments scaling to zero after one hour by default (fireworks.ai/pricing, read 2026-12-01).

idle hours = min(idle timeout / 60, 24 − window hours)
floor hours = max(0, 24 − window hours − idle hours)
Billed replica-hours = 30 × (window hours × purchased replicas + idle hours × purchased replicas + floor hours × min(minimum replicas, purchased replicas))
Always on: billed replica-hours = 720 × purchased replicas

With a 24-hour window the two modes are equal. The answer, the chart, billed utilization and the per-request figures all use the selected mode. Billing is continuous, so there is no per-second rounding. When the minimum is 0, the first request after the idle timeout waits for a cold start. That wait is not billed and is not in the latency floor. Spare replicas are billed with the fleet and are not an availability guarantee.

The required fleet is always shown in full. If it exceeds the available fleet limit, the recommendation reports that conflict. The cost is never reduced by underprovisioning.

3b. Utilization

Billed utilization = requests × replica-seconds/request / (billed replica-hours × 3,600)
Active-window utilization = active average req/s × replica-seconds/request / purchased replicas
Peak working utilization = peak req/s × replica-seconds/request / working replicas

These are normalized-work estimates, not measured GPU utilization or hardware occupancy. The utilization target leaves a capacity cushion, but cannot establish queueing delay or p95 behavior.

4. Latency

The latency target is a product requirement for the full response. Time to first token includes prefill, network overhead and any reasoning the model does before its first visible token, but excludes queueing. The per-stream speed is one request on its own, distinct from the replica's aggregate decode throughput.

Warm completion floor = time to first token + (output tokens − 1) / per-stream speed

If this floor exceeds the target, the dedicated configuration is flagged and the cost comparison waits. If it is below the target, latency is merely not ruled out. No tail-latency distribution is modeled; queueing and contention can make it slower. Mean token lengths cannot guarantee behavior for unusually long requests.

Illustrative in-flight requests = peak req/s × target seconds

The target stands in for a mean response time in this illustration only. Little's Law needs a stable interval and does not turn a percentile target into a measured mean. This figure does not size replicas.

5. Crossover

The fleet grows in whole replicas, so the dedicated cost is a staircase and the two lines can cross more than once. The explorer reports the volume above which dedicated stays at or below serverless for good.

Requests per working replica = target utilization / replica-seconds per request × active seconds/month / burst multiplier
Dedicated cost per request at full scale = billed hours per replica × replica-hour price / requests per working replica
Crossover = smallest volume V such that dedicated(V′) ≤ serverless(V′) for every V′ ≥ V

If the dedicated cost per request at full scale is at or above the serverless variable cost, dedicated never catches up at any volume. That usually means the fleet is sized for a peak well above the average or billed for idle hours. Otherwise the crossover is found exactly from the replica steps. The chart runs to 1.5 times the crossover, or to where serverless reaches today's dedicated cost, using 41 samples with connecting lines. The table gives exact costs at those samples.

Recommendation

Invalid input pauses the estimate. Zero demand asks for a workload. Fleet-limit or latency conflicts take priority over cost. When both totals are within 20% of the higher total, the tool calls them close; this is a planning heuristic, not a statistical confidence interval. Otherwise it names the cheaper option, the monthly saving and the crossover. No recommendation constitutes procurement approval.

6. Value against cost

Each scenario has one value driver. The first-call brief, the support copilot and the document pipeline save staff time. The product assistant earns revenue per request. Every value input is an assumption the buyer co-owns, and this page measures none of them. The defaults are set low on purpose so the case does not depend on a generous number.

Time driver: value per unit = minutes saved per unit / 60 × loaded hourly cost
Revenue driver: value per unit = revenue per unit
Monthly value = monthly volume × value per unit
Cost basis = the cheaper option at this volume, with dedicated counted only when it meets the fleet limit and latency target or is the only option
Cost per unit = monthly cost of that option / monthly volume
Multiple = monthly value / monthly cost
Net = monthly value − monthly cost
Break-even (time) = cost per unit / (loaded hourly cost / 60) minutes saved per unit
Break-even (revenue) = cost per unit

Defaults: the first-call brief saves 10 minutes of account research at $60 a seller hour, or $10.00 a brief. The support copilot saves 1 minute of agent handling time at $35 an hour. The document pipeline saves 2 minutes of manual data entry at $40 an hour. The product assistant earns $0.02 a request. The model has no upfront build or integration cost, so whenever value exceeds cost the spend pays for itself in the month it runs. The break-even is the useful threshold. It shows how far the value assumption can fall before the cost exceeds it.

Saved time is capacity. It turns into cash only when it reduces hiring, overtime or contractor spend, or goes into work that earns revenue, so agree which one with the budget owner. A brief that fails the format or grounding gate saves no time; scale minutes saved by the pass rate when it is below 100%. Revenue per request needs a checked mapping from a paid product event to inference requests. Net counts only the inference and operations costs entered here, so it differs from gross margin, profit and ROI. Tax, egress, support, review, failover and engineering may change the outcome. Measure the real driver on a pilot before a commitment: time a few sellers' research on five accounts before and after they use the brief.

Fine-tuned (LoRA) profile

The fine-tuned compact profile runs only on dedicated capacity. A LoRA fine-tune is served from a deployment, so the serverless card and crossover are not shown, and value is priced against the dedicated cost. Throughput matches the compact profile. Quality parity with larger models is not established by this page.

Measured scenario

measured.json (schema 1) comes from the Workbench evaluation run. It supplies mean token counts per brief, reasoning tokens included, measured time to first visible token and full-response time, and serverless list prices for each option. The run times the first token when visible text arrives, so a model that reasons first carries that reasoning in its first-token time.

Dedicated speed is taken from the measured median: time to first token is the measured p50, and the per-stream speed is (mean output tokens − 1) / (full-response p50 − first-token p50). The warm floor therefore equals the measured median response. This assumes a dedicated replica serves one request as fast as the serverless endpoint did. For a reasoning model the per-stream speed runs high, because its reasoning tokens arrived before the first visible token; the floor still matches the measurement.

These inputs are planning assumptions, not measurements. Volume is 20,000 briefs a month: about 1,000 sellers each running one brief per working day, in a 10-hour window with a 3× Monday-morning peak. The latency target is 15 seconds for a full brief, a product requirement; the measured p50 and p95 are shown beside it for context. The dedicated replica is the smallest one that holds the weights at 8-bit with room for the KV cache: 8 × H200 141 GB for GLM-5.3 (GLM-5-class, 744B parameters) and 4 × H200 141 GB for DeepSeek V4.1 Flash (V4 Flash-class, 284B parameters). Throughput per GPU reuses the compact profile's 12,000 prefill and 900 decode tokens a second. Billing is autoscaled with scale to zero after an hour and no warm spare. The value inputs are assumptions as well: 10 minutes of account research saved per brief at $60 a seller hour. GPT-6.1 Sol has closed weights, so it has no dedicated option. A file with run_id "sample" is placeholder data.

Build and privacy

Original, dependency-free browser application: HTML, CSS and JavaScript. A pure arithmetic module is separate from the interface. The SVG chart is generated from the same model, and JSON exports include the inputs, results, version and limitations. No employer or customer material is used.

Calculation is local. There are no model calls, third-party scripts, analytics, external fonts, cookies, browser persistence or input uploads. Reloading resets the scenario. Ordinary page and asset requests still reach the host and may appear in its web logs. A content security policy denies network connections from the application. Exported files remain under the user's control.

This standalone directory uses the existing Vultr static host. It introduces no backend, credentials, API spending, new ports or network settings. No dedicated throughput, production latency, GPU utilization, time saved or commercial outcome was measured by this app.

Return to the explorer