What your retail inference bill looks like at peak season and how to keep it under control

In Black Friday week, search traffic climbs. Recommendation calls multiply, and the shopping assistant you shipped in spring is suddenly holding thousands of conversations at once. AI serving can run at 10 to 20 times its normal baseline for a handful of days, and those few days carry a disproportionate share of the year’s margin.

A stalled response usually means an abandoned basket. Tokens that cost more than you planned eat into the margin on every order that does go through.

Customer-facing retail AI runs on inference, and inference sits in your margin

Almost everything retail teams run in production is inference. Training happens in bursts, while search, recommendations, catalog enrichment, and shopping assistants run all day across millions of interactions.

Shopify, a Nebius customer, gives a sense of the scale. Fine-tuned multimodal models classify and enrich its product metadata at hundreds of millions of inferences a day, and its search and recommendation systems draw on vector representations covering billions of products.

All of it runs while a customer waits. Search has to resolve intent before the shopper gives up and retypes the query, and recommendations need to land as the page renders. Latency budgets in retail are set by shopper patience, which is short and measurable. In Google and Deloitte’s Milliseconds Make Millions study, a 0.1-second improvement in mobile site speed lifted retail conversions by 8.4% and average order value by 9.2%; for travel sites, conversions rose by 10.1%.

Then there’s the calendar. Most cloud workloads grow on a slope. Retail inference spikes, and sizing serving capacity for that curve is its own engineering problem that shows up in the bill however you solve it.

At this volume, cost per token belongs on the same spreadsheet as cost of goods. Each search query and each assistant turn carries a token cost, and that cost scales with sales volume.

Who controls the model behind your customer experience?

Closed APIs are the fastest way to get a capable model into production, and plenty of teams start there. The trade-offs show up later: the provider decides when the model changes and what a token costs, and whatever the model learns from your catalog stays on their side of the boundary. Open-weight models return those decisions to your team: model size, precision, serving architecture and fine-tuning on your own data.

The catch is infrastructure. Open weights only pay off if you can run them cheaply enough, and fast enough for the shopper on the other end. So it’s worth being precise about where inference costs come from.

Where retail inference costs actually come from (and how they can spiral)

For most retail AI teams, cost reviews start with the GPU hourly rate. With agentic workloads, the bill is mostly made of tokens the agent burns on the way to an answer.

Take a shopping agent handling this request: “Find me a carry-on under $300 that meets Lufthansa’s cabin limits and arrives before Friday.”

Before it answers, the agent plans an approach, searches the catalog, pulls product specs, checks delivery windows, and compares candidates. Along the way it may re-read context it already had. A tool call fails and it retries. A badly scoped search sends it down a branch it later abandons. Each pass goes through the model, racking up inference cost, but the shopper only ever sees the final response.

Errors compound too. At 95% success per step, a 10-step workflow completes about 60% of the time, and every recovery attempt is another trip through the model. On a single-turn chat the waste barely registers. For an agent making dozens of tool calls over several minutes, it can become most of what you pay for. At Black Friday volume, that’s potentially a huge spend on error recovery.

How we help retail businesses control inference costs

If most of the spend happens on the way to the answer, the cost controls sit along that same path. When we work through a cost problem with a team, we pull on three levers, usually in this order: the model doing the work, the harness that drives it, and the system both of them run inside.

1. The model

Many retail tasks don’t need a frontier reasoning model. Product classification, query rewriting, attribute extraction, and request routing often run well on much smaller open models. Picking a model is a unit-economics decision, made one workload at a time against an eval set.

Open models also expose optimizations that closed APIs keep behind the service boundary. Quantization lowers the numerical precision of weights and activations. Distillation moves a task-specific capability from a large teacher into a small student. With speculative decoding, a small draft model proposes tokens and the larger model verifies them in parallel.

Prosus runs commerce workloads at up to 200 billion tokens a day and reports cost reductions of up to 26x compared with closed, proprietary models.

For each task, the working question is what the smallest, fastest model is that still clears your quality bar.

2. The harness

The harness is everything wrapped around the model: prompts, tool definitions, middleware, and the orchestration logic that decides what the agent reads, which tool it calls, and what it does with the result. Inefficiency here repeats on every request. An agent re-reads context it already holds. A vague tool description points it at the wrong function. The planner spends four reasoning steps before its first useful action.

LangChain’s work on Deep Agents for NVIDIA Nemotron 3 Ultra shows how big this lever is. NVIDIA Nemotron 3 Ultra is an open model for long-running agents, delivering up to 5x faster inference and up to 30 percent lower cost than other models in its class. Working in an eval-driven loop on prompts, tools, and middleware, LangChain reached top agent accuracy among open models at roughly 10x lower cost than closed alternatives. They never touched the weights.

If you want to bring spend down, open your traces before your price sheet. Measure tokens per completed task and tool calls per task. Look for repeated reads, and for retries that replay expensive sections of the workflow.

3. The system

Retrieval quality, grounding, orchestration, evaluation, and serving all change how much work an agent does before it reaches a correct answer.

