# The New Economics of Agentic Workflows: Self-Hosted Qwen4-35B-A3B vs Frontier Models Under Real-Time SLOs

> Source: <https://www.g-ftech.com/blog/qwen4-35b-a3b-agentic-economics-real-time-slo>
> Published: 2026-12-05 00:00:00+00:00

**Recommendation:** Benchmark self-hosted models on task success per minute under a real-time p95 SLO rather than tokens per second, and price cost per resolved task, since a 3× cheaper per-token model can cost more per resolution.
More in the playbook "Inference and self-hosting": <https://wpnews.pro/playbooks/inference-serving>

Most LLM cost comparisons quote dollars per million tokens. In multi-turn agentic workflows, that number hides the real bill. A model that is 3× cheaper per token can still cost more per resolved customer ticket if it takes extra tool calls, loops on edge cases, or fails a quarter of tasks. Conversely, a self-hosted model that looks unbeatable on offline batch throughput can collapse under a real-time latency SLO the moment concurrent multi-turn dialogues grow long KV caches.

We benchmarked **13 production configurations** — self-hosted open models (**Qwen4-35B-A3B-FP8**, **Qwen3.8-27B NVFP4**, **Qwen3.5-9B**, **Qwen3.5-4B**) against frontier APIs from **OpenAI** (GPT-6 Luna, GPT-6.1 Terra, GPT-6.2 Sol, GPT-6.2 Astra) and **Anthropic** (Claude Haiku 5.5, Sonnet 5.5, Opus 5.5, Fable 5.2) — on the exact same **300 live multi-turn support dialogues** from `τ²-bench` paced at **10 req/s** with a strict real-time latency target of **p95 ≤ 5.0 s**.

The headline result: a **single NVIDIA B300** running **Qwen4-35B-A3B-FP8** solves **87.7% of tasks (263/300)** at **894 output tok/s** (**28.0 successes/min**), with **p95 = 0.92 s** in the 60-second steady-state window (**2.12 s** over the full run) and **0.00% API errors**. Priced on **Nebius**, that works out to **$0.40 per 1,000 successful dialogues on Spot** (**$3.76 On-Demand**), compared to **$24.24** for GPT-6.2 Sol (86.7%) and **$44.68** for Claude Sonnet 5.5 (91.0%).

## 1. Why token pricing lies in agentic support

In a single-turn completion, cost scales linearly with prompt and output length. In a customer-support agent that calls tools and talks back and forth with a user, three hidden multipliers dominate unit economics:

- **Multi-turn prefix growth.** Every tool call appends to conversation history. A 15-turn ticket resends the system prompt, tool schemas, and prior tool outputs on every turn. Prompt caching helps API callers and prefix caching helps vLLM, but neither eliminates the cost of wasted turns.
- **Task-level failure rate.** An agent that solves 70% of tickets instead of 88% still burns compute on 100% of attempts while only harvesting 70% of outcomes — an immediate 1.26× tax on effective cost per resolution.
- **Real-time queueing under SLO.** Interactive chat cannot wait 45 seconds for a reply. Once a GPU crosses its concurrency knee, tail latency explodes non-linearly even when average tokens per second looks healthy.

## 2. Experimental setup and pricing contract

We pinned `τ²-bench` (commit `768f3d8f`) and froze an identical slice of **150 tasks** (50 Airline, 50 Retail, 50 Telecom) × **2 trials** = **300 dialogues per model**. Every run used the same simulator, judge, arrival broker, and accounting rules:

- **User simulator & semantic judge:**`gpt-6.1-sol` at`reasoning_effort="low"` , held constant across all agents. Simulator and grading costs are tracked separately and excluded from agent cost.
- **Fixed-rate live arrival:** an isolated broker dispatches agent turns at a steady**10 req/s** (and**25 req/s** in scaling tests) with streaming enabled and a fixed**4,096-token** completion cap.
- **Reasoning budget:** every thinking-capable model ran at`reasoning_effort="low"` (OpenAI Responses API, Anthropic Messages API adaptive thinking with prompt caching, vLLM`chat_template_kwargs` ). Small dense models (Qwen3.5-4B and Qwen3.5-9B) were tested with thinking disabled (`enable_thinking=False` ).
- **Self-hosted stack:** vLLM on single-GPU pods (`1×B300` or`1×H200` ) with prefix caching, chunked prefill,`max-model-len 32768` , and`gpu-memory-utilization 0.90` .
- **Nebius & API pricing:** self-hosted GPU cost bills exact Nebius hourly rates (GPU + local NVMe SSD) over the active cohort wall clock —`1×B300` at**$1.0214/hr Spot** /**$9.5214/hr On-Demand** and`1×H200` at**$0.8114/hr Spot** /**$5.4214/hr On-Demand** . OpenAI and Anthropic runs use official Standard list prices with exact cache read/write token accounting.

## 3. Headline results at 10 req/s

Across the full 300-dialogue slice at 10 req/s, the market splits cleanly into two regimes: self-hosted **Qwen4-35B-A3B-FP8** owns everything up to 88% accuracy at 6×–60× lower cost than OpenAI, while **Claude Sonnet 5.5** owns the >90% tier at a steep premium.

| 300 live τ²-bench dialogues at 10 req/s (50 Airline, 50 Retail, 50 Telecom × 2 trials), sorted by resolution accuracy. Throughput is measured over the full agent cohort wall clock. |  |  |  |  |  |  |  | 
|---|---|---|---|---|---|---|---|
| Model & Hardware / API | Accuracy | Output tok/s | Successes / min | p95 (60s / whole) | SLO ≤ 5 s | Nebius Spot / API ($/1k) | Nebius On-Demand ($/1k) | 
|---|---|---|---|---|---|---|---|
| Claude Fable 5.2 (Anthropic) | 91.3% (274/300) | 906 | 25.8 | 3.20 / 5.23 s | PASS (60s) | $166.34 | — | 
| Claude Sonnet 5.5 (Anthropic) | 91.0% (273/300) | 700 | 24.4 | 2.33 / 2.98 s | PASS (strict) | $44.68 | — | 
| Claude Opus 5.5 (Anthropic) | 90.3% (271/300) | 961 | 29.6 | 4.09 / 4.66 s | PASS (strict) | $92.22 | — | 
| Qwen4-35B-A3B-FP8 (1×B300, low) | 87.7% (263/300) | 894 | 28.0 | 0.92 / 2.12 s | PASS (strict) | $0.40 | $3.76 | 
| Qwen4-35B-A3B-FP8 (1×H200, low) | 87.3% (262/300) | 895 | 27.7 | 5.83 / 11.19 s | FAIL (+0.83 s) | $0.33 | $2.18 | 
| GPT-6.2 Sol (OpenAI) | 86.7% (260/300) | 328 | 25.9 | 1.74 / 2.38 s | PASS (strict) | $24.24 | — | 
| GPT-6.2 Astra (OpenAI) | 86.7% (260/300) | 328 | 25.3 | 3.33 / 4.27 s | PASS (strict) | $97.70 | — | 
| Qwen3.5-9B (1×B300, no-think) | 85.7% (257/300) | 1,368 | 25.4 | 0.47 / 3.43 s | PASS (strict) | $0.67 | $6.25 | 
| Qwen3.5-4B (1×B300, no-think) | 84.0% (252/300) | 1,292 | 24.7 | 0.33 / 2.13 s | PASS (strict) | $0.69 | $6.41 | 
| Qwen3.8-27B NVFP4 (1×B300, low) | 82.0% (246/300) | 1,706 | 24.9 | 4.64 / 8.49 s | PASS (60s) | $0.47 | $4.36 | 
| GPT-6.1 Terra (OpenAI) | 78.7% (236/300) | 409 | 33.2 | 2.36 / 2.85 s | PASS (strict) | $12.48 | — | 
| GPT-6 Luna (OpenAI) | 73.3% (220/300) | 721 | 30.4 | 1.24 / 1.29 s | PASS (strict) | $2.16 | — | 
| Claude Haiku 5.5 (Anthropic) | 70.7% (212/300) | 1,180 | 23.6 | 1.77 / 2.99 s | PASS (strict) | $3.94 | — | 

## 4. Throughput and real-time latency

Throughput in an agentic benchmark is not just raw tokens per second — it is **resolved tickets per minute** inside a latency budget. Notice how **Qwen3.8-27B NVFP4** pushes the highest raw output rate at 10 req/s (**1,706 output tok/s**) because it generates longer reasoning traces, yet delivers fewer successes per minute (** 24.9** vs. **28.0** for Qwen4-35B-A3B) and breaches the 5 s SLO over the full run (**8.49 s**).

Meanwhile, **Qwen4-35B-A3B-FP8** on a single B300 sustains **894 output tok/s** and **28.0 successes/min** with **p95 = 0.92 s** in the steady window and **2.12 s** across the full run — faster than both GPT-6.2 Sol (2.38 s) and Claude Sonnet 5.5 (2.98 s).

## 5. Why Qwen4-35B-A3B beats even 4B and 9B dense models on cost

One result surprised us at first glance: on the exact same `1×B300` GPU, **Qwen4-35B-A3B-FP8** (35B total parameters, with thinking enabled at `low`) is **cheaper per 1,000 successes** than both **Qwen3.5-9B** and **Qwen3.5-4B** running with thinking completely disabled ($0.40 Spot / $3.76 OD vs. $0.67–$0.69 Spot / $6.25–$6.41 OD).

Two systems effects drive this:

- **Active weight bytes per decode step.** Interactive multi-turn decode is memory-bandwidth bound. Qwen4-35B-A3B activates only**~3B parameters per token in FP8** (~3 GB read per decode step). Qwen3.5-4B in BF16 reads ~8 GB per step and Qwen3.5-9B in BF16 reads ~18 GB per step — while carrying less knowledge and weaker tool discipline than a 35B MoE.
- **Runaway generations without thinking.** With thinking turned off, Qwen3.5-4B hit the 4,096-token ceiling on**21/300 dialogues** and Qwen3.5-9B on**16/300 dialogues** . Those truncated loops inflated their output tok/s (1,292–1,368 tok/s) and stretched wall-clock time to ~610 s, converting each GPU-hour into fewer solved tickets.

## 6. Scaling to 25 req/s: where a single B300 hits the SLO wall

To locate the single-GPU capacity knee, we pushed arrival load from 10 req/s to **25 req/s** on the same 300-dialogue slice.

| Fixed-rate scaling test at 25 req/s (300 dialogues). A single B300 running Qwen4-35B-A3B holds 0% errors and 88.3% accuracy, but crosses the 5.0 s latency ceiling. |  |  |  |  |  |  |  | 
|---|---|---|---|---|---|---|---|
| Model & Hardware (25 req/s) | Accuracy | Output tok/s | Successes / min | p95 (60s / whole) | SLO ≤ 5 s | Nebius Spot / API ($/1k) | Nebius On-Demand ($/1k) | 
|---|---|---|---|---|---|---|---|
| Qwen4-35B-A3B-FP8 (1×B300, low) | 88.3% (265/300) | 1,424 | 45.3 | 8.37 / 6.97 s | FAIL | $0.18 | $1.72 | 
| Qwen3.8-27B NVFP4 (1×B300, no-think) | 73.7% (221/300) | 935 | 35.2 | 5.92 / 5.24 s | FAIL | $0.26 | $2.40 | 
| Qwen3.6-35B-A3B-FP8 (1×H200, no-think) | 80.3% (241/300) | 1,467 | 31.2 | 20.40 / 25.33 s | FAIL | $0.27 | $1.81 | 
| Qwen3.8-27B FP8 (8×B300, low) | 82.0% (246/300) | 4,357 | 65.7 | 4.23 s | PASS | $2.07 | $19.34 | 
| GPT-6.1 Terra (OpenAI) | 78.7% (236/300) | 875 | 69.3 | 2.78 s | PASS | $12.76 | — | 
| GPT-6 Luna (OpenAI) | 73.7% (221/300) | 1,313 | 54.6 | 2.55 s | PASS | $2.17 | — | 

The operational rule is clean: **one B300 comfortably serves ~10–15 req/s of live agentic traffic inside a 5.0 s p95 SLO.** Serving 25 req/s inside SLO requires **two independent `1×B300` replicas** (~12.5 req/s each), keeping p95 around 2–3 s at roughly **$0.36 Spot / $3.44 On-Demand per 1,000 successes** — still 7× cheaper than GPT-6.2 Sol and 13× cheaper than Claude Sonnet 5.5.

## 7. What didn’t work: ablations and failure modes

- **`1×H200` misses the 5 s SLO by 0.83 s on Qwen4-35B-A3B.** Accuracy matches B300 (87.3%, 262/300) and cost drops even further ($0.33 Spot / $2.18 On-Demand), but p95 reaches 5.83 s in the 60 s window and 11.19 s over the full run. For async jobs or a 10–12 s SLO, 1×H200 is the cheapest configuration in the study; for strict 5 s chat at 10 req/s, 1×B300 is required.
- **`1×L40S` saturates even on 4B and 9B models without thinking.** Both Qwen3.5-4B and Qwen3.5-9B stayed under 5 s during the first 60 seconds (p95 1.88 s and 4.13 s), then queued out once multi-turn KV caches grew (full-run p95 194 s and 204 s, with ReadTimeout errors dropping accuracy to 76.7% and 57.3%).
- **`openai/gpt-oss-20b` is sub-second fast (p95 0.74 s on 1×B300) but weak on strict tool policies.** At`reasoning_effort="low"` (the minimum Harmony permits), it posted 0.00% errors yet solved only 47.0% (141/300, Telecom 30/100).

## 8. Practical takeaways and limits

**Production architecture:** run

**Qwen4-35B-A3B-FP8 on 1×B300** as the default real-time tier (87.7% accuracy, 2.12 s full-run p95, 28.0 successes/min, $0.40 Spot / $3.76 On-Demand per 1k successes). If your workflow requires >90% resolution accuracy, escalate only the hardest 10–15% of conversations to

**Claude Sonnet 5.5**(91.0%, $44.68/1k) instead of paying frontier API rates on 100% of traffic.

**Caveats:** GPU costs are measured over the active cohort window (~100% utilization at 10 req/s). Real traffic has diurnal troughs; at 30% average utilization, self-hosted cost per 1,000 successes scales by ~3.3× (~$1.30 Spot / ~$12.40 On-Demand), still comfortably below GPT-6.2 Sol ($24.24) and Claude Sonnet 5.5 ($44.68). All runs use two trials per task (300 dialogues) and fixed `reasoning_effort="low"`; differences under ~1.5 pp sit within trial variance, and higher reasoning budgets can lift frontier scores at higher latency and cost. For related serving telemetry on B300, see our [B300 inference speedup deep dive](https://www.g-ftech.com/blog/pushing-limits-extreme-qwen-27b-inference-speedup) and [inference provider benchmark](https://www.g-ftech.com/blog/qwen-27b-inference-providers-benchmark).