We measured this while building the Nebius Agents Blueprint. We ran a compliance audit agent through four configurations on a 120-task benchmark. Swapping the GPT-based prototype for open models delivered most of the cost reduction, with no retraining. The precision gains came from the system around the model: better retrieval, orchestration, grounding, and evaluation. The best configuration ran NVIDIA Nemotron 3 Ultra with no post-training for the benchmark and finished at 72% lower cost and 20% higher precision than the prototype.

A cheap token doesn’t help much if the agent spends twice as many on each task. The metric worth tracking is cost per successful task at the quality and latency your application needs. The model is usually where cost drops first. The harness and the system decide whether those savings survive at production quality.

From open weights to a production endpoint

Here’s the path we see working for our retail customers. Each step can be adopted on its own.

Fine-tune on your own data. Start from NVIDIA Nemotron, Qwen, Llama, or another open model that fits the task. Supervised fine-tuning (SFT) adapts behavior using high-quality examples from your domain. Reinforcement fine-tuning (RFT, in private beta) optimizes against reward signals tied to your product goals. Larger jobs run on dedicated GPU clusters with high-speed networking and Slurm or Kubernetes orchestration.

Optimize for serving. Distill the tuned model into a smaller student where the task allows. Quantize to FP8 or NVFP4 to cut memory and compute per token. Train a custom speculator (early access) on your own traffic, so the draft model learns to predict your outputs, which is where speculative decoding pays off most.

Serve on dedicated endpoints. Put the model behind a dedicated endpoint and tune it to your latency and throughput targets. Set autoscaling against your traffic curve, so you can absorb Black Friday without paying for peak capacity in March.

Ground and validate. Inventory, prices, and delivery windows change by the hour, so agents need live web context — Tavily by Nebius provides it through one API — whenever a task depends on current information. Some decisions shouldn’t rest on a model alone. Route those edge cases to human experts, and turn their corrections into eval data and fine-tuning material for the next cycle.

This path isn’t for every workload. If your AI traffic is low and flat, a closed API will likely cost less than a dedicated endpoint, and the control argument matters less. Teams without an eval set should build one before fine-tuning anything, otherwise you move cost without knowing what happened to quality. And the limit we hit most often in retail is data: a model fine-tuned on inconsistent catalog attributes inherits the inconsistency, so catalog hygiene comes before the training run.

How Shopify keeps agent accuracy up with Toloka, a Nebius company

Shopify’s work with Toloka, a Nebius company, shows what that last step looks like once it runs continuously.

Shopify Sidekick uses a planner that routes merchant requests to specialized skill agents. For one segmentation skill, an LLM judge scores de-identified production conversations. Cases that stay below threshold after an automated correction attempt go to human experts, whose corrections become SFT data and also improve the judge.

Within a month, the segmentation judge went from 75% to 89% average class accuracy through prompt changes alone, without retraining. Human review surfaced specific failure patterns, including wrong tool selection and unnecessary opt-outs, which gave engineers precise places to fix. Toloka reports that per-task annotation cost fell by roughly half as the process matured.

Each cycle produces traces, the traces expose failures, and the corrections feed the next model and harness iteration.

Get your inference economics working before next peak season

Retail AI will keep demanding more of inference as search gets more semantic and commerce agents take on longer workflows. Tracking cost per successful task, and knowing how to move it in the right direction, will help you head into the next retail peak season with room in your margin.

We’re running free proofs of concept if you want to test these levers on your own workload ahead of your next peak — talk to our team to book a slot.

Nebius’ Andrew Eliseev went deeper on all of it with Andrew McNamara, VP Applied ML at Shopify, at NVIDIA GTC Berlin. Watch the session recording.

Explore Nebius AI Cloud

Explore Nebius Token Factory

See also

MLPerf® Training v6.1: Nebius ranks 1st on NVIDIA Vera Rubin at rack scale in pre-training and post-training

Today we’re announcing our latest submission to MLPerf® Training v6.1, the industry-standard benchmark for AI training performance developed by MLCommons®. This round marks a generational step for Nebius: our first MLPerf® Training results on the NVIDIA Vera Rubin platform. In this blog we’re also sharing updated MLPerf® Inference v6.1 results, now measured on an Available NVIDIA Vera Rubin NVL72 system.

Fine-tuning, RL, or distillation? How to choose a post-training method

Choose a post-training method by the feedback your team can produce. Compare SFT, preference tuning, RL, and distillation, then evaluate the adapted model against your quality, latency, and cost targets.

Nebius Rated Platinum in SemiAnalysis ClusterMAX™ 3.0

SemiAnalysis has named Nebius a Platinum AI cloud provider, the top tier of its ClusterMAX™ 3.0 rating. The rating is based on live testing of production clusters: burn-ins, storage under concurrent load, and automated failure recovery on real NVIDIA GB300 and NVIDIA HGX B300 hardware. This post covers what the testing found and why it matters for teams choosing where to run production AI.

Sign in to save this post