<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Magnus</title>
    <description>The latest articles on DEV Community by Magnus (@magnus_modelflare).</description>
    <link>https://dev.to/magnus_modelflare</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4181073%2F70d563b9-c2b7-43b1-ab8c-ff0588d6bbf9.png</url>
      <title>DEV Community: Magnus</title>
      <link>https://dev.to/magnus_modelflare</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/magnus_modelflare"/>
    <language>en</language>
    <item>
      <title>Gemini 4 Models Compared on Reasoning, Coding, and Context</title>
      <dc:creator>Magnus</dc:creator>
      <pubDate>Fri, 20 Nov 2026 01:34:48 +0000</pubDate>
      <link>https://dev.to/modelflare_dev/gemini-4-models-compared-on-reasoning-coding-and-context-55p3</link>
      <guid>https://dev.to/modelflare_dev/gemini-4-models-compared-on-reasoning-coding-and-context-55p3</guid>
      <description>&lt;p&gt;Compare Gemini 4 Argon, Carbon, Hydrogen, and Neon across reasoning, scientific work, coding agents, multimodal understanding, and cost per accepted result.&lt;/p&gt;

&lt;p&gt;Gemini 4 Neon and Carbon both score 60 on the Artificial Analysis Intelligence Index at &lt;code&gt;high&lt;/code&gt; reasoning effort. Yet the benchmark estimates 14.8 minutes per weighted task for Neon and more than half an hour for Carbon. Another comparison points to a different capability. Despite sharing the same roughly million-token context window, Carbon and Argon score 96.2% and 84.2% respectively on the long-context slice of GraphWalks in the same technical evaluation. Context capacity, the ability to follow relationships through that context, and the compute spent on completing a task each deserve their own measurement. &lt;a href="https://artificialanalysis.ai/providers/google" rel="noopener noreferrer"&gt;Artificial Analysis provider results&lt;/a&gt; · &lt;a href="https://deepmind.google/models/model-cards/gemini-4-carbon/" rel="noopener noreferrer"&gt;Carbon model card&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This article compares the published evidence for Argon, Carbon, Hydrogen, and Neon as of November 19, 2026. Modelflare did not rerun the evaluations. Here, model intelligence refers to observable capabilities such as extracting evidence, using intermediate results to constrain a conclusion, completing a task with tools, and recognizing when the available evidence supports only a qualified answer. Each capability needs its own tasks, scoring rules, and resource budget.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the four models share and where they spend their effort
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;Google public API ID&lt;/th&gt;
&lt;th&gt;Public availability milestone&lt;/th&gt;
&lt;th&gt;Workloads to evaluate first&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Argon&lt;/td&gt;
&lt;td&gt;&lt;code&gt;gemini-4-argon&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Broader paid API availability on October 13&lt;/td&gt;
&lt;td&gt;Complex engineering, knowledge work, and document analysis with an existing Argon baseline&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Carbon&lt;/td&gt;
&lt;td&gt;&lt;code&gt;gemini-4-carbon&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Broader paid API availability on November 10&lt;/td&gt;
&lt;td&gt;Deep debugging, open-ended research, and deliverables requiring repeated verification&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hydrogen&lt;/td&gt;
&lt;td&gt;&lt;code&gt;gemini-4-hydrogen&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Launched on November 12 across free and paid API tiers&lt;/td&gt;
&lt;td&gt;High-volume extraction, bounded code changes, and agent steps with automatic acceptance checks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Neon&lt;/td&gt;
&lt;td&gt;&lt;code&gt;gemini-4-neon&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Launched on the paid API on November 18&lt;/td&gt;
&lt;td&gt;Complex, recurring coding, knowledge work, and synthesis over several sources&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The dates refer to Google's public availability announcements. The four API models accept text, images, video, audio, and PDFs and produce text. The unified context window is &lt;strong&gt;1,048,576 tokens&lt;/strong&gt;. Each model page lists a default synchronous output limit of &lt;strong&gt;65,536 tokens&lt;/strong&gt;. Long decode can extend generation through continuations, within the unified window and the constraints of the selected interface. The public materials do not give a comparable parameter count, training budget, or inference compute budget by effort level for all four models. The task conditions are the basis for comparing them. &lt;a href="https://aistudio.google.com/docs/models/gemini-4-argon" rel="noopener noreferrer"&gt;Argon API specifications&lt;/a&gt; · &lt;a href="https://aistudio.google.com/docs/models/gemini-4-carbon" rel="noopener noreferrer"&gt;Carbon API specifications&lt;/a&gt; · &lt;a href="https://aistudio.google.com/docs/models/gemini-4-hydrogen" rel="noopener noreferrer"&gt;Hydrogen API specifications&lt;/a&gt; · &lt;a href="https://aistudio.google.com/docs/models/gemini-4-neon" rel="noopener noreferrer"&gt;Neon API specifications&lt;/a&gt; · &lt;a href="https://aistudio.google.com/docs/long-decode" rel="noopener noreferrer"&gt;Google long decode guide&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;DeepMind says Neon was adapted from Carbon. Google positions Carbon for deeper exploration and verification, Hydrogen for fast execution, and Neon for recurring work that calls for both depth and throughput. Those descriptions suggest useful starting configurations. The actual choice depends on how readily the task can be decomposed, how far a mistake can propagate, and how much human review costs. &lt;a href="https://deepmind.google/models/model-cards/gemini-4-neon/" rel="noopener noreferrer"&gt;Neon model card&lt;/a&gt; · &lt;a href="https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-4-carbon-now-available/" rel="noopener noreferrer"&gt;Carbon announcement&lt;/a&gt; · &lt;a href="https://blog.google/innovation-and-ai/models-and-research/gemini-models/introducing-gemini-4-hydrogen/" rel="noopener noreferrer"&gt;Hydrogen announcement&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What the intelligence index measures
&lt;/h2&gt;

&lt;p&gt;Artificial Analysis Intelligence Index v5.0.1 combines nine evaluations. Knowledge work, coding, science, and general capabilities each receive a 25% weight. That makes the index a useful summary of the suite. An application dominated by chart extraction, cross-referencing long documents, or tool calls with strict deadlines needs the relevant subtests and a separate estimate based on its own task mix. The table uses a single index version and retains the reasoning effort for each observation. &lt;a href="https://artificialanalysis.ai/methodology/intelligence-benchmarking" rel="noopener noreferrer"&gt;Index methodology and version history&lt;/a&gt; · &lt;a href="https://artificialanalysis.ai/providers/google" rel="noopener noreferrer"&gt;Provider results&lt;/a&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model and reasoning effort&lt;/th&gt;
&lt;th&gt;Index score&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Neon &lt;code&gt;xhigh&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;61&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Neon &lt;code&gt;high&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;60&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Carbon &lt;code&gt;high&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;60&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Neon &lt;code&gt;medium&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;55&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hydrogen &lt;code&gt;xhigh&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;54&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hydrogen &lt;code&gt;high&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;51&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Argon &lt;code&gt;high&lt;/code&gt; (AI Studio)&lt;/td&gt;
&lt;td&gt;50&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Neon &lt;code&gt;low&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;44&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Neon gains five points from &lt;code&gt;medium&lt;/code&gt; to &lt;code&gt;high&lt;/code&gt;, then one point from &lt;code&gt;high&lt;/code&gt; to &lt;code&gt;xhigh&lt;/code&gt;. The corresponding weighted time estimates are 8.3, 14.8, and 21.5 minutes. The final step adds about 45% to the estimated time. Its value depends on which otherwise unsuccessful tasks it recovers. The index displays whole numbers, so a one-point gap has limited meaning without paired task outcomes and run-to-run variance. Carbon's 59 at its October evaluation belongs to v5.0. The current 60 comes from a newer scoring snapshot. &lt;a href="https://artificialanalysis.ai/models/gemini-4-neon" rel="noopener noreferrer"&gt;Neon results by effort level&lt;/a&gt; · &lt;a href="https://artificialanalysis.ai/articles/gemini-4-carbon-new-number-1/" rel="noopener noreferrer"&gt;Early Carbon evaluation&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Scientific reasoning spans answers, execution, and verification
&lt;/h3&gt;

&lt;p&gt;HLE-Diamond covers demanding knowledge and reasoning questions. DeepMind's evaluations list &lt;strong&gt;71.3%&lt;/strong&gt; for Neon and &lt;strong&gt;58.8%&lt;/strong&gt; for Hydrogen. RiemannBench covers mathematical tasks, and Neon's card lists &lt;strong&gt;84.0%&lt;/strong&gt;. Terminal-Bench-Science adds execution in a terminal environment. Tool selection, successful analysis, and correct interpretation of intermediate outputs can all affect the result. A correct final answer and a reproducible scientific workflow call for different evidence. &lt;a href="https://deepmind.google/models/model-cards/gemini-4-neon/" rel="noopener noreferrer"&gt;Neon model card&lt;/a&gt; · &lt;a href="https://deepmind.google/models/model-cards/gemini-4-hydrogen/" rel="noopener noreferrer"&gt;Hydrogen model card&lt;/a&gt; · &lt;a href="https://artificialanalysis.ai/methodology/intelligence-benchmarking" rel="noopener noreferrer"&gt;Artificial Analysis benchmark definitions&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Carbon's card reports &lt;strong&gt;64.8%&lt;/strong&gt; for Carbon and &lt;strong&gt;52.9%&lt;/strong&gt; for Argon on the Artificial Analysis entry for Terminal-Bench-Science 0.1, a gap of &lt;strong&gt;11.9 percentage points&lt;/strong&gt;. Neon's 70.5% comes from a separate setup using the vision-enabled mini-swe-agent harness and averaging rewards across five attempts per task. The result should travel with its harness and aggregation rule. To judge whether more reasoning effort is worthwhile in research, ask each configuration to form a hypothesis on the same data, produce a reproducible analysis, and explain how an intermediate result changes its conclusion. Grade numerical accuracy, evidence provenance, and reproducibility individually. This reveals whether a configuration is better at finding a problem or simply better at presenting a finished report. &lt;a href="https://deepmind.google/models/model-cards/gemini-4-carbon/" rel="noopener noreferrer"&gt;Carbon model card&lt;/a&gt; · &lt;a href="https://deepmind.google/models/evals-methodology/gemini-4-carbon/" rel="noopener noreferrer"&gt;Carbon evaluation methodology&lt;/a&gt; · &lt;a href="https://deepmind.google/models/evals-methodology/gemini-4-neon/" rel="noopener noreferrer"&gt;Neon evaluation methodology&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Coding agents combine a model, a harness, and an acceptance standard
&lt;/h2&gt;

&lt;p&gt;FrontierCode 2.0 contains 132 tasks designed by maintainers. Its criteria cover correctness, tests, scope discipline, and repository conventions. The weighted score, the proportion of runs that pass, and the average cost per run answer different questions about how many changes meet acceptance criteria, how thoroughly the work is done, and what it costs to produce. &lt;a href="https://cognition.com/frontiercode" rel="noopener noreferrer"&gt;Cognition leaderboard&lt;/a&gt; · &lt;a href="https://cognition.com/blog/frontier-code-2.0" rel="noopener noreferrer"&gt;FrontierCode 2.0 methodology&lt;/a&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model and reasoning effort&lt;/th&gt;
&lt;th&gt;Harness&lt;/th&gt;
&lt;th&gt;Weighted score&lt;/th&gt;
&lt;th&gt;Pass rate&lt;/th&gt;
&lt;th&gt;Mean cost per run&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Gemini 4 Neon &lt;code&gt;high&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Antigravity CLI&lt;/td&gt;
&lt;td&gt;46.2%&lt;/td&gt;
&lt;td&gt;50.8%&lt;/td&gt;
&lt;td&gt;$4.38&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Opus 5.5 &lt;code&gt;max&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Claude Code&lt;/td&gt;
&lt;td&gt;47.3%&lt;/td&gt;
&lt;td&gt;51.8%&lt;/td&gt;
&lt;td&gt;$12.82&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GPT-6.2 Sol &lt;code&gt;max&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Codex&lt;/td&gt;
&lt;td&gt;43.8%&lt;/td&gt;
&lt;td&gt;48.2%&lt;/td&gt;
&lt;td&gt;$1.29&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These results compare systems using their own tools. In this snapshot, Neon and Opus have similar pass rates, and Neon's average run costs about a third as much. Sol costs less than Neon, with a pass rate 2.6 percentage points lower. This is enough to choose candidates for a follow-up. To isolate the model's contribution, pair the tasks and hold the visible tools, timeout, retries, workspace, and acceptance rules constant. &lt;a href="https://cognition.com/frontiercode" rel="noopener noreferrer"&gt;Cognition leaderboard&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;DeepMind's SWE-sweep numbers show how much the harness can matter. Neon earns &lt;strong&gt;39.0%&lt;/strong&gt; in subtask-weighted reward in its provider harness and &lt;strong&gt;12.8%&lt;/strong&gt; in the vision-enabled Mini-SWE harness. That gap is 26.2 percentage points. The suite includes finding issues in a repository, and the public Antigravity CLI can delegate searches to subagents in parallel. The reported figures show a strong system effect, with the individual contributions of subagents, search strategy, and other harness differences unresolved. The same caution applies to Terminal-Bench 4.1. Hydrogen's 57.0% comes from five attempts per task at &lt;code&gt;high&lt;/code&gt; effort. Neon's 65.2% comes from Artificial Analysis using Antigravity CLI. The 8.2-point gap combines changes to the model and the setup. &lt;a href="https://deepmind.google/models/model-cards/gemini-4-neon/" rel="noopener noreferrer"&gt;Neon model card&lt;/a&gt; · &lt;a href="https://deepmind.google/models/evals-methodology/gemini-4-neon/" rel="noopener noreferrer"&gt;Neon evaluation methodology&lt;/a&gt; · &lt;a href="https://deepmind.google/models/evals-methodology/gemini-4-hydrogen/" rel="noopener noreferrer"&gt;Hydrogen evaluation methodology&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Long tasks also test whether an agent can keep following the delivery requirements. Carbon scores &lt;strong&gt;77.4%&lt;/strong&gt; and Argon &lt;strong&gt;69.0%&lt;/strong&gt; on the same 122-task Agents' Last Exam v1.1 setup in the Carbon model card. Both use the default ALE-Claw harness and a five-hour window, and DeepMind reports mean rubric scores. An application test can add a correction mid-task. Change one requirement after the first draft, then check whether the final result preserves the requirements that still apply and whether the agent rechecks the affected work. This measures delivery against the current instructions as well as task completion. &lt;a href="https://deepmind.google/models/model-cards/gemini-4-carbon/" rel="noopener noreferrer"&gt;Carbon model card&lt;/a&gt; · &lt;a href="https://deepmind.google/models/evals-methodology/gemini-4-carbon/" rel="noopener noreferrer"&gt;Evaluation methodology&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Evidence tracking and multimodal understanding in a million tokens
&lt;/h2&gt;

&lt;p&gt;GraphWalks embeds relationships in long text and asks models to follow multiple links. The Carbon evaluation reports breadth-first traversal F1 over 200 problems across the 256k-to-1M-token range. Carbon and Argon score &lt;strong&gt;96.2% and 84.2%&lt;/strong&gt; in that table. Neon reports &lt;strong&gt;95.2%&lt;/strong&gt; on the corresponding slice in its own model card. Those figures inform judgments about tracking relationships through long inputs. Contracts, consolidated accounts, and code standards also contain conflicting or superseded evidence. An application evaluation should therefore measure whether the model found the right passage, whether it used the version that governs the decision, and which material exceptions it missed. &lt;a href="https://deepmind.google/models/evals-methodology/gemini-4-carbon/" rel="noopener noreferrer"&gt;Carbon evaluation methodology&lt;/a&gt; · &lt;a href="https://deepmind.google/models/model-cards/gemini-4-carbon/" rel="noopener noreferrer"&gt;Carbon model card&lt;/a&gt; · &lt;a href="https://deepmind.google/models/model-cards/gemini-4-neon/" rel="noopener noreferrer"&gt;Neon model card&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For example, build three questions over the same material. Ask for a clause and its page number, then ask which appendix the clause references, then ask whether a newer appendix supersedes it. Move the evidence to the beginning, middle, and end while keeping the question and answer fixed. Add distractors of matching length. Report citation precision, recall of material evidence, and final-answer accuracy. These metrics distinguish a wrong page, a wrong version, and a reasoning error after reading the correct source.&lt;/p&gt;

&lt;p&gt;For multimodal work, Chartography and LVBench illustrate the importance of input preparation. DeepMind reports &lt;strong&gt;73.5%&lt;/strong&gt; for Neon on Chartography and &lt;strong&gt;75.1%&lt;/strong&gt; for GPT-6.2 Sol in the same table. Neon scores &lt;strong&gt;89.0%&lt;/strong&gt; on LVBench. Gemini received low-resolution video at one frame per second, while Sol and Opus 5.5 had 500-frame and 600-frame inputs respectively due to API limitations. Video sampling and model choice should be held together in an application test. For an anomaly that lasts half a second, the sampling step may discard the evidence before the model can reason over it. For charts, grade the value, units, time range, and written conclusion independently. &lt;a href="https://deepmind.google/models/model-cards/gemini-4-neon/" rel="noopener noreferrer"&gt;Neon model card and results&lt;/a&gt; · &lt;a href="https://deepmind.google/models/evals-methodology/gemini-4-neon/" rel="noopener noreferrer"&gt;Multimodal evaluation methodology&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Measure cost per accepted result
&lt;/h2&gt;

&lt;p&gt;As of November 19, 2026, Google's standard Gemini API rates per million tokens are &lt;strong&gt;$1.50 input and $7.50 output&lt;/strong&gt; for Hydrogen, and &lt;strong&gt;$3 input and $15 output&lt;/strong&gt; for Neon. Argon and Carbon are &lt;strong&gt;$2 input and $10 output&lt;/strong&gt; during the introductory period, which Google says expires November 30, and &lt;strong&gt;$4 input and $20 output&lt;/strong&gt; afterward. On those per-token rates, Neon is 50% more expensive than either model during the introductory offer and 25% less expensive after it. These are direct Google API prices. Cache hits, billed reasoning output, tools, and retries affect the actual bill. &lt;a href="https://aistudio.google.com/docs/pricing" rel="noopener noreferrer"&gt;Google API pricing&lt;/a&gt; · &lt;a href="https://blog.google/innovation-and-ai/models-and-research/gemini-models/introducing-gemini-4-argon/" rel="noopener noreferrer"&gt;Argon introductory pricing&lt;/a&gt; · &lt;a href="https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-4-carbon-now-available/" rel="noopener noreferrer"&gt;Carbon introductory pricing&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For work with explicit acceptance criteria, divide the total cost of all attempts by the number of accepted results. Suppose two configurations each run 100 identical tasks. A spends $80 and passes 60, or about $1.33 per accepted task. B spends $110 and passes 90, or about $1.22 per accepted task. Pricing human review by the minute can widen or reverse the gap. Where errors have outsized effects, such as refunds, duplicate tool writes, or unattended execution, track severe failures separately and include timeouts, retries, and manual intervention in the total.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reproduce a comparison on your own tasks
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Freeze the workload and acceptance criteria first.&lt;/strong&gt; Grade code against behavior, compatibility, and scope. Grade research and knowledge work against factual evidence, correct inference, and completeness. Report rare severe errors separately.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use paired tasks.&lt;/strong&gt; Record the model ID, effort level, tool versions, input preparation, source access, stopping rules, and total budget. Run a separate comparison with each vendor's native tools when the agent product as a whole matters.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Measure both fixed budget and fixed quality.&lt;/strong&gt; The first answers how much work gets done within a budget. The second estimates the spend required to meet a target acceptance rate. Measure time to the first visible result and to completion, and record medians, P95, and failure causes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Account for uncertainty.&lt;/strong&gt; With a limited sample, estimate differences with a paired bootstrap by task, keeping repeated runs for the same task together. Freeze the task set before inspecting differences by difficulty, and reserve freshly collected failures for a future round.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Escalate on observed failure modes.&lt;/strong&gt; Start with Hydrogen for frequent steps with clear acceptance checks. Test Neon &lt;code&gt;high&lt;/code&gt; when one interaction must read sources, write code, and produce an artifact. Test Carbon where prolonged exploration or cross-module dependencies may drive rework. Keep existing Argon workflows as controls and compare regressions, completion time, and cost per accepted result.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For a cross-family comparison using the same coding leaderboard and additional reasoning evidence, see the companion analysis. &lt;a href="https://modelflare.dev/articles/gpt-6-2-astra-sol-deep-analysis" rel="noopener noreferrer"&gt;GPT-6.2 Astra and Sol deep analysis&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://modelflare.dev/articles/gemini-4-series-deep-analysis?utm_source=devto&amp;amp;utm_medium=syndication&amp;amp;utm_campaign=blog" rel="noopener noreferrer"&gt;modelflare.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I'm part of the Modelflare team, which builds the AI API gateway mentioned in this article.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>google</category>
      <category>api</category>
    </item>
    <item>
      <title>GPT-6.2 Astra vs. Sol: Benchmarks and API Pricing</title>
      <dc:creator>Magnus</dc:creator>
      <pubDate>Thu, 19 Nov 2026 01:33:45 +0000</pubDate>
      <link>https://dev.to/modelflare_dev/gpt-62-astra-vs-sol-benchmarks-and-api-pricing-2n8p</link>
      <guid>https://dev.to/modelflare_dev/gpt-62-astra-vs-sol-benchmarks-and-api-pricing-2n8p</guid>
      <description>&lt;p&gt;Explore GPT-6.2 Astra and Sol through coding and reasoning benchmarks, long-context and cache costs, and a breakdown of Modelflare prices by group.&lt;/p&gt;

&lt;p&gt;This syndication copy follows the Modelflare source article. Benchmark scores, harness notes and OpenAI list prices are attributed to the cited publishers (OpenAI, Cognition, Artificial Analysis, Epoch AI and ARC Prize). Modelflare prices are a dated public-catalog snapshot. Modelflare did not run its own independent benchmark of GPT-6.2 Astra or Sol for this article, and the workload examples use illustrative token counts and acceptance rates.&lt;/p&gt;

&lt;p&gt;OpenAI released GPT‑6.2 Astra and GPT‑6.2 Sol on November 17, 2026. Both have a 1.05 million token context window, but what the extra spend buys depends on the work. On Cognition’s FrontierCode 2.0, both pass &lt;strong&gt;48.2%&lt;/strong&gt; of tasks. Sol costs &lt;strong&gt;$1.29&lt;/strong&gt; per run against Astra’s &lt;strong&gt;$5.97&lt;/strong&gt;. In the standard ARC‑AGI‑3 harness, which asks models to explore interactive environments and build on previous turns, Astra leads by &lt;strong&gt;15.4 percentage points&lt;/strong&gt;. The decision for a development team is where to reserve the premium model and which tasks Sol can handle reliably. &lt;a href="https://openai.com/index/introducing-gpt-6-2-astra-sol/" rel="noopener noreferrer"&gt;OpenAI launch&lt;/a&gt; · &lt;a href="https://cognition.com/frontiercode" rel="noopener noreferrer"&gt;Cognition FrontierCode&lt;/a&gt; · &lt;a href="https://arcprize.org/results/openai-gpt-6-2-astra" rel="noopener noreferrer"&gt;ARC Prize Astra results&lt;/a&gt; · &lt;a href="https://arcprize.org/results/openai-gpt-6-2-sol" rel="noopener noreferrer"&gt;ARC Prize Sol results&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Capabilities and specifications
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Specification&lt;/th&gt;
&lt;th&gt;GPT‑6.2 Astra&lt;/th&gt;
&lt;th&gt;GPT‑6.2 Sol&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;API model ID&lt;/td&gt;
&lt;td&gt;&lt;code&gt;gpt-6.2-astra&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;gpt-6.2-sol&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Workload&lt;/td&gt;
&lt;td&gt;Difficult reasoning, multistep professional work, complex code changes&lt;/td&gt;
&lt;td&gt;Everyday coding, document work, agents at scale&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Context window&lt;/td&gt;
&lt;td&gt;1,050,000 tokens&lt;/td&gt;
&lt;td&gt;1,050,000 tokens&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Maximum input / output&lt;/td&gt;
&lt;td&gt;922,000 / 128,000 tokens&lt;/td&gt;
&lt;td&gt;922,000 / 128,000 tokens&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Modalities&lt;/td&gt;
&lt;td&gt;Text and image in, text out&lt;/td&gt;
&lt;td&gt;Text and image in, text out&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Knowledge cutoff&lt;/td&gt;
&lt;td&gt;May 18, 2026&lt;/td&gt;
&lt;td&gt;June 1, 2026&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;API endpoints&lt;/td&gt;
&lt;td&gt;Responses, Chat Completions, Batch&lt;/td&gt;
&lt;td&gt;Responses, Chat Completions, Batch&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reasoning effort&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;low&lt;/code&gt;, &lt;code&gt;medium&lt;/code&gt;, &lt;code&gt;high&lt;/code&gt;, &lt;code&gt;xhigh&lt;/code&gt;, &lt;code&gt;max&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;low&lt;/code&gt;, &lt;code&gt;medium&lt;/code&gt;, &lt;code&gt;high&lt;/code&gt;, &lt;code&gt;xhigh&lt;/code&gt;, &lt;code&gt;max&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Both models support streaming and structured outputs. Tool calling in the official API requires Responses. Image input lets the model interpret a screenshot or chart, and image creation is available as a separate Responses tool. OpenAI suggests starting at &lt;code&gt;medium&lt;/code&gt; for new integrations or at &lt;code&gt;low&lt;/code&gt; when moving from &lt;code&gt;none&lt;/code&gt; or &lt;code&gt;minimal&lt;/code&gt;. Budget enough output for reasoning tokens as well as the final text, especially for long reports, patches or structured results. &lt;a href="https://developers.openai.com/api/docs/models/gpt-6.2-astra" rel="noopener noreferrer"&gt;Astra model documentation&lt;/a&gt; · &lt;a href="https://developers.openai.com/api/docs/models/gpt-6.2-sol" rel="noopener noreferrer"&gt;Sol model documentation&lt;/a&gt; · &lt;a href="https://developers.openai.com/api/docs/guides/latest-model?model=gpt-6.2-astra" rel="noopener noreferrer"&gt;GPT‑6.2 migration guide&lt;/a&gt; · &lt;a href="https://developers.openai.com/api/docs/guides/reasoning" rel="noopener noreferrer"&gt;Reasoning token documentation&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Sol suits changes with a clear brief, a known boundary and a way to validate the result. Astra warrants a closer look for projects with dependencies across components, conflicting requirements or research that requires multiple passes through the evidence. Adding a well-defined metric to an existing report is a reasonable Sol task. Migrating the entire reporting definition and tracking implicit dependencies on the old metric is a better case for measuring whether Astra can save rework.&lt;/p&gt;

&lt;p&gt;A 922,000-token input limit gives you room to assemble a substantial record. To measure how well the model uses it, ask for primary citations, include conflicting versions of a document, and check whether the model accounts for effective dates and exceptions. For a code agent, inspect which entry points it read, which existing behaviors it preserved and whether its tests exercise the relevant outcome.&lt;/p&gt;

&lt;h2&gt;
  
  
  Benchmarks across code, research and abstract reasoning
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Mergeable patches and repository questions
&lt;/h3&gt;

&lt;p&gt;Cognition’s FrontierCode 2.0 evaluates changes to real repositories. Its leaderboard reports both a weighted rubric score and a pass rate, plus the average API cost of one rollout. The harness and effort settings are part of each result. &lt;a href="https://cognition.com/frontiercode" rel="noopener noreferrer"&gt;Cognition leaderboard and methodology&lt;/a&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;Harness / effort&lt;/th&gt;
&lt;th&gt;Weighted score&lt;/th&gt;
&lt;th&gt;Pass rate&lt;/th&gt;
&lt;th&gt;Cost per rollout&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Claude Fable 5.2&lt;/td&gt;
&lt;td&gt;Claude Code / xhigh&lt;/td&gt;
&lt;td&gt;50.2%&lt;/td&gt;
&lt;td&gt;54.7%&lt;/td&gt;
&lt;td&gt;$17.73&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Opus 5.5&lt;/td&gt;
&lt;td&gt;Claude Code / max&lt;/td&gt;
&lt;td&gt;47.3%&lt;/td&gt;
&lt;td&gt;51.8%&lt;/td&gt;
&lt;td&gt;$12.82&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GPT‑6.2 Astra&lt;/td&gt;
&lt;td&gt;Codex / max&lt;/td&gt;
&lt;td&gt;44.2%&lt;/td&gt;
&lt;td&gt;48.2%&lt;/td&gt;
&lt;td&gt;$5.97&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GPT‑6 Astra&lt;/td&gt;
&lt;td&gt;Codex / max&lt;/td&gt;
&lt;td&gt;44.0%&lt;/td&gt;
&lt;td&gt;47.6%&lt;/td&gt;
&lt;td&gt;$6.68&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GPT‑6.2 Sol&lt;/td&gt;
&lt;td&gt;Codex / max&lt;/td&gt;
&lt;td&gt;43.8%&lt;/td&gt;
&lt;td&gt;48.2%&lt;/td&gt;
&lt;td&gt;$1.29&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GPT‑6.1 Sol&lt;/td&gt;
&lt;td&gt;Codex / max&lt;/td&gt;
&lt;td&gt;39.6%&lt;/td&gt;
&lt;td&gt;43.0%&lt;/td&gt;
&lt;td&gt;$1.03&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;In the same Codex setup, Sol 6.2 gains &lt;strong&gt;4.2 percentage points&lt;/strong&gt; over Sol 6.1 while cost per run rises from $1.03 to $1.29. Equal list prices can yield different bills when the amount and composition of input, cached and output tokens change. Sol costs about &lt;strong&gt;22%&lt;/strong&gt; as much as Astra 6.2 on this benchmark. That makes it a sensible first candidate for bounded implementation work with automated acceptance checks. The Claude rows measure a different model and harness together, so portability to another agent requires its own measurement. &lt;a href="https://cognition.com/frontiercode" rel="noopener noreferrer"&gt;Cognition FrontierCode&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Artificial Analysis reported launch Intelligence Index scores of &lt;strong&gt;62&lt;/strong&gt; for Astra and &lt;strong&gt;57&lt;/strong&gt; for Sol, up 5 and 2 points from their predecessors. Its separate Coding Agent Index, using Codex at max effort, had Astra flat and Sol &lt;strong&gt;3 points lower&lt;/strong&gt; than 6.1 Sol. A &lt;strong&gt;14-point&lt;/strong&gt; drop on SWE‑Atlas‑QnA‑AA drove Sol’s result. Artificial Analysis observed that the newer model was more likely to omit key facts in repository questions. Track implementation and repository comprehension separately if your team uses one agent to do both. &lt;a href="https://artificialanalysis.ai/articles/openai-has-the-2-model-in-the-intelligence-index-with-the-release-of-gpt-6-2-astra-and-gpt-6-2-sol" rel="noopener noreferrer"&gt;Artificial Analysis launch evaluation&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Multistep work and the limits of open-ended judgment
&lt;/h3&gt;

&lt;p&gt;OpenAI reports that Astra gains &lt;strong&gt;5.2 percentage points&lt;/strong&gt; over the original GPT‑6 Astra on Agents’ Last Exam, a professional-task benchmark, and about &lt;strong&gt;9 points&lt;/strong&gt; on Terminal‑Bench‑Science 0.1. OpenAI reports less than one-third of the previous generation’s cost on each benchmark. Interpret the comparisons with the original configurations attached. For example, OpenAI’s footnote identifies different execution harnesses for reported Claude Fable 5.2 results on Terminal‑Bench‑Science. &lt;a href="https://openai.com/index/introducing-gpt-6-2-astra-sol/" rel="noopener noreferrer"&gt;OpenAI launch evaluation&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;On OpenAI’s internal GDPval v2 knowledge-work benchmark, Astra gains &lt;strong&gt;6.2 percentage points&lt;/strong&gt; over its predecessor with &lt;strong&gt;22% fewer output tokens&lt;/strong&gt;. Sol gains &lt;strong&gt;5.3 points&lt;/strong&gt; over 6.1. Artificial Analysis’s AA‑3D instead has judges try two blinded interactive experiences generated from the same prompt and vote for one. Astra scores &lt;strong&gt;1,318 Elo&lt;/strong&gt;, Fable 5.2 &lt;strong&gt;1,271&lt;/strong&gt;, and Sol &lt;strong&gt;1,259&lt;/strong&gt;. These tests give different information about whether a deliverable meets its brief and what it feels like to use. For a financial workbook, for example, you can require both correct answers about the data and formulas that reference the right cells. &lt;a href="https://openai.com/index/introducing-gpt-6-2-astra-sol/#professional-outputs-that-match-industry-standards" rel="noopener noreferrer"&gt;OpenAI GDPval v2&lt;/a&gt; · &lt;a href="https://artificialanalysis.ai/articles/openai-has-the-2-model-in-the-intelligence-index-with-the-release-of-gpt-6-2-astra-and-gpt-6-2-sol" rel="noopener noreferrer"&gt;Artificial Analysis AA‑3D&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Epoch AI gives Astra 6.2 and Claude Fable 5.2 an Epoch Capabilities Index estimate of &lt;strong&gt;174&lt;/strong&gt;, with intervals of 170–179 and 170–177 respectively. In a separate small, manually graded evaluation of work inside Epoch, Astra averaged &lt;strong&gt;65%&lt;/strong&gt;, &lt;strong&gt;17 percentage points&lt;/strong&gt; below Fable. Graders assessed the choice of research question, quality of evidence, iteration and whether readers would understand the findings. For market research or internal decision documents, those criteria can go directly into the acceptance rubric, along with human editing time in the cost calculation. &lt;a href="https://epoch.ai/eci?eciPreset=math" rel="noopener noreferrer"&gt;Epoch Capabilities Index&lt;/a&gt; · &lt;a href="https://epoch.ai/publications/how-good-are-fable-5-2-and-gpt-6-2-astra-at-real-work" rel="noopener noreferrer"&gt;Epoch evaluation of real work&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  ARC‑AGI and the effect of state across turns
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Verified ARC Prize evaluation&lt;/th&gt;
&lt;th&gt;GPT‑6.2 Astra&lt;/th&gt;
&lt;th&gt;GPT‑6.2 Sol&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ARC‑AGI‑2, semi-private set, max&lt;/td&gt;
&lt;td&gt;95.8%&lt;/td&gt;
&lt;td&gt;85.8%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ARC‑AGI‑3, Standard harness, max&lt;/td&gt;
&lt;td&gt;70.3%&lt;/td&gt;
&lt;td&gt;54.9%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ARC‑AGI‑3, Provider Adapter, max&lt;/td&gt;
&lt;td&gt;99.8%&lt;/td&gt;
&lt;td&gt;98.2%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ARC‑AGI‑3, Provider Adapter, xhigh&lt;/td&gt;
&lt;td&gt;100.0%&lt;/td&gt;
&lt;td&gt;97.4%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;ARC‑AGI‑2 measures rule induction from examples. Version 3 adds interactive environments. The Standard harness carries notes the model chooses to keep. The Provider Adapter also preserves opaque reasoning state and compacts longer conversations. Astra’s &lt;strong&gt;100%&lt;/strong&gt; is its &lt;code&gt;xhigh&lt;/code&gt; result with the adapter. ARC Prize reports incomplete task or game coverage on some Sol runs and uses the full dataset denominators for the published scores. In your own multi-turn agent, include tool-result replay, interruption recovery and context compaction in the evaluation. Those can all change when you change client or server-side state handling. &lt;a href="https://arcprize.org/results/openai-gpt-6-2-astra" rel="noopener noreferrer"&gt;ARC Prize Astra results&lt;/a&gt; · &lt;a href="https://arcprize.org/results/openai-gpt-6-2-sol" rel="noopener noreferrer"&gt;ARC Prize Sol results and coverage notes&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  OpenAI list prices, caching and the long-context threshold
&lt;/h2&gt;

&lt;p&gt;These are &lt;strong&gt;USD per million tokens&lt;/strong&gt; at the official Standard rate. Cache writes are for 30-minute retention.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;Request input&lt;/th&gt;
&lt;th&gt;Uncached input&lt;/th&gt;
&lt;th&gt;Cache read&lt;/th&gt;
&lt;th&gt;Cache write&lt;/th&gt;
&lt;th&gt;Output&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;GPT‑6.2 Astra&lt;/td&gt;
&lt;td&gt;≤272,000&lt;/td&gt;
&lt;td&gt;$8&lt;/td&gt;
&lt;td&gt;$0.40&lt;/td&gt;
&lt;td&gt;$10&lt;/td&gt;
&lt;td&gt;$40&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GPT‑6.2 Astra&lt;/td&gt;
&lt;td&gt;&amp;gt;272,000&lt;/td&gt;
&lt;td&gt;$16&lt;/td&gt;
&lt;td&gt;$0.80&lt;/td&gt;
&lt;td&gt;$20&lt;/td&gt;
&lt;td&gt;$60&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GPT‑6.2 Sol&lt;/td&gt;
&lt;td&gt;≤272,000&lt;/td&gt;
&lt;td&gt;$2&lt;/td&gt;
&lt;td&gt;$0.10&lt;/td&gt;
&lt;td&gt;$2.50&lt;/td&gt;
&lt;td&gt;$10&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GPT‑6.2 Sol&lt;/td&gt;
&lt;td&gt;&amp;gt;272,000&lt;/td&gt;
&lt;td&gt;$4&lt;/td&gt;
&lt;td&gt;$0.20&lt;/td&gt;
&lt;td&gt;$5&lt;/td&gt;
&lt;td&gt;$15&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Astra costs &lt;strong&gt;20% less&lt;/strong&gt; than the original Astra for uncached input, 30-minute cache writes and output. Cache reads fall from $1 to $0.40, a &lt;strong&gt;60%&lt;/strong&gt; reduction. Sol inherits the corresponding list prices of 6.1 Sol, and Astra’s 6.2 token rates are &lt;strong&gt;four times&lt;/strong&gt; Sol’s within either context tier. For short context, the 12-hour cache write rate is $20 for Astra and $5 for Sol. OpenAI also offers Batch at 0.5× Standard, Fast at 2× and Ultrafast at 3× through February 28, 2027, rising to 6× on March 1 Pacific time. Two-hour and eight-hour background completion windows in the Responses public beta have model token rates 30% and 40% below Standard respectively. Those terms apply to OpenAI’s direct API. &lt;a href="https://developers.openai.com/api/docs/models/gpt-6.2-astra" rel="noopener noreferrer"&gt;Astra prices&lt;/a&gt; · &lt;a href="https://developers.openai.com/api/docs/models/gpt-6.2-sol" rel="noopener noreferrer"&gt;Sol prices&lt;/a&gt; · &lt;a href="https://developers.openai.com/api/docs/models/gpt-6-astra" rel="noopener noreferrer"&gt;Original Astra prices&lt;/a&gt; · &lt;a href="https://developers.openai.com/api/docs/changelog" rel="noopener noreferrer"&gt;OpenAI API changelog&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;272,000 is a threshold for the full request.&lt;/strong&gt; From 272,001 input tokens, input and cache rates double and output costs 1.5 times the short-context rate. With no cache activity and 8,000 billable output tokens, Astra goes from &lt;strong&gt;$2.496&lt;/strong&gt; at 272,000 input tokens to about &lt;strong&gt;$4.832&lt;/strong&gt; one token later. An agent that appends every tool log can cross this boundary early in a workflow. Track the distribution of input length, the share of requests that cross the boundary and the volume of cache reads. &lt;a href="https://developers.openai.com/api/docs/models/gpt-6.2-astra" rel="noopener noreferrer"&gt;Astra pricing rules&lt;/a&gt; · &lt;a href="https://developers.openai.com/api/docs/models/gpt-6.2-sol" rel="noopener noreferrer"&gt;Sol pricing rules&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Consider 100,000 input tokens and 8,000 billable output tokens. Astra costs &lt;strong&gt;$1.12&lt;/strong&gt; and Sol &lt;strong&gt;$0.28&lt;/strong&gt; without cache activity. If 80,000 input tokens are cache reads and 20,000 are uncached, the totals fall to &lt;strong&gt;$0.512&lt;/strong&gt; and &lt;strong&gt;$0.128&lt;/strong&gt;. If those 80,000 tokens are written to a 30-minute cache on the first call, the totals become &lt;strong&gt;$1.28&lt;/strong&gt; and &lt;strong&gt;$0.32&lt;/strong&gt;. For a full workflow budget, include the initial write, reuse of the prefix, cache hit rate and billable reasoning output. Looking only at the final warm-cache call understates costs across the workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  Modelflare prices for Astra, Sol and earlier GPT models
&lt;/h2&gt;

&lt;p&gt;Modelflare’s public pricing API listed both &lt;code&gt;gpt-6.2-astra&lt;/code&gt; and &lt;code&gt;gpt-6.2-sol&lt;/code&gt; on November 18, 2026. Both have short and long context tiers and use the rates of the selected group. Each cell shows &lt;strong&gt;uncached input / cache read / cache write / output&lt;/strong&gt;, in &lt;strong&gt;USD per million tokens&lt;/strong&gt;. &lt;a href="https://modelflare.dev/pricing/gpt-6.2-astra" rel="noopener noreferrer"&gt;Modelflare Astra pricing&lt;/a&gt; · &lt;a href="https://modelflare.dev/pricing/gpt-6.2-sol" rel="noopener noreferrer"&gt;Modelflare Sol pricing&lt;/a&gt; · &lt;a href="https://modelflare.dev/api/pricing" rel="noopener noreferrer"&gt;Public pricing API&lt;/a&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Group&lt;/th&gt;
&lt;th&gt;Astra ≤272K&lt;/th&gt;
&lt;th&gt;Astra &amp;gt;272K&lt;/th&gt;
&lt;th&gt;Sol ≤272K&lt;/th&gt;
&lt;th&gt;Sol &amp;gt;272K&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;openai-award&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;0.24 / 0.012 / 0.30 / 1.20&lt;/td&gt;
&lt;td&gt;0.48 / 0.024 / 0.60 / 1.80&lt;/td&gt;
&lt;td&gt;0.06 / 0.003 / 0.075 / 0.30&lt;/td&gt;
&lt;td&gt;0.12 / 0.006 / 0.15 / 0.45&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;openai-stable&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;0.64 / 0.032 / 0.80 / 3.20&lt;/td&gt;
&lt;td&gt;1.28 / 0.064 / 1.60 / 4.80&lt;/td&gt;
&lt;td&gt;0.16 / 0.008 / 0.20 / 0.80&lt;/td&gt;
&lt;td&gt;0.32 / 0.016 / 0.40 / 1.20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;openai-premium&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;1.04 / 0.052 / 1.30 / 5.20&lt;/td&gt;
&lt;td&gt;2.08 / 0.104 / 2.60 / 7.80&lt;/td&gt;
&lt;td&gt;0.26 / 0.013 / 0.325 / 1.30&lt;/td&gt;
&lt;td&gt;0.52 / 0.026 / 0.65 / 1.95&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;openai-enterprise&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;4.00 / 0.20 / 5.00 / 20.00&lt;/td&gt;
&lt;td&gt;8.00 / 0.40 / 10.00 / 30.00&lt;/td&gt;
&lt;td&gt;1.00 / 0.05 / 1.25 / 5.00&lt;/td&gt;
&lt;td&gt;2.00 / 0.10 / 2.50 / 7.50&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;openai-first-topup&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;0.12 / 0.006 / 0.15 / 0.60&lt;/td&gt;
&lt;td&gt;0.24 / 0.012 / 0.30 / 0.90&lt;/td&gt;
&lt;td&gt;0.03 / 0.0015 / 0.0375 / 0.15&lt;/td&gt;
&lt;td&gt;0.06 / 0.003 / 0.075 / 0.225&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Award, Stable and Premium apply 3%, 8% and 13% of catalog base rates respectively. Enterprise is available to authorized customers at 50%. The top-up group applies a 1.5% rate and a 10 RPM limit. Its public eligibility rule calls for a single qualifying top-up of at least $20, and account eligibility determines access. The published rules for these two model entries list no request-level surcharge. Check the live catalog and the model and group shown in your usage record for the applicable rate. &lt;a href="https://modelflare.dev/pricing" rel="noopener noreferrer"&gt;Modelflare model and group pricing&lt;/a&gt; · &lt;a href="https://modelflare.dev/api/pricing" rel="noopener noreferrer"&gt;Public pricing API&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here is the same snapshot for other GPT generations at the short-context &lt;code&gt;openai-stable&lt;/code&gt; rate, also in USD per million tokens.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;Uncached input&lt;/th&gt;
&lt;th&gt;Cache read&lt;/th&gt;
&lt;th&gt;Cache write&lt;/th&gt;
&lt;th&gt;Output&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;gpt-6-astra&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;0.80&lt;/td&gt;
&lt;td&gt;0.08&lt;/td&gt;
&lt;td&gt;1.00&lt;/td&gt;
&lt;td&gt;4.00&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;gpt-6.2-astra&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;0.64&lt;/td&gt;
&lt;td&gt;0.032&lt;/td&gt;
&lt;td&gt;0.80&lt;/td&gt;
&lt;td&gt;3.20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;gpt-6.1-sol&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;0.16&lt;/td&gt;
&lt;td&gt;0.008&lt;/td&gt;
&lt;td&gt;0.20&lt;/td&gt;
&lt;td&gt;0.80&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;gpt-6.2-sol&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;0.16&lt;/td&gt;
&lt;td&gt;0.008&lt;/td&gt;
&lt;td&gt;0.20&lt;/td&gt;
&lt;td&gt;0.80&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;gpt-6.1-terra&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;0.08&lt;/td&gt;
&lt;td&gt;0.004&lt;/td&gt;
&lt;td&gt;0.10&lt;/td&gt;
&lt;td&gt;0.40&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;gpt-6-luna&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;0.02&lt;/td&gt;
&lt;td&gt;0.002&lt;/td&gt;
&lt;td&gt;0.025&lt;/td&gt;
&lt;td&gt;0.10&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Existing Sol users can compare success rates, elapsed time and actual tokens because 6.1 and 6.2 have the same short and long unit prices within a group. Terra and Luna give teams cheaper baselines for classification, extraction and predictable templates. Under Stable pricing, the 80,000-token cache hit example above comes to &lt;strong&gt;$0.04096 for Astra&lt;/strong&gt; and &lt;strong&gt;$0.01024 for Sol&lt;/strong&gt; in model token charges. Confirm service tier, background-window and tool charges separately for the endpoint you use. &lt;a href="https://modelflare.dev/api/pricing" rel="noopener noreferrer"&gt;Modelflare public pricing API&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Price per accepted task
&lt;/h2&gt;

&lt;p&gt;Split evaluation samples into mergeable patches, repository questions, long-document work and multistep deliverables. Keep the input version, tool permissions and stopping rules consistent. Start with Sol 6.2 at &lt;code&gt;medium&lt;/code&gt;, then compare Sol at &lt;code&gt;high&lt;/code&gt;, Astra at &lt;code&gt;medium&lt;/code&gt; or your current Sol version. Measure recall of important facts, human corrections, full task latency and whether interrupted runs can still deliver. For tool-heavy workflows, capture time to the first visible token, first tool action and final deliverable separately.&lt;/p&gt;

&lt;p&gt;Divide total spend by the tasks that pass acceptance. Include failed runs, escalation, tool charges and reviewer time. In a hypothetical example, 100 initial Sol runs cost $0.10 each and 80 pass. The remaining 20 go to Astra at $0.40 each and 16 pass. That is &lt;strong&gt;$18 / 96 = $0.1875&lt;/strong&gt; per accepted task. Sending all 100 to Astra, assuming 95 pass, gives &lt;strong&gt;$40 / 95 ≈ $0.421&lt;/strong&gt;. Estimate the second model’s success on the actual subset that failed. Models can struggle on the same cases, and the aggregate leaderboard cannot tell you how often an escalation will recover one.&lt;/p&gt;

&lt;p&gt;There is also a concrete caching change to account for when migrating. GPT‑6.2’s Responses API places top-level &lt;code&gt;instructions&lt;/code&gt; after &lt;code&gt;input&lt;/code&gt;. OpenAI recommends putting stable instructions in a &lt;code&gt;developer&lt;/code&gt; message at the start of &lt;code&gt;input&lt;/code&gt; so they can be part of the reusable prefix. Keep request-specific guidance in the top-level field. For tool workflows, use Responses and check old sampling or logprob fields, output budgets and incomplete-response handling. Use the resulting usage data to confirm the cache actually behaves as expected. &lt;a href="https://developers.openai.com/api/docs/guides/latest-model?model=gpt-6.2-astra" rel="noopener noreferrer"&gt;OpenAI GPT‑6.2 migration guide&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Sol 6.2 is a strong first candidate for routine coding and high-volume agents. For difficult work with a small number of expensive failures, add Astra to the comparison and judge its premium by results that pass review. This article uses published evaluations and dated price observations. The workload examples use illustrative token counts and acceptance rates.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources and update record
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://openai.com/index/introducing-gpt-6-2-astra-sol/" rel="noopener noreferrer"&gt;OpenAI: Introducing GPT-6.2 Astra and Sol&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developers.openai.com/api/docs/models/gpt-6.2-astra" rel="noopener noreferrer"&gt;OpenAI GPT-6.2 Astra model docs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developers.openai.com/api/docs/models/gpt-6.2-sol" rel="noopener noreferrer"&gt;OpenAI GPT-6.2 Sol model docs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developers.openai.com/api/docs/guides/latest-model?model=gpt-6.2-astra" rel="noopener noreferrer"&gt;OpenAI GPT-6.2 migration / latest-model guide&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developers.openai.com/api/docs/guides/reasoning" rel="noopener noreferrer"&gt;OpenAI reasoning documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developers.openai.com/api/docs/changelog" rel="noopener noreferrer"&gt;OpenAI API changelog&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cognition.com/frontiercode" rel="noopener noreferrer"&gt;Cognition FrontierCode&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://artificialanalysis.ai/articles/openai-has-the-2-model-in-the-intelligence-index-with-the-release-of-gpt-6-2-astra-and-gpt-6-2-sol" rel="noopener noreferrer"&gt;Artificial Analysis launch evaluation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://epoch.ai/eci?eciPreset=math" rel="noopener noreferrer"&gt;Epoch Capabilities Index&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://epoch.ai/publications/how-good-are-fable-5-2-and-gpt-6-2-astra-at-real-work" rel="noopener noreferrer"&gt;Epoch evaluation of real work&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://arcprize.org/results/openai-gpt-6-2-astra" rel="noopener noreferrer"&gt;ARC Prize Astra results&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://arcprize.org/results/openai-gpt-6-2-sol" rel="noopener noreferrer"&gt;ARC Prize Sol results&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://modelflare.dev/pricing/gpt-6.2-astra" rel="noopener noreferrer"&gt;Modelflare Astra pricing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://modelflare.dev/pricing/gpt-6.2-sol" rel="noopener noreferrer"&gt;Modelflare Sol pricing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://modelflare.dev/api/pricing" rel="noopener noreferrer"&gt;Modelflare public pricing API&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Update record:&lt;/strong&gt; November 18, 2026 source publication on modelflare.dev. Syndication prepared November 19, 2026 (Asia/Shanghai) from the live article. Values above are as published on the linked pages and Modelflare catalog snapshot cited in the source; re-check before production routing.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://modelflare.dev/articles/gpt-6-2-astra-sol-deep-analysis?utm_source=devto&amp;amp;utm_medium=syndication&amp;amp;utm_campaign=blog" rel="noopener noreferrer"&gt;modelflare.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I'm part of the Modelflare team, which builds the AI API gateway mentioned in this article.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>openai</category>
      <category>api</category>
    </item>
    <item>
      <title>Measure LLM Cost per Successful Task</title>
      <dc:creator>Magnus</dc:creator>
      <pubDate>Tue, 17 Nov 2026 02:09:41 +0000</pubDate>
      <link>https://dev.to/modelflare_dev/measure-llm-cost-per-successful-task-4e36</link>
      <guid>https://dev.to/modelflare_dev/measure-llm-cost-per-successful-task-4e36</guid>
      <description>&lt;p&gt;Measure LLM Cost per Successful Task: a production guide with an explicit decision, reusable artifact, failure tests, operating signals, and source-qualified limits.&lt;/p&gt;

&lt;h2&gt;
  
  
  The decision metric
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Measure LLM Cost per Successful Task&lt;/strong&gt; should be implemented as a FinOps contract, not as a one-off configuration. Freeze the protocol, ownership, evidence, and rollback condition before traffic moves. The concrete control points in this guide are &lt;code&gt;successful_task_definition&lt;/code&gt;, &lt;code&gt;fully_loaded_cost&lt;/code&gt;, &lt;code&gt;eligible_denominator&lt;/code&gt;, &lt;code&gt;cohort_version&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Measure cost per successful task only after defining “task” and “success” for one workload and cohort. Reconcile every attempt into a fully loaded task cost, keep failures and cancellations visible, and freeze the denominator before viewing the outcome. Token price per request is an input; it is not the business unit metric.&lt;/p&gt;

&lt;h2&gt;
  
  
  Freeze scope before calculating
&lt;/h2&gt;

&lt;p&gt;Separate the reader-facing task from the control-plane work behind it. Client setup owns the local file or environment variable; the gateway owns authentication, routing, limits, accounting, and attempt records; the provider owns its native protocol and volatile capability contract. A passing text prompt proves only that one path worked once.&lt;/p&gt;

&lt;p&gt;FinOps evidence joins engineering usage with business ownership. Keep the currency, price basis, allocation rule, task definition, cohort, and time window versioned. A dashboard is a view; the durable usage and settlement records are the source for reconciliation.&lt;/p&gt;

&lt;p&gt;The owner record for this page is &lt;code&gt;llm-cost-per-successful-task&lt;/code&gt;; its frozen controls are &lt;code&gt;successful_task_definition&lt;/code&gt;, &lt;code&gt;fully_loaded_cost&lt;/code&gt;, &lt;code&gt;eligible_denominator&lt;/code&gt;, &lt;code&gt;cohort_version&lt;/code&gt;. Every value is reviewed at the wire or durable-state boundary and never inferred from a marketing label.&lt;/p&gt;

&lt;h2&gt;
  
  
  FinOps evidence record: Measure LLM Cost per Successful Task
&lt;/h2&gt;

&lt;p&gt;Use the following review record as the deployable artifact. Technical values are intentionally explicit so a reviewer can compare configuration, wire evidence, and durable state without relying on a screenshot or a successful-looking outer response.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Control point&lt;/th&gt;
&lt;th&gt;Fixed decision&lt;/th&gt;
&lt;th&gt;Evidence to retain&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;task_identity&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;one_business_task_can_join_multiple_attempts&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;task_id + request_ids + attempt_ids&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;success_rule&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;versioned_workload_specific_outcome&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;success_policy_version + terminal_business_state&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;eligible_denominator&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;defined_before_measurement_window&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;cohort_filter + exclusions + window_bounds&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;cost_scope&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;all_attributable_attempt_and_platform_cost&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;provider_charge + gateway_charge + tool_cost + shared_allocation&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;failed_cost&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;retained_not_deleted&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;failed_task_cost + failure_class + retry_count&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;unit_metric&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;total_eligible_cost_divided_by_successful_tasks&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;numerator + denominator + calculation_version&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Reproducible calculation or record
&lt;/h2&gt;

&lt;p&gt;The example uses placeholders and deterministic inputs. Replace identifiers with reviewed values, never with credentials or customer content. Preserve the exact configuration snapshot alongside the probe result.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;eligible_tasks = tasks_matching(frozen_cohort)
successful_tasks = count(eligible_tasks where success_policy_v3 == true)

fully_loaded_cost =
  provider_attempt_cost
  + gateway_and_tool_cost
  + reviewed_shared_allocation

cost_per_successful_task =
  sum(fully_loaded_cost for eligible_tasks) / successful_tasks
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Reconcile inputs before interpreting
&lt;/h2&gt;

&lt;p&gt;Run the ladder in order. A later check cannot compensate for a missing earlier boundary, and every attempt must remain attributable to one logical request.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Freeze the current client, gateway policy, model alias, route set, and observable baseline. Evidence record for &lt;code&gt;task_identity&lt;/code&gt;: enforce &lt;code&gt;one_business_task_can_join_multiple_attempts&lt;/code&gt; and retain &lt;code&gt;task_id + request_ids + attempt_ids&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Run one deterministic positive probe and capture the client-visible response, request ID, selected route, terminal state, and usage. Evidence record for &lt;code&gt;success_rule&lt;/code&gt;: enforce &lt;code&gt;versioned_workload_specific_outcome&lt;/code&gt; and retain &lt;code&gt;success_policy_version + terminal_business_state&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Run the paired negative, limit, or disconnect case and verify that it fails in the intended layer. Evidence record for &lt;code&gt;eligible_denominator&lt;/code&gt;: enforce &lt;code&gt;defined_before_measurement_window&lt;/code&gt; and retain &lt;code&gt;cohort_filter + exclusions + window_bounds&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Repeat the probe through the actual protocol surface; do not infer native support from a neighboring compatibility endpoint. Evidence record for &lt;code&gt;cost_scope&lt;/code&gt;: enforce &lt;code&gt;all_attributable_attempt_and_platform_cost&lt;/code&gt; and retain &lt;code&gt;provider_charge + gateway_charge + tool_cost + shared_allocation&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Roll out to a bounded cohort with an explicit owner, expiry time, stop threshold, and prepared rollback. Evidence record for &lt;code&gt;failed_cost&lt;/code&gt;: enforce &lt;code&gt;retained_not_deleted&lt;/code&gt; and retain &lt;code&gt;failed_task_cost + failure_class + retry_count&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Re-read durable configuration and accounting after the test, then remove temporary access or test data. Evidence record for &lt;code&gt;unit_metric&lt;/code&gt;: enforce &lt;code&gt;total_eligible_cost_divided_by_successful_tasks&lt;/code&gt; and retain &lt;code&gt;numerator + denominator + calculation_version&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Accounting shortcuts that distort the result
&lt;/h2&gt;

&lt;p&gt;Treat each item below as a release blocker. A 200 response, attractive dashboard, or single successful demo does not override these failure conditions.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;request_as_task&lt;/code&gt;&lt;/strong&gt; — A user task may span retries, tools, or multiple model calls, so request-level cost can understate the outcome cost.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;success_after_outcome&lt;/code&gt;&lt;/strong&gt; — Changing the success rule after seeing results makes trend comparisons and experiments invalid.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;failed_cost_erasure&lt;/code&gt;&lt;/strong&gt; — Dropping failed attempts makes unreliable routes look artificially cheap.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;mixed_cohorts&lt;/code&gt;&lt;/strong&gt; — Combining different languages, workloads, model policies, or quality bars can hide the actual cost driver.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Review signals and decision thresholds
&lt;/h2&gt;

&lt;p&gt;Monitor success and harm together. The threshold is a policy input, not a universal benchmark; choose it from the workload SLO and record the denominator before the observation window begins.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Signal&lt;/th&gt;
&lt;th&gt;Decision threshold&lt;/th&gt;
&lt;th&gt;Action&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;task_join_coverage&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;100%&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;repair_identity_before_reporting&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;unallocated_cost_ratio&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;=_reviewed_shared_cost_limit&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;label_unallocated_and_hold_chargeback&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;success_policy_version_coverage&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;100%&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;exclude_unversioned_rows&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;cost_per_successful_task_change&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;investigate_against_frozen_baseline&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;segment_by_cost_and_success_driver&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Modelflare boundary and limitations
&lt;/h2&gt;

&lt;p&gt;Modelflare can centralize OpenAI-compatible and native-protocol routing, scoped keys, groups, usage records, and failure handling. A configured channel is not proof that every optional field, model alias, retention promise, region, or fallback is supported. Verify the selected route with its native protocol, preserve explicit zero values, and use the final durable settlement as billing truth.&lt;/p&gt;

&lt;p&gt;This metric is most useful as a trend for the same defined workload, not a universal vendor ranking. Rising unit cost can still be rational when task quality, risk reduction, or business value rises. Report the numerator, denominator, failure rate, cohort, and policy version together.&lt;/p&gt;

&lt;h2&gt;
  
  
  Continue through the topic cluster
&lt;/h2&gt;

&lt;p&gt;Use the linked parent for the broader decision, the sibling for the next implementation step, and the documentation route for current client configuration.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://modelflare.dev/articles/ai-api-cost-tracking" rel="noopener noreferrer"&gt;Parent decision guide&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://modelflare.dev/articles/llm-token-cost-calculation" rel="noopener noreferrer"&gt;Next implementation guide&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://modelflare.dev/pricing" rel="noopener noreferrer"&gt;Current setup documentation&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Why not report cost per million tokens?
&lt;/h3&gt;

&lt;p&gt;That is a resource-efficiency input. Cost per successful task connects spending to the workload outcome.&lt;/p&gt;

&lt;h3&gt;
  
  
  Should failed attempts be in the numerator?
&lt;/h3&gt;

&lt;p&gt;Yes when they were incurred for eligible tasks; keep their failure class visible.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can teams compare this metric directly?
&lt;/h3&gt;

&lt;p&gt;Only when task, success, cost scope, cohort, and measurement window are equivalent.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources and verification date
&lt;/h2&gt;

&lt;p&gt;Sources were checked on &lt;strong&gt;2026-08-07&lt;/strong&gt;. They establish external contracts and engineering principles; they do not prove an untested route or future provider state.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.finops.org/framework/capabilities/unit-economics/" rel="noopener noreferrer"&gt;FinOps Foundation: Unit Economics&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.finops.org/framework/capabilities/allocation/" rel="noopener noreferrer"&gt;FinOps Foundation: Allocation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.finops.org/framework/" rel="noopener noreferrer"&gt;FinOps Framework overview&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://modelflare.dev/articles/llm-cost-per-successful-task?utm_source=devto&amp;amp;utm_medium=syndication&amp;amp;utm_campaign=blog" rel="noopener noreferrer"&gt;modelflare.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I'm part of the Modelflare team, which builds the AI API gateway mentioned in this article.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>api</category>
      <category>cost</category>
    </item>
    <item>
      <title>Claude Fable 5.2 Deep Analysis: Capabilities, Benchmarks, Pricing and Model Comparison</title>
      <dc:creator>Magnus</dc:creator>
      <pubDate>Fri, 13 Nov 2026 04:24:47 +0000</pubDate>
      <link>https://dev.to/modelflare_dev/claude-fable-52-deep-analysis-capabilities-benchmarks-pricing-and-model-comparison-2cl4</link>
      <guid>https://dev.to/modelflare_dev/claude-fable-52-deep-analysis-capabilities-benchmarks-pricing-and-model-comparison-2cl4</guid>
      <description>&lt;p&gt;A deep analysis of Claude Fable 5.2: 1M context, $8/$40 pricing, published benchmarks against Fable 5.1, Opus 5.5, GPT-6 Astra and Gemini 4 Carbon, cost per task, API breaking changes and Modelflare routes.&lt;/p&gt;

&lt;p&gt;Claude Fable 5.2 is Anthropic's most capable widely released model, launched on &lt;strong&gt;November 9, 2026&lt;/strong&gt; for demanding reasoning and long-horizon agentic work. It keeps the 1M-token context window, 128K maximum output and always-on adaptive thinking of Claude Fable 5.1. It costs 20% less per token, at &lt;strong&gt;$8 per million input tokens and $40 per million output tokens&lt;/strong&gt;. Anthropic reports large gains in agentic coding, science, robotics, search and chart reading, and outputs up to 30% faster than Fable 5.1.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; Fable 5.2 is the strongest general-purpose Claude model you can call through the API without a verification program. On Anthropic's published table it beats Fable 5.1, Claude Opus 5.5, GPT-6 Astra and Gemini 4 Carbon on 10 of the 12 benchmarks where Anthropic reports a Fable 5.2 score. Gemini 4 Carbon leads on AutomationBench, and Opus 5.5 has a slightly higher AA-Briefcase Elo. The per-token price is still twice that of Opus 5.5, so the real question is cost per finished task. On several published tasks, Fable 5.2 at a lower effort level matches Opus 5.5's best score for half the cost or less.&lt;/p&gt;

&lt;p&gt;On Modelflare, the exact model ID &lt;code&gt;claude-fable-5-2&lt;/code&gt; is live on three Claude routes, from &lt;strong&gt;$2 / $10 per 1M tokens&lt;/strong&gt;. This analysis separates four kinds of evidence: Anthropic's documented specifications, provider-reported benchmarks, Modelflare's live catalog checked on November 11, 2026, and our own engineering interpretation. Modelflare has not run its own benchmark of the model, and nothing below should be read as one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Claude Fable 5.2 at a glance
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Property&lt;/th&gt;
&lt;th&gt;Claude Fable 5.2&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Developer&lt;/td&gt;
&lt;td&gt;Anthropic&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Release date&lt;/td&gt;
&lt;td&gt;November 9, 2026&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;API model ID&lt;/td&gt;
&lt;td&gt;&lt;code&gt;claude-fable-5-2&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sibling model&lt;/td&gt;
&lt;td&gt;Claude Mythos 5.2 (&lt;code&gt;claude-mythos-5-2&lt;/code&gt;), same model and price, verified organizations only&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Context window&lt;/td&gt;
&lt;td&gt;1M tokens (default and maximum)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Maximum output&lt;/td&gt;
&lt;td&gt;128K tokens (synchronous Messages API)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Input and output&lt;/td&gt;
&lt;td&gt;Text and image input, text output&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Thinking&lt;/td&gt;
&lt;td&gt;Adaptive thinking, always on; the raw chain of thought is never returned&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Effort levels&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;low&lt;/code&gt;, &lt;code&gt;medium&lt;/code&gt;, &lt;code&gt;high&lt;/code&gt; (default), &lt;code&gt;xhigh&lt;/code&gt;, &lt;code&gt;max&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reliable knowledge cutoff&lt;/td&gt;
&lt;td&gt;June 2026&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Comparative latency&lt;/td&gt;
&lt;td&gt;Moderate (Anthropic's lineup rating)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Official price&lt;/td&gt;
&lt;td&gt;$8 input / $40 output per 1M tokens&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Prompt cache&lt;/td&gt;
&lt;td&gt;$10 (5-minute write), $16 (1-hour write), $0.20 (read) per 1M tokens&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Batch API&lt;/td&gt;
&lt;td&gt;$4 input / $20 output per 1M tokens&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fast mode&lt;/td&gt;
&lt;td&gt;$16 input / $80 output per 1M tokens, up to 2.5x faster output&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Data retention&lt;/td&gt;
&lt;td&gt;30-day retention required; Covered Model&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Retirement&lt;/td&gt;
&lt;td&gt;Not sooner than November 9, 2027&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Fable 5.2 and Mythos 5.2 are the same underlying model. Fable runs stronger cybersecurity and biology safeguards, which is why it can be available to every Claude API customer. Mythos 5.2 serves organizations admitted to Anthropic's Cyber Verification Program or Life Sciences Verification Program. Several headline security and protein-design results in the launch materials are Mythos 5.2 results. A Fable 5.2 deployment should not expect them, because Fable's safeguards block most cyber tasks.&lt;/p&gt;

&lt;h2&gt;
  
  
  What changed from Claude Fable 5.1
&lt;/h2&gt;

&lt;p&gt;Fable 5.2 is a successor in the same line, not a new family. Capacity, tokenizer and thinking mode carry over. Price, speed, safeguards and several API contracts change.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dimension&lt;/th&gt;
&lt;th&gt;Fable 5.2&lt;/th&gt;
&lt;th&gt;Fable 5.1&lt;/th&gt;
&lt;th&gt;Practical consequence&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Input / output price&lt;/td&gt;
&lt;td&gt;$8 / $40&lt;/td&gt;
&lt;td&gt;$10 / $50&lt;/td&gt;
&lt;td&gt;20% lower base cost for the same tokens&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cache reads&lt;/td&gt;
&lt;td&gt;$0.20 / 1M&lt;/td&gt;
&lt;td&gt;$0.25 / 1M&lt;/td&gt;
&lt;td&gt;Same 0.025x multiplier on a lower base&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Output speed&lt;/td&gt;
&lt;td&gt;Up to 30% faster (Anthropic)&lt;/td&gt;
&lt;td&gt;Baseline&lt;/td&gt;
&lt;td&gt;Shorter wall-clock time for long outputs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Context / output&lt;/td&gt;
&lt;td&gt;1M / 128K&lt;/td&gt;
&lt;td&gt;1M / 128K&lt;/td&gt;
&lt;td&gt;No capacity migration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Safeguard blocks&lt;/td&gt;
&lt;td&gt;About 55% fewer overall; about 60% fewer in cyber, about 40% fewer in bio&lt;/td&gt;
&lt;td&gt;Baseline&lt;/td&gt;
&lt;td&gt;Fewer false positives on legitimate work&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Prefix check on thinking blocks&lt;/td&gt;
&lt;td&gt;Enforced on every account&lt;/td&gt;
&lt;td&gt;Enforced only on accounts created on or after August 31, 2026&lt;/td&gt;
&lt;td&gt;Code that edits history can start failing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Who reads its thinking blocks&lt;/td&gt;
&lt;td&gt;Only Fable 5.2 and Mythos 5.2&lt;/td&gt;
&lt;td&gt;Wider set&lt;/td&gt;
&lt;td&gt;Reasoning is lost when a router moves to any other model&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;computer_20251124&lt;/code&gt; tool&lt;/td&gt;
&lt;td&gt;400 error except on Amazon Bedrock&lt;/td&gt;
&lt;td&gt;Accepted with beta header&lt;/td&gt;
&lt;td&gt;Move to &lt;code&gt;computer_toolset_20260801&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Advisor tool&lt;/td&gt;
&lt;td&gt;Advisor must be Fable 5.2 or Mythos 5.2&lt;/td&gt;
&lt;td&gt;Looser pairing&lt;/td&gt;
&lt;td&gt;Update the advisor &lt;code&gt;model&lt;/code&gt; with the executor&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The speed and safeguard figures are Anthropic's own measurements. The four API changes are documented breaking changes and need a code review before a switch. They are covered in detail below.&lt;/p&gt;

&lt;h2&gt;
  
  
  Benchmark analysis
&lt;/h2&gt;

&lt;p&gt;The table reproduces Anthropic's launch comparison. Scores for Fable 5.2, Fable 5.1 and Opus 5.5 include production safeguards unless noted, and use each model's highest available effort unless noted. These are provider-reported results under Anthropic's harnesses, not independent measurements.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Benchmark&lt;/th&gt;
&lt;th&gt;Fable 5.2&lt;/th&gt;
&lt;th&gt;Fable 5.1&lt;/th&gt;
&lt;th&gt;Opus 5.5&lt;/th&gt;
&lt;th&gt;GPT-6 Astra&lt;/th&gt;
&lt;th&gt;Gemini 4 Carbon&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;FrontierCode 2.0 (agentic coding)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;49.1%&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;32.4%&lt;/td&gt;
&lt;td&gt;45.5%&lt;/td&gt;
&lt;td&gt;42.8%&lt;/td&gt;
&lt;td&gt;41.1%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;FrontierSWE v2 (agentic coding)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;69.9%&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;56.3%&lt;/td&gt;
&lt;td&gt;62.3%&lt;/td&gt;
&lt;td&gt;65.5%&lt;/td&gt;
&lt;td&gt;61.2%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AutomationBench (business workflows)&lt;/td&gt;
&lt;td&gt;51.4%&lt;/td&gt;
&lt;td&gt;31.4%&lt;/td&gt;
&lt;td&gt;42.5%&lt;/td&gt;
&lt;td&gt;41.4%&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;53.9%&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Terminal-Bench-Science 0.1 (agentic science)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;74.6%&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;52.6%&lt;/td&gt;
&lt;td&gt;58.7%&lt;/td&gt;
&lt;td&gt;68.1%&lt;/td&gt;
&lt;td&gt;64.8%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;WANDR, relaxed (agentic search)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;82.1%&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;68.7%&lt;/td&gt;
&lt;td&gt;72.3%&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OSWorld 2.1, offline partial (computer use)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;89.3%&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;83.5%&lt;/td&gt;
&lt;td&gt;87.2%&lt;/td&gt;
&lt;td&gt;79.5%&lt;/td&gt;
&lt;td&gt;81.5%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;RoboDojo Sim (robotics, internal)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;64.9%&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;27.6%&lt;/td&gt;
&lt;td&gt;39.4%&lt;/td&gt;
&lt;td&gt;29.8%&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AA-Briefcase v1.1, rubric (knowledge work)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;66.1%&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;61.5%&lt;/td&gt;
&lt;td&gt;61.2%&lt;/td&gt;
&lt;td&gt;52.0%&lt;/td&gt;
&lt;td&gt;61.8%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AA-Briefcase v1.1, Elo (knowledge work)&lt;/td&gt;
&lt;td&gt;1785&lt;/td&gt;
&lt;td&gt;1669&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1800&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;1569&lt;/td&gt;
&lt;td&gt;1611&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Remote Labor Index (knowledge work)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;41.3%&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;17.9%&lt;/td&gt;
&lt;td&gt;21.3%&lt;/td&gt;
&lt;td&gt;20.8%&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Humanity's Last Exam, with tools&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;74.2%&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;65.6%&lt;/td&gt;
&lt;td&gt;67.7%&lt;/td&gt;
&lt;td&gt;57.2%&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Chartography, no tools (visual charts)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;73.4%&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;44.8%&lt;/td&gt;
&lt;td&gt;64.4%&lt;/td&gt;
&lt;td&gt;71.0%&lt;/td&gt;
&lt;td&gt;72.5%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Anthropic also published three results where the Fable column is Mythos 5.2 and Opus 5.5 ran without safeguards: CyScenarioBench 76.3% (Mythos 5.1: 61.7%, Opus 5.5: 67.6%), CVE Rediscovery 89.6% (78.3%, 81.3%) and 24-hour de novo binder design 85.1% (79.1%, 82.6%). CyScenarioBench tasks differ by lab, so its cross-lab column is not comparable. We keep these rows out of the main table because a Fable 5.2 caller will not see Mythos behavior on cyber and biology work.&lt;/p&gt;

&lt;h3&gt;
  
  
  How to read the gains
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;The largest jumps are in long, open-ended agentic work.&lt;/strong&gt; Against Fable 5.1, Remote Labor Index more than doubles (17.9% to 41.3%), and RoboDojo Sim rises from 27.6% to 64.9%. Terminal-Bench-Science gains 22.0 points, AutomationBench 20.0 points and FrontierCode 2.0 16.7 points. These benchmarks reward a model that keeps a plan coherent over many steps, recovers from failed tool calls and finishes a deliverable. That matches Anthropic's qualitative claims about multi-day sessions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Visual reasoning is the surprise.&lt;/strong&gt; Chartography rises 28.6 points over Fable 5.1, to 73.4%. That narrowly passes Gemini 4 Carbon (72.5%) and GPT-6 Astra (71.0%), two models with strong vision records. For document-heavy pipelines with dense charts and tables, this is the single most consequential change in the table.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Computer use is near its ceiling on this benchmark.&lt;/strong&gt; OSWorld 2.1 offline partial goes from 83.5% to 89.3%, but Opus 5.5 already scores 87.2%. A 2.1-point lead over Opus 5.5 is unlikely to justify a doubled per-token price for routine browser automation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fable 5.2 does not lead everywhere.&lt;/strong&gt; Gemini 4 Carbon leads AutomationBench by 2.5 points. On AA-Briefcase, Fable 5.2 wins the rubric score (66.1% against 61.2%) but trails Opus 5.5 on Elo (1785 against 1800). In other words, graders' rubrics favored Fable's deliverables, while pairwise preference slightly favored Opus 5.5. For business documents judged by human taste, the two models are close, and Opus 5.5 costs half as much per token.&lt;/p&gt;

&lt;h3&gt;
  
  
  The cost-efficiency results matter more than the headline scores
&lt;/h3&gt;

&lt;p&gt;Anthropic published several matched-score comparisons that change the pricing conversation:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Task&lt;/th&gt;
&lt;th&gt;Fable 5.2 setting&lt;/th&gt;
&lt;th&gt;Result against Opus 5.5&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;FrontierCode 2.0&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;high&lt;/code&gt; effort: 45.3%&lt;/td&gt;
&lt;td&gt;Matches Opus 5.5 at &lt;code&gt;xhigh&lt;/code&gt; (45.5%) at about half the cost per task&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;WANDR&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;medium&lt;/code&gt; effort&lt;/td&gt;
&lt;td&gt;Matches Opus 5.5's top score at about 40% of the cost&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Humanity's Last Exam&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;low&lt;/code&gt; effort&lt;/td&gt;
&lt;td&gt;Matches Opus 5.5's top score at under one-tenth of the cost&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Chartography&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;medium&lt;/code&gt; effort: 66.4%&lt;/td&gt;
&lt;td&gt;Beats Opus 5.5 at &lt;code&gt;max&lt;/code&gt; (64.4%)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;BenchCAD 2.1&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;max&lt;/code&gt; effort: 83.5&lt;/td&gt;
&lt;td&gt;Opus 5.5 65.3, Fable 5.1 44.4&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Fable 5.2 costs twice as much per token as Opus 5.5, so "half the cost per task" means it reached the same score with roughly a quarter of the tokens. This is the strongest argument in the release. When a smaller model needs more turns, longer reasoning and more retries, the cheaper per-token price does not make it the cheaper task. Treat these figures as a hypothesis to test on your own workload, not a guarantee. A fair test records successful-task cost, wall-clock time, retries and reviewer corrections (see our guide to &lt;a href="https://modelflare.dev/articles/llm-cost-per-successful-task" rel="noopener noreferrer"&gt;cost per successful task&lt;/a&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  Capability analysis
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Long-horizon coding and orchestration
&lt;/h3&gt;

&lt;p&gt;Anthropic reports that over 90% of changes merged into its core codebase are now written by Claude under human guidance. An earlier Fable 5.2 build migrated a production service from Python to Rust that now starts about 26 times faster. In another internal run, one engineer coordinated over 1,000 subagents for eight days and produced a prototype operating system that boots on a laptop. Launch partners describe the same pattern. Uber ran a 10 to 12 hour security audit in which the model sent out about 170 reviewer agents and returned a write-up, fix pull requests and a policy proposal. Datadog compares it to an incident commander that sends out faster models for quick signals.&lt;/p&gt;

&lt;p&gt;The engineering takeaway is that Fable 5.2 works best as a &lt;strong&gt;planner and orchestrator&lt;/strong&gt; with clear boundaries, not as a chat model that writes snippets. Anthropic also observed it using subagents to review its own work at &lt;code&gt;xhigh&lt;/code&gt; and &lt;code&gt;max&lt;/code&gt;, which Fable 5.1 did not do on the same tasks. Delegation multiplies spend, so check which model your harness assigns to subagents. A Fable 5.2 planner that delegates to Opus 5.5 or Sonnet 5.5 workers is often a better cost structure than Fable 5.2 everywhere.&lt;/p&gt;

&lt;p&gt;Anthropic's prompting guide adds a counterintuitive detail about &lt;strong&gt;code ownership&lt;/strong&gt;. When the prompt says nothing about ownership, the model tends to add to existing structure and report nearby problems instead of fixing them. When the prompt says the codebase is the model's own, it merged repeated code in about half of Anthropic's small-task trials, against under a tenth without that sentence. It also used about 1.5 times the output tokens and made more unrequested changes. Choose the framing on purpose, and review the diff rather than only the model's summary.&lt;/p&gt;

&lt;h3&gt;
  
  
  Science, mathematics and engineering
&lt;/h3&gt;

&lt;p&gt;The launch materials contain the most ambitious claims Anthropic has published for a generally available model:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Mathematics:&lt;/strong&gt; a team of 1,000 Fable 5.2 agents formalized Fermat's Last Theorem in 30 hours with minimal human intervention. The first formalization took 11 days. Opus 5.5 in the same setup finished 26% in 18 hours and barely progressed after 30.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Physics:&lt;/strong&gt; Fable 5.2 solved two open problems on black holes using holographic duality.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hardware:&lt;/strong&gt; with Diode, it designed three working electronic devices, a voice-assistant hub, a USB speakerphone and a handheld virtual pet. All worked without electrical modifications, and each board was manufacturing-ready in under a day.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scientific computing:&lt;/strong&gt; Discovered Materials reports that it made Quantum ESPRESSO's phonon code about 36 times faster on average, 3 to 4 times more than Fable 5.1's speedup.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are case studies, not controlled benchmarks. Their value is directional: the model can sustain very long, verifiable work when a checker exists, such as a proof assistant, a circuit simulator or a test suite. The common factor is an external verifier. Build that verifier into your own long tasks before you trust long unattended runs.&lt;/p&gt;

&lt;h3&gt;
  
  
  Research, finance and knowledge work
&lt;/h3&gt;

&lt;p&gt;The largest knowledge-work gain is on Remote Labor Index, which is built from real remote freelance projects. Fable 5.2 scores 41.3% at &lt;code&gt;high&lt;/code&gt; effort against 21.3% for Opus 5.5. Partner reports point the same way. Fundamental Research Labs reported 91% on its evaluation against 86% for the next-best model, and Jump Trading reported 10% lower error than the next-best model on an internal benchmark. Harvey says that in an I-9 compliance review, Fable 5.2 gave clearer, more actionable legal direction than Fable 5.1. Balyasny and Cognition both mention restraint: the model admits uncertainty instead of overstating evidence.&lt;/p&gt;

&lt;p&gt;For research pipelines, the practical risk remains evidence drift over long chains. Require source links, dates and a short "what would change this conclusion" section. Anthropic's guide also recommends prompt text for self-contained final reports, because readers of a long agent run have not seen its tool calls.&lt;/p&gt;

&lt;h3&gt;
  
  
  Vision and computer use
&lt;/h3&gt;

&lt;p&gt;Chartography and OSWorld 2.1 both improve. The useful applications are dense financial statements, scientific figures, dashboards, design review and browser workflows. Two cautions apply. First, the OSWorld lead over Opus 5.5 is small. Second, computer use now requires the &lt;code&gt;computer_toolset_20260801&lt;/code&gt; toolset on every platform except Amazon Bedrock. Keep irreversible actions behind application-level authorization and a human stop point.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fable 5.2 against the rest of the field
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dimension&lt;/th&gt;
&lt;th&gt;Claude Fable 5.2&lt;/th&gt;
&lt;th&gt;Claude Opus 5.5&lt;/th&gt;
&lt;th&gt;Claude Sonnet 5.5&lt;/th&gt;
&lt;th&gt;Claude Haiku 5.5&lt;/th&gt;
&lt;th&gt;GPT-6 Astra&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Positioning&lt;/td&gt;
&lt;td&gt;Hardest reasoning and long-horizon agents&lt;/td&gt;
&lt;td&gt;Default for most agentic coding and knowledge work&lt;/td&gt;
&lt;td&gt;Best speed and capability balance&lt;/td&gt;
&lt;td&gt;High-volume, latency-sensitive tasks&lt;/td&gt;
&lt;td&gt;OpenAI frontier model&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Official input / output per 1M&lt;/td&gt;
&lt;td&gt;$8 / $40&lt;/td&gt;
&lt;td&gt;$4 / $20&lt;/td&gt;
&lt;td&gt;$2 / $10&lt;/td&gt;
&lt;td&gt;From $0.10 / $0.50&lt;/td&gt;
&lt;td&gt;$10 / $50 up to 272K input; $20 / $75 above&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cache read per 1M&lt;/td&gt;
&lt;td&gt;$0.20&lt;/td&gt;
&lt;td&gt;$0.20&lt;/td&gt;
&lt;td&gt;$0.10&lt;/td&gt;
&lt;td&gt;$0.01 up to 100K&lt;/td&gt;
&lt;td&gt;$1 (standard tier)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Context / max output&lt;/td&gt;
&lt;td&gt;1M / 128K&lt;/td&gt;
&lt;td&gt;1M / 128K&lt;/td&gt;
&lt;td&gt;1M / 128K&lt;/td&gt;
&lt;td&gt;1M / 128K&lt;/td&gt;
&lt;td&gt;1.05M / 128K&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Default effort&lt;/td&gt;
&lt;td&gt;&lt;code&gt;high&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;medium&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;high&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;medium&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Provider-specific&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Latency rating&lt;/td&gt;
&lt;td&gt;Moderate&lt;/td&gt;
&lt;td&gt;Moderate&lt;/td&gt;
&lt;td&gt;Fast&lt;/td&gt;
&lt;td&gt;Fastest&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Thinking can be turned off&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Only via &lt;code&gt;between_tools&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Yes, at &lt;code&gt;high&lt;/code&gt; or lower&lt;/td&gt;
&lt;td&gt;Provider-specific&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Claude prices are Anthropic's first-party list prices. GPT-6 Astra prices are the official tiers recorded in Modelflare's live catalog on November 11, 2026; above 272K input tokens the higher rates apply to the whole request. Gemini 4 Carbon appears in Anthropic's benchmark table but is not on Modelflare, so we compare it on benchmarks only.&lt;/p&gt;

&lt;p&gt;Three observations follow from the table:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Fable 5.2 against Opus 5.5 is the main decision.&lt;/strong&gt; Anthropic itself recommends starting with Opus 5.5 and moving to Fable 5.2 only when evals at higher Opus effort still fall short. Opus 5.5 costs half as much per token and matches or nearly matches Fable 5.2 on computer use and human-preference knowledge work. Fable 5.2 pulls ahead on long, hard, verifiable tasks, and the matched-score results show it can be cheaper per task there.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Against GPT-6 Astra, Fable 5.2 is both stronger on the published table and cheaper per token.&lt;/strong&gt; The table shows Fable 5.2 ahead of GPT-6 Astra on every benchmark where both appear. Its list price is 20% lower for input and output up to 272K tokens, and its 1M context is billed at one rate. Cache reads are a fifth of Astra's standard rate. The benchmark claims come from Anthropic, so validate them on your own tasks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sonnet 5.5 and Haiku 5.5 are partners rather than competitors.&lt;/strong&gt; A common production pattern is Fable 5.2 for planning and review, Opus 5.5 or Sonnet 5.5 for implementation, and Haiku 5.5 for classification, extraction and routing. Anthropic's lineup is built for this kind of division of labor (see our analysis of &lt;a href="https://modelflare.dev/articles/claude-haiku-5-5-division-of-labor" rel="noopener noreferrer"&gt;Haiku 5.5&lt;/a&gt;).&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Pricing and cost modeling
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Official prices
&lt;/h3&gt;

&lt;p&gt;Fable 5.2's prompt cache is unusually cheap relative to its base price. A cache read costs 0.025 times the base input price, compared with 0.05 on Opus 5.5 and Sonnet 5.5 and 0.1 on most other models. Thinking tokens are billed as output tokens at every &lt;code&gt;display&lt;/code&gt; setting, and Fable 5.2 thinks before almost every reply at &lt;code&gt;high&lt;/code&gt; effort and above.&lt;/p&gt;

&lt;h3&gt;
  
  
  Modelflare route prices
&lt;/h3&gt;

&lt;p&gt;Modelflare serves &lt;code&gt;claude-fable-5-2&lt;/code&gt; on the Anthropic-compatible and OpenAI-compatible endpoints through three public routes. The prices below are user-facing Modelflare prices from the live catalog on November 11, 2026, in USD per 1M tokens. The &lt;a href="https://modelflare.dev/pricing" rel="noopener noreferrer"&gt;pricing page&lt;/a&gt; is the source of truth.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Route&lt;/th&gt;
&lt;th&gt;Multiplier&lt;/th&gt;
&lt;th&gt;Input&lt;/th&gt;
&lt;th&gt;Output&lt;/th&gt;
&lt;th&gt;Cache read&lt;/th&gt;
&lt;th&gt;Positioning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;claude-premium&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;0.5x&lt;/td&gt;
&lt;td&gt;$4.00&lt;/td&gt;
&lt;td&gt;$20.00&lt;/td&gt;
&lt;td&gt;$0.10&lt;/td&gt;
&lt;td&gt;Continuity and request success first&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;claude-stable&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;0.315x&lt;/td&gt;
&lt;td&gt;$2.52&lt;/td&gt;
&lt;td&gt;$12.60&lt;/td&gt;
&lt;td&gt;$0.063&lt;/td&gt;
&lt;td&gt;Everyday development and production&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;claude-award&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;0.25x&lt;/td&gt;
&lt;td&gt;$2.00&lt;/td&gt;
&lt;td&gt;$10.00&lt;/td&gt;
&lt;td&gt;$0.05&lt;/td&gt;
&lt;td&gt;Lowest price; retryable development and testing&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;On the same routes, Opus 5.5 costs half these amounts and Fable 5.1 costs 25% more.&lt;/p&gt;

&lt;h3&gt;
  
  
  Worked example 1: a single long request
&lt;/h3&gt;

&lt;p&gt;Take 100K uncached input tokens and 10K output tokens, including thinking, and leave out cache, retries and tool fees:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Option&lt;/th&gt;
&lt;th&gt;Calculation&lt;/th&gt;
&lt;th&gt;Cost&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Fable 5.2, official&lt;/td&gt;
&lt;td&gt;0.1 × $8 + 0.01 × $40&lt;/td&gt;
&lt;td&gt;$1.20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fable 5.1, official&lt;/td&gt;
&lt;td&gt;0.1 × $10 + 0.01 × $50&lt;/td&gt;
&lt;td&gt;$1.50&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Opus 5.5, official&lt;/td&gt;
&lt;td&gt;0.1 × $4 + 0.01 × $20&lt;/td&gt;
&lt;td&gt;$0.60&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fable 5.2, &lt;code&gt;claude-premium&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;0.1 × $4 + 0.01 × $20&lt;/td&gt;
&lt;td&gt;$0.60&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fable 5.2, &lt;code&gt;claude-stable&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;0.1 × $2.52 + 0.01 × $12.60&lt;/td&gt;
&lt;td&gt;$0.378&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fable 5.2, &lt;code&gt;claude-award&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;0.1 × $2 + 0.01 × $10&lt;/td&gt;
&lt;td&gt;$0.30&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Worked example 2: an agent session with a cached prefix
&lt;/h3&gt;

&lt;p&gt;Assume a 200K-token prefix (system prompt, tools and repository context) that is written to the cache once, for example by a pre-warm request, and then read on each of 30 turns. Each turn adds 5K new input tokens and 3K output tokens. For simplicity, the prefix does not grow. At official prices:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Component&lt;/th&gt;
&lt;th&gt;Calculation&lt;/th&gt;
&lt;th&gt;Cost&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;One 5-minute cache write&lt;/td&gt;
&lt;td&gt;0.2 × $10&lt;/td&gt;
&lt;td&gt;$2.00&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;30 cache reads&lt;/td&gt;
&lt;td&gt;30 × 0.2 × $0.20&lt;/td&gt;
&lt;td&gt;$1.20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;New input&lt;/td&gt;
&lt;td&gt;30 × 0.005 × $8&lt;/td&gt;
&lt;td&gt;$1.20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Output&lt;/td&gt;
&lt;td&gt;30 × 0.003 × $40&lt;/td&gt;
&lt;td&gt;$3.60&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total with caching&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$8.00&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Same session, no cache hits&lt;/td&gt;
&lt;td&gt;30 × 0.205 × $8 + $3.60&lt;/td&gt;
&lt;td&gt;$52.80&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;On &lt;code&gt;claude-stable&lt;/code&gt;, the cached session costs about $2.52. Output becomes the largest cost once the cache works, so effort level and verbosity matter more than input size. A cache that silently misses multiplies the bill about 6.6 times in this example. Our guides to &lt;a href="https://modelflare.dev/articles/prompt-caching-cost-guide" rel="noopener noreferrer"&gt;prompt caching cost&lt;/a&gt; and &lt;a href="https://modelflare.dev/articles/ai-agent-cache-hit-rate" rel="noopener noreferrer"&gt;agent cache hit rates&lt;/a&gt; explain how to measure it.&lt;/p&gt;

&lt;h2&gt;
  
  
  API migration checklist
&lt;/h2&gt;

&lt;p&gt;Anthropic lists four changes that can break code moving from Fable 5.1:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The prefix check now applies to every account.&lt;/strong&gt; If anything before a Fable 5.2 thinking block changes, such as the &lt;code&gt;system&lt;/code&gt; prompt, the &lt;code&gt;tools&lt;/code&gt; list or an earlier message, a request that sends that block back fails with a 400 error. Keep the history append-only, return each assistant turn exactly as received, and use mid-conversation system messages or compaction on demand instead of editing earlier turns. The &lt;code&gt;drop_block&lt;/code&gt; setting under the &lt;code&gt;thinking-binding-controls-2026-08-01&lt;/code&gt; beta avoids the error, but the model then thinks again and output tokens rise.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Only Fable 5.2 and Mythos 5.2 read Fable 5.2 thinking blocks.&lt;/strong&gt; A router or fallback that moves a conversation to Opus 5.5, Fable 5.1 or anything else loses the earlier reasoning for those turns. Blocks are also bound to the account that produced them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;computer_20251124&lt;/code&gt; returns a 400 error&lt;/strong&gt; everywhere except Amazon Bedrock. Declare &lt;code&gt;computer_toolset_20260801&lt;/code&gt; instead.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A Fable 5.2 executor needs a Fable 5.2 or Mythos 5.2 advisor&lt;/strong&gt; when you use the advisor tool. Change the advisor &lt;code&gt;model&lt;/code&gt; only in new conversations, because it is an edit to &lt;code&gt;tools&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The rules shared with Fable 5.1 still apply. Adaptive thinking cannot be disabled, and &lt;code&gt;budget_tokens&lt;/code&gt; returns a 400 error. Forced tool use (&lt;code&gt;tool_choice&lt;/code&gt; of &lt;code&gt;any&lt;/code&gt; or &lt;code&gt;tool&lt;/code&gt;) is rejected, so use &lt;code&gt;auto&lt;/code&gt; with &lt;code&gt;strict: true&lt;/code&gt; or structured outputs. Assistant prefill is not supported. &lt;code&gt;temperature&lt;/code&gt;, &lt;code&gt;top_p&lt;/code&gt; and &lt;code&gt;top_k&lt;/code&gt; are rejected.&lt;/p&gt;

&lt;p&gt;Handle refusals explicitly. A declined request returns HTTP 200 with &lt;code&gt;stop_reason: "refusal"&lt;/code&gt; and a &lt;code&gt;stop_details.category&lt;/code&gt; of &lt;code&gt;cyber&lt;/code&gt;, &lt;code&gt;bio&lt;/code&gt;, &lt;code&gt;frontier_llm&lt;/code&gt;, &lt;code&gt;reasoning_extraction&lt;/code&gt; or &lt;code&gt;general_harms&lt;/code&gt;. Anthropic's permitted fallback targets for Fable 5.2 are Claude Opus 4.8 and Claude Opus 5. Blocked cyber queries fall back to Opus 4.8, and blocked bio queries to Opus 5. Your billing and retry code must tell a refusal apart from a transport error.&lt;/p&gt;

&lt;h3&gt;
  
  
  Calling Fable 5.2 through Modelflare
&lt;/h3&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;MODELFLARE_API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'YOUR_MODELFLARE_API_KEY'&lt;/span&gt;

curl -sS https://modelflare.dev/v1/messages \
  -H &lt;span class="s2"&gt;"x-api-key: ${MODELFLARE_API_KEY}"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"anthropic-version: 2023-06-01"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{
    "model": "claude-fable-5-2",
    "max_tokens": 16000,
    "messages": [{"role": "user", "content": "Review this migration plan and list the three riskiest steps."}]
  }'&lt;/span&gt;
~~~&lt;span class="o"&gt;{&lt;/span&gt;% endraw %&lt;span class="o"&gt;}&lt;/span&gt;

Long agent loops that depend on preserved thinking are safest on the Anthropic-compatible &lt;span class="o"&gt;{&lt;/span&gt;% raw %&lt;span class="o"&gt;}&lt;/span&gt;&lt;span class="sb"&gt;`/v1/messages`&lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;% endraw %&lt;span class="o"&gt;}&lt;/span&gt; endpoint. The OpenAI Chat Completions format has no native field &lt;span class="k"&gt;for&lt;/span&gt; signed thinking blocks. Before you move production traffic, replay a real multi-turn conversation with tools, streaming, a refusal and a cancellation, and confirm that every turn returns unchanged. Endpoint support &lt;span class="k"&gt;in&lt;/span&gt; the catalog does not guarantee feature parity &lt;span class="k"&gt;for&lt;/span&gt; every parameter &lt;span class="o"&gt;(&lt;/span&gt;see &lt;span class="o"&gt;[&lt;/span&gt;connecting Claude Code to an Anthropic API gateway&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;https://modelflare.dev/articles/claude-code-anthropic-api-gateway&lt;span class="o"&gt;)&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;.

&lt;span class="c"&gt;## Prompting changes that affect cost and quality&lt;/span&gt;

Anthropic&lt;span class="s1"&gt;'s prompting guide for Fable 5.2 documents several behavior shifts that appear without any code change:

- **Effort matters, but less above {% raw %}`high`.** Start at `high`. Use `low` for quick, well-specified and high-volume work; Anthropic reports that Fable 5.2 at `low` scores close to Fable 5.1 at higher effort. Use `medium` for interactive coding and chat. Reserve `xhigh` for measured gains on the hardest long tasks, and `max` for ceiling tests. Effort barely changes reply length, so control length in the prompt.
- **Instructions to think less no longer work.** A line such as "answer directly without deliberating" did not stop thinking at `medium` and above. Lower the effort level instead.
- **Turns can end early** with a list of remaining work, especially at `low` and `medium`. Anthropic'&lt;/span&gt;s suggested &lt;span class="s2"&gt;"finishing work"&lt;/span&gt; prompt halved such endings &lt;span class="k"&gt;in&lt;/span&gt; a replay, but raised output tokens by about 30%.
- **Long tool runs can be silent.** Progress updates arrive as &lt;span class="o"&gt;{&lt;/span&gt;% raw %&lt;span class="o"&gt;}&lt;/span&gt;&lt;span class="sb"&gt;`thinking`&lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;% endraw %&lt;span class="o"&gt;}&lt;/span&gt; blocks that are empty at the default display. Set &lt;span class="o"&gt;{&lt;/span&gt;% raw %&lt;span class="o"&gt;}&lt;/span&gt;&lt;span class="sb"&gt;`display: "updates"`&lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;% endraw %&lt;span class="o"&gt;}&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt;beta&lt;span class="o"&gt;)&lt;/span&gt; and render them &lt;span class="k"&gt;if&lt;/span&gt; users watch the work live.
- **Accumulated caution can stall agents.** The model follows rules &lt;span class="k"&gt;in&lt;/span&gt; memory files, notes and reviewer messages closely. Remove stale &lt;span class="s2"&gt;"never"&lt;/span&gt; rules and name the steps that need no approval.
- **Old style rules can backfire.** Hard sentence-length limits make prose choppy, and a token budget written into the prompt can raise spend.

&lt;span class="c"&gt;## When to choose Fable 5.2, and when not to&lt;/span&gt;

**Choose Fable 5.2 when:**

- the task is long, hard and verifiable, such as repository-scale refactors, migrations, formal proofs, scientific computing or multi-source research with a checkable deliverable&lt;span class="o"&gt;;&lt;/span&gt;
- you are orchestrating other models and need the strongest planner and reviewer&lt;span class="o"&gt;;&lt;/span&gt;
- your Opus 5.5 evals at &lt;span class="o"&gt;{&lt;/span&gt;% raw %&lt;span class="o"&gt;}&lt;/span&gt;&lt;span class="sb"&gt;`high`&lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;% endraw %&lt;span class="o"&gt;}&lt;/span&gt; or &lt;span class="o"&gt;{&lt;/span&gt;% raw %&lt;span class="o"&gt;}&lt;/span&gt;&lt;span class="sb"&gt;`xhigh`&lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;% endraw %&lt;span class="o"&gt;}&lt;/span&gt; still miss the quality bar&lt;span class="o"&gt;;&lt;/span&gt;
- your pipeline reads dense charts, statements and figures&lt;span class="o"&gt;;&lt;/span&gt;
- you are on Fable 5.1 today, because Fable 5.2 is cheaper per token and stronger on every published comparison.

**Prefer another model when:**

- the work is routine chat, extraction, classification or short coding, where Opus 5.5, Sonnet 5.5 or Haiku 5.5 hold quality at a fraction of the price&lt;span class="o"&gt;;&lt;/span&gt;
- latency matters more than depth, because Fable 5.2 thinks before almost every reply at &lt;span class="o"&gt;{&lt;/span&gt;% raw %&lt;span class="o"&gt;}&lt;/span&gt;&lt;span class="sb"&gt;`high`&lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;% endraw %&lt;span class="o"&gt;}&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
- your harness edits conversation &lt;span class="nb"&gt;history&lt;/span&gt; and cannot become append-only yet&lt;span class="o"&gt;;&lt;/span&gt;
- the workload is cybersecurity or biology research, where Fable&lt;span class="s1"&gt;'s safeguards may block legitimate requests and Mythos 5.2 requires verification;
- you need zero data retention, which Fable 5.2 does not offer without Anthropic'&lt;/span&gt;s express authorization.

On Modelflare, use &lt;span class="o"&gt;{&lt;/span&gt;% raw %&lt;span class="o"&gt;}&lt;/span&gt;&lt;span class="sb"&gt;`claude-stable`&lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;% endraw %&lt;span class="o"&gt;}&lt;/span&gt; as the balanced default, &lt;span class="o"&gt;{&lt;/span&gt;% raw %&lt;span class="o"&gt;}&lt;/span&gt;&lt;span class="sb"&gt;`claude-premium`&lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;% endraw %&lt;span class="o"&gt;}&lt;/span&gt; when a failed long run is expensive, and &lt;span class="o"&gt;{&lt;/span&gt;% raw %&lt;span class="o"&gt;}&lt;/span&gt;&lt;span class="sb"&gt;`claude-award`&lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;% endraw %&lt;span class="o"&gt;}&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; development, evaluation sweeps and retryable batch work.

&lt;span class="c"&gt;## Safety, limits and data handling&lt;/span&gt;

Anthropic rates high-stakes misalignment risk as low. On an automated behavioral audit of about 1,900 scenarios &lt;span class="o"&gt;(&lt;/span&gt;lower is better&lt;span class="o"&gt;)&lt;/span&gt;, Mythos 5.2 scored 2.67, against 2.79 &lt;span class="k"&gt;for&lt;/span&gt; Opus 5.5 and 3.28 &lt;span class="k"&gt;for&lt;/span&gt; Mythos 5.1. In an adversarial sandbox-escape test, Mythos 5.2 used outside credentials or files &lt;span class="k"&gt;in&lt;/span&gt; 3.1% of scenarios, compared with 21% &lt;span class="k"&gt;for&lt;/span&gt; Mythos 5.1. These tests used Mythos 5.2 with reduced safeguards, and Anthropic expects Fable 5.2 to behave similarly. External testers included the UK AI Security Institute and METR.

Anthropic also limited capability gains &lt;span class="k"&gt;in&lt;/span&gt; accelerator kernel optimization and LLM architecture improvement during training, where performance is about Opus 5.5 level. Anti-distillation measures reduced the data harvested by distillers by 90% to 99%.

Operationally, Fable 5.2 requires 30-day data retention and is a Covered Model. It does not support Priority Tier. Structured outputs are unavailable &lt;span class="k"&gt;in&lt;/span&gt; organizations that use customer-managed encryption keys. A 1M-token window does not make every position equally retrievable or cheap. The current tokenizer fits about 555K English words &lt;span class="k"&gt;in&lt;/span&gt; 1M tokens, so budget from usage records, not character counts.

&lt;span class="c"&gt;## FAQ&lt;/span&gt;

**When was Claude Fable 5.2 released?** Anthropic announced Claude Fable 5.2 and Claude Mythos 5.2 on November 9, 2026. The API model ID is &lt;span class="o"&gt;{&lt;/span&gt;% raw %&lt;span class="o"&gt;}&lt;/span&gt;&lt;span class="sb"&gt;`claude-fable-5-2`&lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;% endraw %&lt;span class="o"&gt;}&lt;/span&gt;.

**How much does Claude Fable 5.2 cost?** The official price is &lt;span class="nv"&gt;$8&lt;/span&gt; per million input tokens and &lt;span class="nv"&gt;$4&lt;/span&gt;0 per million output tokens. Cache reads cost &lt;span class="nv"&gt;$0&lt;/span&gt;.20, and fast mode costs &lt;span class="nv"&gt;$1&lt;/span&gt;6 / &lt;span class="nv"&gt;$8&lt;/span&gt;0. On Modelflare, it starts at &lt;span class="nv"&gt;$2&lt;/span&gt; / &lt;span class="nv"&gt;$1&lt;/span&gt;0 per million tokens on &lt;span class="o"&gt;{&lt;/span&gt;% raw %&lt;span class="o"&gt;}&lt;/span&gt;&lt;span class="sb"&gt;`claude-award`&lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;% endraw %&lt;span class="o"&gt;}&lt;/span&gt;.

**Is Fable 5.2 better than Claude Opus 5.5?** On Anthropic&lt;span class="s1"&gt;'s published table it scores higher on every benchmark except AA-Briefcase Elo, where Opus 5.5 leads 1800 to 1785. Opus 5.5 costs half as much per token and is Anthropic'&lt;/span&gt;s recommended starting point. Move up to Fable 5.2 when your Opus 5.5 evals fall short.

**Is Fable 5.2 better than GPT-6 Astra and Gemini 4 Carbon?** In Anthropic&lt;span class="s1"&gt;'s comparison, Fable 5.2 leads GPT-6 Astra on every benchmark where both appear. It leads Gemini 4 Carbon everywhere except AutomationBench, where Gemini scores 53.9% against 51.4%. These are provider-reported results.

**What is the difference between Fable 5.2 and Mythos 5.2?** They are the same underlying model with the same price. Fable 5.2 runs stronger cyber and biology safeguards and is available to all API customers. Mythos 5.2 is limited to organizations in Anthropic'&lt;/span&gt;s verification programs.

**Can I swap &lt;span class="o"&gt;{&lt;/span&gt;% raw %&lt;span class="o"&gt;}&lt;/span&gt;&lt;span class="sb"&gt;`claude-fable-5-1`&lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;% endraw %&lt;span class="o"&gt;}&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;% raw %&lt;span class="o"&gt;}&lt;/span&gt;&lt;span class="sb"&gt;`claude-fable-5-2`&lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;% endraw %&lt;span class="o"&gt;}&lt;/span&gt; without other changes?** Often, but not always. Check whether your code edits conversation history, routes conversations between models, uses &lt;span class="o"&gt;{&lt;/span&gt;% raw %&lt;span class="o"&gt;}&lt;/span&gt;&lt;span class="sb"&gt;`computer_20251124`&lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;% endraw %&lt;span class="o"&gt;}&lt;/span&gt;, or uses the advisor tool. Then rerun your evals with an effort sweep that starts at &lt;span class="o"&gt;{&lt;/span&gt;% raw %&lt;span class="o"&gt;}&lt;/span&gt;&lt;span class="sb"&gt;`high`&lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;% endraw %&lt;span class="o"&gt;}&lt;/span&gt;.

**Does a lower per-token price make Fable 5.2 cheaper than Fable 5.1 &lt;span class="k"&gt;for&lt;/span&gt; every task?** For the same token counts, yes, by 20%. Real task cost also depends on effort, thinking length, cache hit rate and retries, so measure complete tasks.

&lt;span class="c"&gt;## Sources and update record&lt;/span&gt;

- &lt;span class="o"&gt;[&lt;/span&gt;Anthropic: Claude Fable 5.2 and Claude Mythos 5.2 announcement&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;https://www.anthropic.com/claude-fable-and-mythos-5-2&lt;span class="o"&gt;)&lt;/span&gt;
- &lt;span class="o"&gt;[&lt;/span&gt;What&lt;span class="s1"&gt;'s new in Claude Fable 5.2](https://platform.claude.com/docs/en/models/fable-5-2/whats-new-fable-5-2)
- [Claude models overview](https://platform.claude.com/docs/en/models/overview)
- [Prompting Claude Fable 5.2](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/prompting-claude-fable-5-2)
- [Claude Fable 5.2 migration guide](https://platform.claude.com/docs/en/models/fable-5-2/migration-guide)
- [Modelflare live pricing](https://modelflare.dev/pricing)
- Related Modelflare analysis: [Claude Fable 5.1 deep dive](https://modelflare.dev/articles/claude-fable-5-1-review-pricing), [Claude Opus 5.5](https://modelflare.dev/articles/claude-opus-5-5-review-pricing), [Claude Sonnet 5.5](https://modelflare.dev/articles/claude-sonnet-5-5-review-pricing), [GPT-6 Astra vs Claude Fable 5.1](https://modelflare.dev/articles/gpt-6-astra-vs-claude-fable-5-1)

**Update record:** November 11, 2026. Initial publication. Specifications, prices, benchmark values, partner reports and safety figures were checked against the linked Anthropic pages. Modelflare availability and route prices were checked against the live catalog. Modelflare did not run its own benchmark of Fable 5.2 or call any model for the article text. The cover illustration was generated with GPT Image 2.5.

---

*Originally published at [modelflare.dev](https://modelflare.dev/articles/claude-fable-5-2-deep-analysis?utm_source=devto&amp;amp;utm_medium=syndication&amp;amp;utm_campaign=blog).*

*Disclosure: I'&lt;/span&gt;m part of the Modelflare team, which builds the AI API gateway mentioned &lt;span class="k"&gt;in&lt;/span&gt; this article.*
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>claude</category>
      <category>api</category>
    </item>
    <item>
      <title>Load Test an LLM API Without Misleading Results</title>
      <dc:creator>Magnus</dc:creator>
      <pubDate>Tue, 03 Nov 2026 04:45:22 +0000</pubDate>
      <link>https://dev.to/modelflare_dev/load-test-an-llm-api-without-misleading-results-38mg</link>
      <guid>https://dev.to/modelflare_dev/load-test-an-llm-api-without-misleading-results-38mg</guid>
      <description>&lt;p&gt;Production guide: Load Test an LLM API Without Misleading Results. It includes a deterministic artifact, failure boundaries, rollout checks, and source-qualified limitations.&lt;/p&gt;

&lt;h2&gt;
  
  
  Decision first
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Load Test an LLM API Without Misleading Results&lt;/strong&gt; is an explicit production contract, not an isolated code change. Define the success signal, terminal failure state, and rollback condition before moving traffic. The artifact below separates evidence from assumption and keeps every attempt attributable.&lt;/p&gt;

&lt;p&gt;Start with &lt;code&gt;workload&lt;/code&gt;, prove &lt;code&gt;traffic&lt;/code&gt; under a deterministic case, and make &lt;code&gt;ethics&lt;/code&gt; a release gate rather than a follow-up task.&lt;/p&gt;

&lt;h2&gt;
  
  
  The reusable artifact
&lt;/h2&gt;

&lt;p&gt;Use this table as the review record. A row passes only when its evidence comes from the same request, test window, or configuration snapshot.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Checkpoint&lt;/th&gt;
&lt;th&gt;Evidence to capture&lt;/th&gt;
&lt;th&gt;Pass condition&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;workload&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;prompt/output_distributions,stream_share,tools,schema&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The owner, source, checked date, and known limitation are recorded.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;traffic&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;arrival_model,concurrency,warm-up,duration,region&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The limit is explicit and the request fails closed when it is exceeded.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;routing&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;model_ID,route_version,fallback_and_retry_policy&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The owner, source, checked date, and known limitation are recorded.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;measurement&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;eligible_denominator,errors,p50/p95/p99,TTFT_definition&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The value is exact, preserved, and compared at the wire boundary.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;saturation&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;queue,admission_rejects,upstream_429,timeout_phase&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The record joins to one logical request and one concrete attempt.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;ethics&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;owned_endpoint_and_approved_capacity;never_test_third_parties&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Identity, scope, and policy are checked immediately before execution.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Worked example
&lt;/h2&gt;

&lt;p&gt;The example is synthetic and deterministic. Replace identifiers and thresholds with reviewed values from your own workload; never paste production secrets or customer prompts into a test fixture.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;scenario: steady_mixed
duration: 20m
warmup: 5m
arrival_rate_rps: 2
max_concurrency: 24
requests:
  short: 60%
  long: 25%
  tool: 10%
  structured: 5%
thresholds:
  error_rate: "&amp;lt; 0.01"
  first_output_p95_ms: "&amp;lt; reviewed_target"
report_failures: true
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Implementation procedure
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Freeze the current request, response, configuration, and observable baseline before changing behavior.&lt;/li&gt;
&lt;li&gt;Run one deterministic positive case and retain the complete client-visible result.&lt;/li&gt;
&lt;li&gt;Run the paired negative or limit case so failure behavior is proved rather than inferred.&lt;/li&gt;
&lt;li&gt;Join every attempt to one logical request ID, then record timing, terminal state, and usage without sensitive content.&lt;/li&gt;
&lt;li&gt;Roll out through a bounded cohort with explicit stop conditions; do not widen traffic merely because the happy path passed.&lt;/li&gt;
&lt;li&gt;Re-read the durable state and public behavior after the change, and execute the prepared rollback if any invariant fails.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Failure modes
&lt;/h2&gt;

&lt;p&gt;The following failures invalidate the result even when the outer HTTP request appears successful:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Percentiles are published without the workload distribution, concurrency, failures, region, and sample window.&lt;/li&gt;
&lt;li&gt;Independent retry layers multiply attempts and turn a small 429 episode into sustained overload.&lt;/li&gt;
&lt;li&gt;Client cancellation does not reach queued work or the active upstream request, consuming capacity after the result is useless.&lt;/li&gt;
&lt;li&gt;Prompts, credentials, raw tool arguments, or provider payloads are copied into high-cardinality telemetry.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Modelflare boundary
&lt;/h2&gt;

&lt;p&gt;Modelflare can centralize OpenAI-compatible routing, keys, groups, usage records, and failure handling, but a configured route is not proof that every upstream supports every optional field. Verify the selected model and channel with the native protocol path. Keep provider prices in the current pricing source, preserve explicit zero values, and treat the final durable settlement—not an estimate—as billing truth.&lt;/p&gt;

&lt;p&gt;Use the &lt;a href="https://modelflare.dev/articles/ai-api-latency-metrics" rel="noopener noreferrer"&gt;parent guide&lt;/a&gt; for the broader decision boundary and the &lt;a href="https://modelflare.dev/docs" rel="noopener noreferrer"&gt;setup documents&lt;/a&gt; for current client configuration.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources and verification date
&lt;/h2&gt;

&lt;p&gt;Sources were checked on &lt;strong&gt;2026-08-07&lt;/strong&gt;. They establish the external contract or operating principle; they do not prove support on an untested provider route.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://grafana.com/docs/k6/latest/testing-guides/load-testing-websites/" rel="noopener noreferrer"&gt;Grafana k6: Load testing websites&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://grafana.com/docs/k6/latest/using-k6/thresholds/" rel="noopener noreferrer"&gt;Grafana k6: Thresholds&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://modelflare.dev/articles/llm-api-load-testing?utm_source=devto&amp;amp;utm_medium=syndication&amp;amp;utm_campaign=blog" rel="noopener noreferrer"&gt;modelflare.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I'm part of the Modelflare team, which builds the AI API gateway mentioned in this article.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>api</category>
      <category>performance</category>
      <category>testing</category>
    </item>
    <item>
      <title>An open-source desktop agent that follows DeepSeek's super-agent design (and what we left out)</title>
      <dc:creator>Magnus</dc:creator>
      <pubDate>Sun, 01 Nov 2026 16:21:26 +0000</pubDate>
      <link>https://dev.to/magnus_modelflare/an-open-source-desktop-agent-that-follows-deepseeks-super-agent-design-and-what-we-left-out-5aig</link>
      <guid>https://dev.to/magnus_modelflare/an-open-source-desktop-agent-that-follows-deepseeks-super-agent-design-and-what-we-left-out-5aig</guid>
      <description>&lt;p&gt;&lt;em&gt;Disclosure: I maintain AnyModelBot. This is an unofficial project, not affiliated with DeepSeek.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Most chatbots wait for you to speak and stop when they answer. Plenty of real work is not a question and an answer: research takes half an hour, prices need watching every day, a weekly report is due on Monday. You want to say it once, go do something else, and hear back only when there is a result or a decision that is yours.&lt;/p&gt;

&lt;p&gt;DeepSeek recently published &lt;code&gt;dsh-superagent-prototype&lt;/code&gt;, a proactive coding agent for one GitHub repository, along with an article called "Exploring Super-agent Design: Towards a More Autonomous Agent System". The README is clear about its status: it is a research prototype for reference, not an official DeepSeek product, and parts of the article are directions rather than shipped features. It is packaged as a bundle for DeepSeek Harness, listens to GitHub and optionally Feishu, and works on tickets in separate agent sessions.&lt;/p&gt;

&lt;p&gt;The part that stuck with us is a way of working rather than a feature: &lt;strong&gt;take as little human attention as possible, and give as much value as possible.&lt;/strong&gt; An agent that can act for a whole team can also waste a whole team's attention, so it acts only when asked, or when a rule the team wrote allows it, and it speaks only when someone has to decide or the result is ready to use.&lt;/p&gt;

&lt;p&gt;AnyModelBot is an open-source (MIT) desktop AI assistant for Windows, macOS and Linux. We built a one-person version of that idea into it, so it works as an out-of-the-box DeepSeek Super Agent. We believe it is one of the first apps to do this for individual users. Here is what that means in practice.&lt;/p&gt;

&lt;h3&gt;
  
  
  Three pieces, no extra setup
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Background tasks.&lt;/strong&gt; You hand over something that takes a while: research, a report, a code change, filing. The bot opens a task with its own agent session and folder (&lt;code&gt;tasks/&lt;/code&gt;), and the result comes back to the conversation you started it from. Chat never waits for tasks. Each bot runs two background tasks at a time, four across all bots.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Rules.&lt;/strong&gt; A rule is a standing instruction in one sentence plus a schedule: "every morning at 8, check X's price and tell me if it is under 200." A rule can start in &lt;strong&gt;observe&lt;/strong&gt; mode: it runs on schedule, but files are read-only, it never messages you, and actions that need approval are refused and logged. After three normal runs, a card in the "Needs you" inbox shows what it &lt;em&gt;would&lt;/em&gt; have sent and asks whether to switch it to execute.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Needs you.&lt;/strong&gt; One row in the sidebar collects everything that is waiting for you: a task's question, an approval, a failure, a spent budget, a rule that failed three times. Answer in the app, tap a Feishu card or reply in WeChat; once answered anywhere, it disappears everywhere.&lt;/p&gt;

&lt;h3&gt;
  
  
  A task that doesn't stall overnight
&lt;/h3&gt;

&lt;p&gt;A worked example. You message: "Compare A100 prices across three clouds, as a table." The bot starts a background task and replies with one line. You ask about tomorrow's weather and get an answer immediately. Midway, one provider's prices are behind a login. The bot asks: "Skip it? If you don't reply I'll skip." Then it carries on with everything that doesn't depend on the answer. If you never reply, the default applies, the result says so, and the question is withdrawn. If you do reply later, the task picks the answer up and revises.&lt;/p&gt;

&lt;h3&gt;
  
  
  Quiet by default
&lt;/h3&gt;

&lt;p&gt;Only three kinds of message are pushed: a usable result, a decision you must make, and a failure you must handle. Progress updates, "still working" and retries are never pushed. Quiet hours default to 22:00–08:00. Each chat gets at most 3 proactive messages a day on WeChat and 5 on Feishu; extras are merged into a morning digest.&lt;/p&gt;

&lt;p&gt;WeChat deserves honesty: it only lets a bot message you within 24 hours of your last message, up to 10 per window. We treat that as a hard rule and don't work around it. Undeliverable results are kept, shown in the inbox, and delivered in one combined message when you next write. Feishu has no such limit.&lt;/p&gt;

&lt;h3&gt;
  
  
  Permissions and money
&lt;/h3&gt;

&lt;p&gt;Permissions only tighten: a task inherits the bot's permission level at creation, an observing rule is read-only, and dangerous operations such as recursive deletes always ask first. Default spending caps are $1.00 per task, $0.10 per rule run and $3.00 per rule per month, estimated from Modelflare's public prices (the bill is the source of truth).&lt;/p&gt;

&lt;h3&gt;
  
  
  What we took, and what we left out
&lt;/h3&gt;

&lt;p&gt;dsh-superagent is a team tool aimed at one repository. We took the skeleton: a status table for work, restart recovery that resumes from the oldest item, a reserved slot for messages to humans, the "observe" acceptance mode, messages only for "done, needs a decision, can't do it", and a panel that answers "what needs me right now" and stays out of the way otherwise.&lt;/p&gt;

&lt;p&gt;We did not take Source, Trigger, Thread, Eval, Mandate review, Subscription, the GitHub PR lifecycle or Policy versions. A one-person assistant listens only to its owner. Event-driven "workloads" (for example a GitHub repo's new issues) are a direction we want to explore in the open, not a promise.&lt;/p&gt;

&lt;h3&gt;
  
  
  How it runs
&lt;/h3&gt;

&lt;p&gt;The agent runs on DeepSeek Harness. Each bot is one agent process, and tasks and rules open their own sessions inside it. Harness runs the sessions; the app owns tasks, schedules, delivery and budgets. Background sessions report through a structured &lt;code&gt;task_report&lt;/code&gt; tool (progress, needs you, done, failed, at most one question), and the inbox reads those fields instead of guessing from free text.&lt;/p&gt;

&lt;h3&gt;
  
  
  Try it, and the caveats
&lt;/h3&gt;

&lt;p&gt;Download the app from the GitHub Releases page and log in to Modelflare. You get 70+ models (GPT, Claude, Gemini, Grok, DeepSeek, Kimi, GLM and more) behind one account, priced per token, and you choose the international route or the one optimized for mainland China. The caveats: tasks and rules run on your computer and only while it is on, and which features work depends on your model, operating system and permissions.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Repo: &lt;a href="https://github.com/modelflare-ai/AnyModelBot" rel="noopener noreferrer"&gt;https://github.com/modelflare-ai/AnyModelBot&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Design doc (English): &lt;a href="https://github.com/modelflare-ai/AnyModelBot/blob/master/docs/design/background-tasks-and-proactive.md" rel="noopener noreferrer"&gt;https://github.com/modelflare-ai/AnyModelBot/blob/master/docs/design/background-tasks-and-proactive.md&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;DeepSeek's prototype: &lt;a href="https://github.com/deepseek-ai/dsh-superagent-prototype" rel="noopener noreferrer"&gt;https://github.com/deepseek-ai/dsh-superagent-prototype&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you've built something similar, I'd like to hear what you cut.&lt;/p&gt;

&lt;h2&gt;
  
  
  AnyModelBot 0.1.24 update
&lt;/h2&gt;

&lt;p&gt;AnyModelBot 0.1.24: Skills, chat-history search, and direct official API keys.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Import a ZIP containing &lt;code&gt;SKILL.md&lt;/code&gt; in Bot settings → Skills. Skills are managed per bot; scripts, references and assets are preserved.&lt;/li&gt;
&lt;li&gt;Search chats stored on your device with &lt;code&gt;Ctrl/Cmd+Shift+F&lt;/code&gt;, filtering by bot, conversation, channel and date. Search makes no model calls.&lt;/li&gt;
&lt;li&gt;Since 0.1.22, use your own official API key without an AnyModelBot account: OpenAI, Anthropic, Gemini, xAI, DeepSeek, Kimi, GLM, Qwen, MiniMax or Mistral. Model requests go straight to the provider, which bills you; keys stay on your device. Image/video generation still requires Modelflare.&lt;/li&gt;
&lt;li&gt;0.1.23 added Film Studio: short videos, episodic dramas, storyboards, narration, subtitles and local composition. Creative rules and the composition engine are ported from PRINTFILM (MIT).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Chat history stays on your device; model requests send the relevant content to your chosen provider. This does not mean all models run on your device.&lt;/p&gt;

&lt;p&gt;Download: &lt;a href="https://anymodel.bot/en/" rel="noopener noreferrer"&gt;https://anymodel.bot/en/&lt;/a&gt;&lt;br&gt;
Changelog: &lt;a href="https://anymodel.bot/changelog" rel="noopener noreferrer"&gt;https://anymodel.bot/changelog&lt;/a&gt;&lt;br&gt;
Source: &lt;a href="https://github.com/modelflare-ai/AnyModelBot" rel="noopener noreferrer"&gt;https://github.com/modelflare-ai/AnyModelBot&lt;/a&gt;&lt;br&gt;
Bugs / feature requests: &lt;a href="https://github.com/modelflare-ai/AnyModelBot/issues" rel="noopener noreferrer"&gt;https://github.com/modelflare-ai/AnyModelBot/issues&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>deepseek</category>
      <category>opensource</category>
      <category>agents</category>
    </item>
    <item>
      <title>Why AI Agent Cache Hit Rates Collapse: GPT, Claude, and Auditable Gateways</title>
      <dc:creator>Magnus</dc:creator>
      <pubDate>Thu, 29 Oct 2026 02:10:06 +0000</pubDate>
      <link>https://dev.to/modelflare_dev/why-ai-agent-cache-hit-rates-collapse-gpt-claude-and-auditable-gateways-1ian</link>
      <guid>https://dev.to/modelflare_dev/why-ai-agent-cache-hit-rates-collapse-gpt-claude-and-auditable-gateways-1ian</guid>
      <description>&lt;p&gt;A source-backed guide to third-party agent cache failures, GPT and Claude prompt-caching mechanics, reproducible hit-rate measurement, and Modelflare's public compensation boundary.&lt;/p&gt;

&lt;p&gt;AI agent caching is not a checkbox. It is a protocol, routing, and accounting contract. This article explains why an opaque third-party agent can show a very low cache hit rate even when the upstream model supports prompt caching, how GPT and Claude measure reuse differently, and what an auditable gateway should guarantee.&lt;/p&gt;

&lt;h2&gt;
  
  
  The decision in one sentence
&lt;/h2&gt;

&lt;p&gt;Do not put a production, cache-sensitive agent behind a third-party agent or gateway that cannot expose native cache usage, preserve a stable prefix, keep model and route affinity, and reconcile the result against a durable ledger. “Supports caching” is a feature claim; a measured, eligible hit rate is an operating fact.&lt;/p&gt;

&lt;p&gt;This is not a claim that every third-party agent fails. Public documentation cannot establish a vendor-wide percentage without a fixed corpus, a fixed model, a known observation window, and request-level usage evidence. The reliable conclusion is narrower: an opaque translation layer creates several independent ways to turn a valid provider cache into an almost-always-cold path. Treat that lack of evidence as a reason not to use the path for cache-dependent production work.&lt;/p&gt;

&lt;h2&gt;
  
  
  Define the denominator before discussing a percentage
&lt;/h2&gt;

&lt;p&gt;The provider usually reports three different buckets. Let &lt;code&gt;R&lt;/code&gt; be tokens read from a cache, &lt;code&gt;W&lt;/code&gt; be tokens written to a cache, and &lt;code&gt;U&lt;/code&gt; be input tokens processed without reuse. For cache-eligible prefixes, the comparable hit rate is:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;eligible_hit_rate = R / (R + W)&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;For all input sent to the model, the reuse share is:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;input_reuse_share = R / (R + W + U)&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Those numbers answer different questions. A dashboard that divides by all input can look low when the agent sends many short, ineligible requests. A dashboard that divides only eligible traffic can look high while a large dynamic suffix still dominates spend. Report both, plus the eligibility rule and the time window.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmodelflare.dev%2Farticles%2Fdiagrams%2Fai-agent-cache-prefix.svg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmodelflare.dev%2Farticles%2Fdiagrams%2Fai-agent-cache-prefix.svg" alt="A stable prefix enters the reusable cache while changing agent state bypasses it" width="1200" height="520"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The provider fields are the evidence, not a green badge in an agent UI:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Signal&lt;/th&gt;
&lt;th&gt;OpenAI field&lt;/th&gt;
&lt;th&gt;Claude field&lt;/th&gt;
&lt;th&gt;What it proves&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Reused prefix&lt;/td&gt;
&lt;td&gt;&lt;code&gt;input_tokens_details.cached_tokens&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;cache_read_input_tokens&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Tokens actually served from a matching entry&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;New cache entry&lt;/td&gt;
&lt;td&gt;&lt;code&gt;input_tokens_details.cache_write_tokens&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;cache_creation_input_tokens&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Tokens charged to create or extend an entry&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Unreused input&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;input_tokens - input_tokens_details.cached_tokens - input_tokens_details.cache_write_tokens&lt;/code&gt; (derive carefully)&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;input_tokens&lt;/code&gt; after the breakpoint&lt;/td&gt;
&lt;td&gt;Input outside the cached prefix; semantics differ&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Correlation&lt;/td&gt;
&lt;td&gt;request ID plus model and route&lt;/td&gt;
&lt;td&gt;request ID plus model and route&lt;/td&gt;
&lt;td&gt;Which provider attempt produced the usage&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Worked example, using synthetic numbers rather than Modelflare production telemetry: &lt;code&gt;R=720,000&lt;/code&gt;, &lt;code&gt;W=80,000&lt;/code&gt;, and &lt;code&gt;U=200,000&lt;/code&gt; give an eligible hit rate of &lt;code&gt;720,000 / 800,000 = 90%&lt;/code&gt;, but an all-input reuse share of &lt;code&gt;720,000 / 1,000,000 = 72%&lt;/code&gt;. Publishing only one of those values hides the denominator.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;input_tokens_details.cache_write_tokens=0&lt;/code&gt; is not proof of “no cache.” A request can be a cache read and therefore create no new entry. Conversely, a missing usage field in a third-party response is not a zero; it is an observability failure that must be recorded as &lt;strong&gt;not auditable&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why an agent gateway loses hits even when the model supports caching
&lt;/h2&gt;

&lt;p&gt;The failure is usually in the path between the application and the provider. These are the high-frequency breakpoints:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Dynamic bytes arrive too early.&lt;/strong&gt; Timestamps, request IDs, user names, experiment flags, or a changing “current date” in the system prompt alter the prefix before the reusable instructions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tools are reserialized.&lt;/strong&gt; Adding, removing, reordering, or nondeterministically serializing a tool schema changes the exact prefix. A harmless-looking JSON key order can become a cache miss.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fallback changes the cache identity.&lt;/strong&gt; A load balancer that moves between model aliases, regions, organizations, or provider credentials does not share one universal cache entry.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The adapter drops native controls.&lt;/strong&gt; Removing &lt;code&gt;cache_control&lt;/code&gt;, &lt;code&gt;prompt_cache_key&lt;/code&gt;, retention options, or usage details turns a provider feature into an invisible best effort.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The prompt is below the provider threshold.&lt;/strong&gt; Short agent turns can be valid requests but still be ineligible for caching.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The TTL window is crossed.&lt;/strong&gt; A five-minute Claude entry or a model-specific OpenAI retention window can expire during a human-in-the-loop pause.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Parallel warm-up races.&lt;/strong&gt; Concurrent first requests may all arrive before the first response makes a cache entry available.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;History is rewritten.&lt;/strong&gt; Summarization, compaction, truncation, or a different serialization of prior messages changes the prefix instead of appending to it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmodelflare.dev%2Farticles%2Fdiagrams%2Fcache-hit-rate-denominator.svg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmodelflare.dev%2Farticles%2Fdiagrams%2Fcache-hit-rate-denominator.svg" alt="Three request shapes show how reads, writes, and uncached input create different denominators" width="1200" height="520"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;None of these failures requires a dishonest vendor. They are predictable consequences of a gateway that treats an agent request as free-form text instead of preserving a provider’s cache contract. The practical warning is stronger than a marketing comparison: if the agent cannot show which breakpoint failed, you cannot price or debug cache-dependent traffic.&lt;/p&gt;

&lt;h2&gt;
  
  
  GPT and Claude use related ideas, not interchangeable semantics
&lt;/h2&gt;

&lt;p&gt;Both providers require an exact reusable prefix, but the control surface and usage accounting are different. The table below summarizes the official guides checked on &lt;strong&gt;2026-08-25&lt;/strong&gt;; model names, minimums, and retention policies can change, so recheck the linked pages before changing a production policy.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dimension&lt;/th&gt;
&lt;th&gt;OpenAI prompt caching&lt;/th&gt;
&lt;th&gt;Claude prompt caching&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Reusable unit&lt;/td&gt;
&lt;td&gt;The full rendered context prefix, including instructions, tools, history, and multimodal parts&lt;/td&gt;
&lt;td&gt;The ordered prefix through a &lt;code&gt;cache_control&lt;/code&gt; breakpoint: tools, system, then messages&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Minimum length&lt;/td&gt;
&lt;td&gt;The current guide lists 1,024 visible tokens for GPT-5.6+ and generally 2,048 for older models&lt;/td&gt;
&lt;td&gt;Model-specific minimums currently span roughly 512–4,096 tokens; shorter prompts run without caching&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Controls&lt;/td&gt;
&lt;td&gt;Implicit caching; explicit breakpoints and a stable &lt;code&gt;prompt_cache_key&lt;/code&gt; on supported models&lt;/td&gt;
&lt;td&gt;Top-level automatic caching or explicit block breakpoints; up to four breakpoints and a 20-block lookback&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Retention&lt;/td&gt;
&lt;td&gt;GPT-5.6+ supports a 30-minute TTL; earlier models expose retention modes with provider-defined typical windows&lt;/td&gt;
&lt;td&gt;Five-minute default TTL, refreshed on use; optional one-hour TTL at a higher write price&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Price shape&lt;/td&gt;
&lt;td&gt;On the current GPT-5.6+ guide, writes are 1.25× base input and reads are 0.1×&lt;/td&gt;
&lt;td&gt;Five-minute writes are 1.25× and one-hour writes are 2×; reads are 0.1×&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Usage evidence&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;input_tokens_details.cached_tokens&lt;/code&gt; and, when applicable, &lt;code&gt;input_tokens_details.cache_write_tokens&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;cache_read_input_tokens&lt;/code&gt;, &lt;code&gt;cache_creation_input_tokens&lt;/code&gt;, and post-breakpoint &lt;code&gt;input_tokens&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Frequent invalidator&lt;/td&gt;
&lt;td&gt;Model/tool/settings changes, machine overflow, or a prefix change before the breakpoint&lt;/td&gt;
&lt;td&gt;Model/system/tools/message changes, a missing previous message, or a concurrent warm-up miss&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;OpenAI notes that cache entries live on individual machines and that a &lt;code&gt;prompt_cache_key&lt;/code&gt; helps group and route requests but does not pin a machine or guarantee a hit. Claude documents exact matching, workspace-level isolation, and explicit diagnostics such as &lt;code&gt;tools_changed&lt;/code&gt; and &lt;code&gt;messages_changed&lt;/code&gt;. A gateway that hides those distinctions cannot honestly convert provider documentation into a single “cache rate” promise.&lt;/p&gt;

&lt;p&gt;The price multipliers explain why this matters. If one write is followed by one read, the cached input portion costs about &lt;code&gt;1.25 + 0.10 = 1.35×&lt;/code&gt; the uncached input unit on the cited OpenAI model, rather than two uncached units. Ten fully reused requests cost about &lt;code&gt;1.25 + 9×0.10 = 2.15×&lt;/code&gt; instead of &lt;code&gt;10×&lt;/code&gt;. These are official illustrative calculations, not a Modelflare invoice or a promise for every model.&lt;/p&gt;

&lt;h2&gt;
  
  
  The adapter tax is measurable
&lt;/h2&gt;

&lt;p&gt;Use a failure matrix instead of a screenshot. Keep the application prompt, model, credentials, and request rate fixed; change one variable at a time and retain the raw usage object.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Controlled change&lt;/th&gt;
&lt;th&gt;Expected provider signal&lt;/th&gt;
&lt;th&gt;What an opaque agent may hide&lt;/th&gt;
&lt;th&gt;Release interpretation&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Append only the user turn&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;R&lt;/code&gt; rises after the first &lt;code&gt;W&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Rewritten history or a new route&lt;/td&gt;
&lt;td&gt;Prefix preservation works&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Add a timestamp to the system prompt&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;R&lt;/code&gt; falls to zero or a new &lt;code&gt;W&lt;/code&gt; appears&lt;/td&gt;
&lt;td&gt;Which bytes changed&lt;/td&gt;
&lt;td&gt;Dynamic prefix is a cache breaker&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reorder one tool property&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;tools_changed&lt;/code&gt; or a new write&lt;/td&gt;
&lt;td&gt;Serializer behavior&lt;/td&gt;
&lt;td&gt;Tool schema must be deterministic&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Split traffic across aliases or machines&lt;/td&gt;
&lt;td&gt;Lower and more variable &lt;code&gt;R&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Selected route and cache key&lt;/td&gt;
&lt;td&gt;Affinity policy is missing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sleep past the documented TTL&lt;/td&gt;
&lt;td&gt;New write after expiry&lt;/td&gt;
&lt;td&gt;Expiry time and retention mode&lt;/td&gt;
&lt;td&gt;Measure human-pause workload separately&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fire two identical first requests in parallel&lt;/td&gt;
&lt;td&gt;One or both may write&lt;/td&gt;
&lt;td&gt;Warm-up race and attempt order&lt;/td&gt;
&lt;td&gt;Do not infer capacity from a cold burst&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The test must retain the request ID, stream mode, first event time, exact model, selected route, cache fields, and UTC timestamp. Redact prompts, keys, and customer content. If a gateway returns only a normalized “input tokens” total, label the run &lt;strong&gt;not auditable&lt;/strong&gt;; do not turn missing dimensions into a fabricated zero or a favorable estimate.&lt;/p&gt;

&lt;h2&gt;
  
  
  A reproducible audit record
&lt;/h2&gt;

&lt;p&gt;The following is a small, synthetic record format. It is deliberately provider-neutral at the envelope and preserves native fields inside &lt;code&gt;usage&lt;/code&gt;. It is not a benchmark result.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{"request_id":"demo-001","timestamp":"2026-08-25T02:00:00Z","model":"MODEL_ID","route":"route-a","stream":true,"usage":{"input_tokens":1000000,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":1000000}}}
{"request_id":"demo-002","timestamp":"2026-08-25T02:00:03Z","model":"MODEL_ID","route":"route-a","stream":true,"usage":{"input_tokens":1000000,"input_tokens_details":{"cached_tokens":720000,"cache_write_tokens":80000}}}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run at least five phases: a serial warm-up, an append-only conversation, a dynamic-system mutation, a tool-order mutation, and a TTL-gap replay. For Claude, map the native read/write fields into the same report without replacing them; for OpenAI, retain both cached and write fields when returned. Compare &lt;code&gt;R/(R+W)&lt;/code&gt; and &lt;code&gt;R/(R+W+U)&lt;/code&gt; per phase, route, model, and UTC day. A single blended number is not enough to decide whether an agent is safe for production.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Modelflare guarantees—and what it does not
&lt;/h2&gt;

&lt;p&gt;Modelflare’s public status page currently describes an &lt;strong&gt;OpenAI Cache Hit Rate Guarantee&lt;/strong&gt;. For eligible requests that satisfy OpenAI’s caching requirements and form a valid cache, the daily rate is calculated by UTC calendar day. If the measured rate falls below the applicable tier, the shortfall is compensated and shown in &lt;strong&gt;Dashboard → Token Usage Analysis&lt;/strong&gt;. The public tiers currently shown are &lt;strong&gt;65%&lt;/strong&gt;, &lt;strong&gt;75%&lt;/strong&gt;, and &lt;strong&gt;85%&lt;/strong&gt; for the published group levels.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmodelflare.dev%2Farticles%2Fdiagrams%2Fmodelflare-cache-guarantee.svg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmodelflare.dev%2Farticles%2Fdiagrams%2Fmodelflare-cache-guarantee.svg" alt="Three public guarantee tiers rise from 65 to 85 percent" width="1200" height="520"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The boundary is intentional:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The guarantee applies to eligible, valid OpenAI cache traffic, not to a short or constantly changing prompt that never qualifies.&lt;/li&gt;
&lt;li&gt;It does not turn a changing model, tool schema, route, or TTL into a reusable prefix.&lt;/li&gt;
&lt;li&gt;It is calculated per UTC calendar day and credited through the documented account surface; it is not an assertion that every individual request will hit.&lt;/li&gt;
&lt;li&gt;The native usage evidence and eligibility calculation remain visible requirements. A compensation rule is useful precisely because the denominator is explicit.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That is the difference between an auditable service promise and a third-party agent slogan: the former names the eligible population, observation window, threshold, and credit destination.&lt;/p&gt;

&lt;h2&gt;
  
  
  Price advantage and operating legitimacy are separate proofs
&lt;/h2&gt;

&lt;p&gt;The current public pricing page also displays a &lt;strong&gt;0.015 first-top-up offer ratio&lt;/strong&gt; for the applicable campaign/group, with the page’s stated minimum single top-up and eligibility terms. This is a price incentive; it must not be conflated with the cache guarantee. Check the live pricing page for the exact model scope, campaign status, and settlement rules before making a purchase decision.&lt;/p&gt;

&lt;p&gt;Modelflare’s public trust and legal materials identify &lt;strong&gt;Havenbyte LLC&lt;/strong&gt; as the operator and describe the operation as United States based. They list &lt;strong&gt;Stripe&lt;/strong&gt; as the payment processor for payment handling, billing, invoices, refunds, and fraud controls. These are useful custody and accountability signals, not a substitute for reading the terms or testing the API. The article makes no claim about a particular state registration, certification, or provider affiliation beyond those public materials.&lt;/p&gt;

&lt;h2&gt;
  
  
  Recommendation for production agents
&lt;/h2&gt;

&lt;p&gt;Choose a third-party agent only when it can pass this checklist:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It forwards the provider’s native cache controls and returns native read/write usage.&lt;/li&gt;
&lt;li&gt;It keeps the stable instruction and tool prefix byte-identical, then appends dynamic state.&lt;/li&gt;
&lt;li&gt;It exposes the selected model, route, organization/region boundary, TTL mode, and request ID.&lt;/li&gt;
&lt;li&gt;It records serial and parallel warm-up behavior instead of averaging them away.&lt;/li&gt;
&lt;li&gt;It defines eligible traffic, denominator, UTC window, threshold, and compensation in writing.&lt;/li&gt;
&lt;li&gt;It lets you export request-level evidence without exposing secrets or customer content.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If any of those answers is “no,” do not use the path for a workload whose economics depend on cache reuse. Use a direct provider path for the experiment, or choose an auditable gateway such as Modelflare and verify the exact route with the same corpus. For adjacent controls, see &lt;a href="https://modelflare.dev/articles/reliable-ai-api-routing" rel="noopener noreferrer"&gt;reliable AI API routing&lt;/a&gt;, &lt;a href="https://modelflare.dev/articles/ai-api-cost-tracking" rel="noopener noreferrer"&gt;AI API cost tracking&lt;/a&gt;, &lt;a href="https://modelflare.dev/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;, and &lt;a href="https://modelflare.dev/trust" rel="noopener noreferrer"&gt;trust&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources and verification date
&lt;/h2&gt;

&lt;p&gt;The following primary sources were checked on &lt;strong&gt;2026-08-25&lt;/strong&gt;. They describe provider contracts and Modelflare’s current public policy; they do not establish a universal hit rate for an unnamed third-party agent.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://developers.openai.com/api/docs/guides/prompt-caching" rel="noopener noreferrer"&gt;OpenAI Prompt Caching guide&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developers.openai.com/api/docs/pricing" rel="noopener noreferrer"&gt;OpenAI API pricing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://platform.claude.com/docs/en/build-with-claude/prompt-caching" rel="noopener noreferrer"&gt;Anthropic Prompt Caching guide&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics" rel="noopener noreferrer"&gt;Anthropic cache diagnostics&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://modelflare.dev/api/status" rel="noopener noreferrer"&gt;Modelflare live status and cache guarantee&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://modelflare.dev/pricing" rel="noopener noreferrer"&gt;Modelflare pricing and current offer terms&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://modelflare.dev/trust" rel="noopener noreferrer"&gt;Modelflare trust and operating entity&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  FAQ: Is a low third-party hit rate always fraud?
&lt;/h3&gt;

&lt;p&gt;No. It may be a valid result of short prompts, a changing prefix, route fan-out, TTL expiry, or a missing usage field. The correct finding is “not reproducible” or “not auditable” until the controlled test shows the cause.&lt;/p&gt;

&lt;h3&gt;
  
  
  FAQ: Can I compare Claude and GPT with one number?
&lt;/h3&gt;

&lt;p&gt;Only after normalizing the denominator and preserving each provider’s native fields. Compare the same corpus and workload phase, not a blended dashboard total.&lt;/p&gt;

&lt;h3&gt;
  
  
  FAQ: Does compensation remove the need to design a stable prefix?
&lt;/h3&gt;

&lt;p&gt;No. Compensation limits the financial downside for eligible OpenAI cache traffic; it cannot make an ineligible request reusable or repair an agent that rewrites the prefix.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://modelflare.dev/articles/ai-agent-cache-hit-rate?utm_source=devto&amp;amp;utm_medium=syndication&amp;amp;utm_campaign=blog" rel="noopener noreferrer"&gt;modelflare.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I'm part of the Modelflare team, which builds the AI API gateway mentioned in this article.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>agents</category>
      <category>performance</category>
    </item>
    <item>
      <title>How to Evaluate an AI API Gateway: A Production Checklist</title>
      <dc:creator>Magnus</dc:creator>
      <pubDate>Tue, 27 Oct 2026 02:05:27 +0000</pubDate>
      <link>https://dev.to/modelflare_dev/how-to-evaluate-an-ai-api-gateway-a-production-checklist-1hnj</link>
      <guid>https://dev.to/modelflare_dev/how-to-evaluate-an-ai-api-gateway-a-production-checklist-1hnj</guid>
      <description>&lt;p&gt;A reproducible gateway evaluation covering protocol conformance, failure drills, latency, usage and cost reconciliation, security, operations, and exit risk.&lt;/p&gt;

&lt;p&gt;Evaluate an AI API gateway by running your real protocol contract through it, forcing the failure modes you care about, and checking the request-level evidence it produces. A feature list or successful “hello world” request cannot prove streaming correctness, tool compatibility, fallback safety, cost accuracy, security boundaries, or a usable exit path.&lt;/p&gt;

&lt;p&gt;The most reliable process uses two kinds of criteria: non-negotiable gates that cause a candidate to fail, and scored operational qualities that distinguish candidates after every gate passes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Define the workload contract first
&lt;/h2&gt;

&lt;p&gt;Do not begin with a vendor comparison table. Begin with one representative workload and write down its invariant contract:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;exact endpoint: Responses, Chat Completions, embeddings, images, or another API;&lt;/li&gt;
&lt;li&gt;exact model identifiers and whether aliases are permitted;&lt;/li&gt;
&lt;li&gt;streaming and non-streaming modes in use;&lt;/li&gt;
&lt;li&gt;Structured Outputs, Function Calling, hosted tools, reasoning, or other required fields;&lt;/li&gt;
&lt;li&gt;typical and high-percentile input and output lengths;&lt;/li&gt;
&lt;li&gt;concurrency, request rate, region, and user-facing deadline;&lt;/li&gt;
&lt;li&gt;required usage, cache, cost, and request-correlation fields;&lt;/li&gt;
&lt;li&gt;allowed fallback routes and whether model substitution is forbidden;&lt;/li&gt;
&lt;li&gt;data-retention, access, residency, and deletion requirements;&lt;/li&gt;
&lt;li&gt;application operations that can create side effects.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One gateway can pass for a text-only internal assistant and fail for a streaming coding agent. “OpenAI-compatible” is not a sufficient workload definition because compatibility can differ by endpoint, event type, tool, schema keyword, and provider route.&lt;/p&gt;

&lt;p&gt;If the team is still deciding whether it needs a proxy or a model-aware control plane, start with &lt;a href="https://modelflare.dev/articles/llm-proxy-vs-ai-gateway" rel="noopener noreferrer"&gt;LLM Proxy vs AI Gateway&lt;/a&gt;. This checklist assumes the gateway category is already justified and tests whether a specific implementation can own the required responsibilities.&lt;/p&gt;

&lt;h2&gt;
  
  
  Apply fast disqualifiers before a long trial
&lt;/h2&gt;

&lt;p&gt;The first review should remove candidates that cannot satisfy a mandatory boundary. Ask for demonstrable behavior, not a roadmap statement.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Gate&lt;/th&gt;
&lt;th&gt;Immediate failure condition&lt;/th&gt;
&lt;th&gt;Evidence to request&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Protocol&lt;/td&gt;
&lt;td&gt;A required request field, output item, or stream event is dropped or rewritten incorrectly&lt;/td&gt;
&lt;td&gt;Captured redacted request/response pair and parser result&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Model identity&lt;/td&gt;
&lt;td&gt;The gateway silently changes the requested model&lt;/td&gt;
&lt;td&gt;Attempt record with requested and actual model&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Streaming&lt;/td&gt;
&lt;td&gt;It buffers the full response, loses cancellation, or corrupts Tool Argument fragments&lt;/td&gt;
&lt;td&gt;Timestamped event sequence and cancellation trace&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Authentication&lt;/td&gt;
&lt;td&gt;Browser or workload clients receive provider credentials&lt;/td&gt;
&lt;td&gt;Credential-flow diagram and a live key-rotation test&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tenant isolation&lt;/td&gt;
&lt;td&gt;One project can use or inspect another project’s keys, usage, or logs&lt;/td&gt;
&lt;td&gt;Authorization tests using real isolated accounts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cost evidence&lt;/td&gt;
&lt;td&gt;A final charge cannot be connected to model, route, price basis, and usage&lt;/td&gt;
&lt;td&gt;One reconciled request ledger&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Failure safety&lt;/td&gt;
&lt;td&gt;A partial stream is transparently replayed or a cancellation starts another attempt&lt;/td&gt;
&lt;td&gt;Forced partial-stream and cancel traces&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Export and exit&lt;/td&gt;
&lt;td&gt;Configuration and request contract cannot be recovered without rewriting the application&lt;/td&gt;
&lt;td&gt;Export sample and provider-native rollback drill&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A candidate that fails a mandatory gate should not receive a high aggregate score to compensate. Security isolation cannot be offset by a good dashboard, and an incorrect Tool Contract cannot be offset by a lower price.&lt;/p&gt;

&lt;h2&gt;
  
  
  Build a small protocol conformance corpus
&lt;/h2&gt;

&lt;p&gt;Use deterministic, non-sensitive inputs and keep the expected wire behavior under version control. The corpus should call the real gateway endpoint; it should not mock the provider or reimplement the gateway’s conversion logic as the test oracle.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Case&lt;/th&gt;
&lt;th&gt;Request&lt;/th&gt;
&lt;th&gt;Required observation&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Basic non-streaming text&lt;/td&gt;
&lt;td&gt;Pinned model and fixed prompt&lt;/td&gt;
&lt;td&gt;Correct status, model identity, text location, usage, request ID&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Streaming text&lt;/td&gt;
&lt;td&gt;Same prompt with streaming enabled&lt;/td&gt;
&lt;td&gt;Ordered events, first effective output, final event, cancellation behavior&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Structured output&lt;/td&gt;
&lt;td&gt;Strict schema with required fields and &lt;code&gt;additionalProperties: false&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Valid output or an explicit unsupported error; no silent downgrade&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Function Calling&lt;/td&gt;
&lt;td&gt;One read-only function and one returned result&lt;/td&gt;
&lt;td&gt;Function name, JSON arguments, Call ID correlation, final answer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;No-tool path&lt;/td&gt;
&lt;td&gt;Same tools declared but no tool required&lt;/td&gt;
&lt;td&gt;Normal text without a fabricated Tool Call&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Invalid field&lt;/td&gt;
&lt;td&gt;Deliberately unsupported or malformed request&lt;/td&gt;
&lt;td&gt;Stable client error; no provider fallback that hides the defect&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Long input boundary&lt;/td&gt;
&lt;td&gt;Input just below and above the approved limit&lt;/td&gt;
&lt;td&gt;Documented acceptance or explicit rejection, not truncation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Usage detail&lt;/td&gt;
&lt;td&gt;Request that exercises cached or reasoning usage when supported&lt;/td&gt;
&lt;td&gt;Fields survive the route and reconcile with the billing record&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cancellation&lt;/td&gt;
&lt;td&gt;Client cancels after connection and after first output&lt;/td&gt;
&lt;td&gt;Upstream work stops and no new fallback attempt starts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Partial stream&lt;/td&gt;
&lt;td&gt;Connection fails after effective output&lt;/td&gt;
&lt;td&gt;One explicit partial failure; no invisible second answer&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Run every required case against every route that may serve the workload. A primary route passing does not qualify its fallback. The &lt;a href="https://modelflare.dev/articles/structured-outputs-openai-compatible-api" rel="noopener noreferrer"&gt;Structured Outputs guide&lt;/a&gt; and &lt;a href="https://modelflare.dev/articles/function-calling-responses-vs-chat-completions" rel="noopener noreferrer"&gt;Function Calling comparison&lt;/a&gt; provide field-level test cases for those two capabilities.&lt;/p&gt;

&lt;p&gt;Record the gateway version, route configuration version, model ID, provider, region, timestamp, and sanitized result hash. Volatile model and provider behavior should be rechecked before rollout and after a material route change.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test routing and failure behavior, not only success
&lt;/h2&gt;

&lt;p&gt;Reliability claims matter only when the failure policy is visible. Force each condition before production:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;primary route unavailable before headers;&lt;/li&gt;
&lt;li&gt;provider rate limit with and without &lt;code&gt;Retry-After&lt;/code&gt;;&lt;/li&gt;
&lt;li&gt;upstream authentication or account failure;&lt;/li&gt;
&lt;li&gt;slow headers and slow first effective output;&lt;/li&gt;
&lt;li&gt;malformed provider response;&lt;/li&gt;
&lt;li&gt;client cancellation while the upstream is pending;&lt;/li&gt;
&lt;li&gt;connection loss after visible output begins;&lt;/li&gt;
&lt;li&gt;all eligible routes exhausted.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For each case, capture the attempt order, selected route, status, timing, whether output had started, terminal reason, and any usage or cost. Confirm that the gateway preserves the requested model and protocol unless a separate model-substitution policy is explicitly enabled.&lt;/p&gt;

&lt;p&gt;Measure attempt amplification across the SDK, application, gateway, and provider. One layer should own immediate same-contract fallback, while the application owns whether the entire user action can be repeated. The &lt;a href="https://modelflare.dev/articles/ai-api-fallback-matrix" rel="noopener noreferrer"&gt;AI API Fallback Strategy&lt;/a&gt; provides a phase-aware failure matrix and retry-budget model.&lt;/p&gt;

&lt;p&gt;Latency needs the same precision. Compare time to upstream headers, first SSE event, first effective output, first visible text, completion, and visible output speed at realistic concurrency. Do not accept one unexplained “latency” average. See &lt;a href="https://modelflare.dev/articles/ai-api-latency-metrics" rel="noopener noreferrer"&gt;AI API Latency Metrics&lt;/a&gt; for definitions and comparison controls.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reconcile usage and cost from one request
&lt;/h2&gt;

&lt;p&gt;Choose several completed requests and follow each one through the full accounting chain:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;application request ID
  → gateway attempt sequence
  → selected model and route
  → provider or normalized usage
  → applicable price basis
  → final recorded charge
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The evaluation should answer:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Are input, output, cached, reasoning, and tool-related units represented when applicable?&lt;/li&gt;
&lt;li&gt;Which values come from the provider and which are estimated?&lt;/li&gt;
&lt;li&gt;When is the model price selected, and is it frozen for the request?&lt;/li&gt;
&lt;li&gt;Does a group, service tier, discount, or surcharge change the user charge?&lt;/li&gt;
&lt;li&gt;Which failed attempts can create provider cost, and how are they recorded?&lt;/li&gt;
&lt;li&gt;Can a final successful fallback hide earlier billable attempts?&lt;/li&gt;
&lt;li&gt;Are currency conversion and rounding rules explicit?&lt;/li&gt;
&lt;li&gt;Can finance reproduce a daily total from immutable request records?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Test a normal completion, a same-contract fallback, a cancelled request, and an upstream error. A dashboard total is not enough; the gateway must produce a defensible per-request record. &lt;a href="https://modelflare.dev/articles/ai-api-cost-tracking" rel="noopener noreferrer"&gt;AI API Cost Tracking&lt;/a&gt; separates provider usage, platform pricing, customer charge, and supplier cost.&lt;/p&gt;

&lt;p&gt;Do not compare vendor savings unless the same model, workload, cache behavior, output length, failure rate, and provider price basis are held constant. A lower apparent cost can be caused by missing usage or silent model substitution.&lt;/p&gt;

&lt;h2&gt;
  
  
  Verify the security and data boundary
&lt;/h2&gt;

&lt;p&gt;Draw the actual data flow from the client to the gateway and each provider. For every hop, identify who can read credentials, request content, response content, metadata, and administrative configuration.&lt;/p&gt;

&lt;p&gt;At minimum, verify:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;provider credentials are stored server-side, encrypted at rest, and never returned to ordinary clients;&lt;/li&gt;
&lt;li&gt;application keys can be scoped by project or workload and revoked independently;&lt;/li&gt;
&lt;li&gt;authorization is enforced server-side on every management and log endpoint;&lt;/li&gt;
&lt;li&gt;logs avoid full API keys and have explicit prompt/response retention controls;&lt;/li&gt;
&lt;li&gt;support access is attributable and bounded;&lt;/li&gt;
&lt;li&gt;configuration changes have actor, time, before/after state, and rollback evidence;&lt;/li&gt;
&lt;li&gt;exported traces redact secrets and personal or proprietary content;&lt;/li&gt;
&lt;li&gt;deletion and retention behavior can be demonstrated, not only described;&lt;/li&gt;
&lt;li&gt;region and subprocessor claims match the route actually used;&lt;/li&gt;
&lt;li&gt;abuse limits run before expensive upstream work when possible.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Ask what happens during key rotation, an operator departure, a compromised application key, and a provider-key leak. Run a rotation and revocation exercise with real isolated test credentials. Do not copy a production secret into an evaluation environment.&lt;/p&gt;

&lt;p&gt;The gateway cannot make unsafe application tools safe. Tool authorization, transactionality, approval, and idempotency remain application responsibilities even when model access is centralized. Use &lt;a href="https://modelflare.dev/articles/api-key-security-cost-controls" rel="noopener noreferrer"&gt;AI API Key Security and Cost Controls&lt;/a&gt; to separate credentials and workload limits.&lt;/p&gt;

&lt;h2&gt;
  
  
  Evaluate the operational control plane
&lt;/h2&gt;

&lt;p&gt;The data plane may work while the control plane creates operational risk. Review how operators make and recover from changes:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Area&lt;/th&gt;
&lt;th&gt;Questions to answer&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Versioning&lt;/td&gt;
&lt;td&gt;Is each route, price, policy, and key change versioned or attributable?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Validation&lt;/td&gt;
&lt;td&gt;Can an invalid route or incompatible model be rejected before activation?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rollout&lt;/td&gt;
&lt;td&gt;Can a change target a small workload or percentage first?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rollback&lt;/td&gt;
&lt;td&gt;Can operators restore the last known-good configuration quickly?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Availability&lt;/td&gt;
&lt;td&gt;What happens to existing and new requests if the control plane is unavailable?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Health&lt;/td&gt;
&lt;td&gt;Is channel health based on current evidence, and can automatic disablement be inspected?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Incidents&lt;/td&gt;
&lt;td&gt;Can one request be reconstructed without searching several unrelated systems?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Limits&lt;/td&gt;
&lt;td&gt;Are rate and quota decisions atomic enough to remain correct under concurrency?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Change ownership&lt;/td&gt;
&lt;td&gt;Are emergency edits separated from normal product configuration?&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Run one configuration rollback and one unhealthy-route removal. Measure the operator steps and verify the resulting data-plane behavior. A screenshot of a rollback button is not the same as a completed rollback drill.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test the exit path before signing
&lt;/h2&gt;

&lt;p&gt;Gateway adoption can create dependencies on model aliases, custom headers, proprietary route names, log APIs, normalized error shapes, or hosted Prompt and Tool configuration. List each dependency and decide whether it is an intentional benefit or accidental lock-in.&lt;/p&gt;

&lt;p&gt;A practical exit drill should:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;export route, key-policy, price, and audit configuration in a documented format;&lt;/li&gt;
&lt;li&gt;switch one workload to a provider-native test endpoint;&lt;/li&gt;
&lt;li&gt;replace gateway-only headers or aliases with explicit application configuration;&lt;/li&gt;
&lt;li&gt;preserve request correlation and usage reconciliation during the switch;&lt;/li&gt;
&lt;li&gt;document functionality that cannot move without redesign;&lt;/li&gt;
&lt;li&gt;estimate exit engineering from the observed work, not a sales claim.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;An exit path does not require the gateway to be interchangeable with every provider. It requires the team to know what it owns, what the gateway owns, and how to recover the underlying protocol contract.&lt;/p&gt;

&lt;h2&gt;
  
  
  Score only after every mandatory gate passes
&lt;/h2&gt;

&lt;p&gt;Use a worksheet with &lt;code&gt;pass/fail&lt;/code&gt; for hard boundaries and a small evidence score for operational quality:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Score&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Unsupported or contradicted by the test&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Claimed or manually demonstrated once, with weak evidence&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Repeatably demonstrated with request-level evidence&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Repeatably demonstrated, monitored, and recoverable through a tested control&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Suggested scored areas are protocol coverage, route reliability, attempt evidence, latency diagnostics, usage accuracy, cost reconciliation, key isolation, auditability, configuration rollback, supportability, and exit effort. Weight them according to the workload, but keep the raw evidence beside every score.&lt;/p&gt;

&lt;p&gt;Avoid a false-precision total such as &lt;code&gt;87.4/100&lt;/code&gt; when several rows are subjective. Record the decision as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;mandatory gates and outcomes;&lt;/li&gt;
&lt;li&gt;score by area with evidence links;&lt;/li&gt;
&lt;li&gt;accepted gaps and owner;&lt;/li&gt;
&lt;li&gt;remediation deadline;&lt;/li&gt;
&lt;li&gt;cost and contract assumptions;&lt;/li&gt;
&lt;li&gt;selected candidate and rejected alternatives;&lt;/li&gt;
&lt;li&gt;review date after the first production month.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Compare build versus buy by ownership
&lt;/h2&gt;

&lt;p&gt;The right question is not whether an internal gateway has a license fee. It is which responsibilities the team can own continuously.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Responsibility&lt;/th&gt;
&lt;th&gt;If built internally&lt;/th&gt;
&lt;th&gt;If purchased or managed&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Protocol updates&lt;/td&gt;
&lt;td&gt;Track provider schemas and regressions&lt;/td&gt;
&lt;td&gt;Verify vendor updates and route compatibility&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Routing and retry&lt;/td&gt;
&lt;td&gt;Design state machine and failure evidence&lt;/td&gt;
&lt;td&gt;Configure policy and audit actual attempts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Usage and billing&lt;/td&gt;
&lt;td&gt;Normalize usage and maintain pricing logic&lt;/td&gt;
&lt;td&gt;Reconcile vendor records with internal finance truth&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Security&lt;/td&gt;
&lt;td&gt;Store secrets, enforce tenancy, audit access&lt;/td&gt;
&lt;td&gt;Validate vendor boundary and configure least privilege&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reliability&lt;/td&gt;
&lt;td&gt;Operate data plane, control plane, and on-call&lt;/td&gt;
&lt;td&gt;Monitor vendor plus your integration and retain an exit path&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Product support&lt;/td&gt;
&lt;td&gt;Diagnose every application/provider interaction&lt;/td&gt;
&lt;td&gt;Triage gateway versus provider versus application failures&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Do not insert generic salary or “engineering time saved” figures. Estimate from your own on-call load, protocol-change history, incident frequency, finance requirements, and compliance work. A managed product still requires an accountable internal owner.&lt;/p&gt;

&lt;h2&gt;
  
  
  Apply the checklist to Modelflare accurately
&lt;/h2&gt;

&lt;p&gt;For Modelflare, the current evaluation boundary should be explicit. It provides workload API Keys, requested-model routing through eligible groups and channels, ordered group fallback for regular keys, strategy-based group selection for Smart API Keys, pre-upstream group RPM admission, and request-level usage, cost, status, and timing records.&lt;/p&gt;

&lt;p&gt;GPT, Codex, and OpenAI traffic is the fully adapted compatibility target. Other OpenAI-compatible model families should be evaluated as raw Chat Completions pass-through unless a capability has been separately verified. A shared base URL is not proof that Responses, hosted tools, Structured Outputs, or Function Calling behave identically on every route.&lt;/p&gt;

&lt;p&gt;Modelflare’s fallback should search for an eligible path for the requested model rather than silently selecting another model. Channel failover stops after downstream output starts. Those claims can be evaluated with the protocol corpus and failure drills above instead of accepted as marketing statements.&lt;/p&gt;

&lt;p&gt;Use &lt;a href="https://modelflare.dev/pricing" rel="noopener noreferrer"&gt;Models &amp;amp; Pricing&lt;/a&gt; to identify the current model and group surface and &lt;a href="https://modelflare.dev/docs" rel="noopener noreferrer"&gt;Modelflare Docs&lt;/a&gt; to configure an isolated test key. Keep the evaluation requests non-sensitive, pin the exact model, and retain the Request IDs needed to inspect each attempt.&lt;/p&gt;

&lt;p&gt;The final decision should be reproducible: another engineer should be able to run the same corpus, inspect the same categories of evidence, and understand why the candidate passed. That process is slower than reading a comparison page, but it is much faster than discovering an incompatible Tool Contract, untraceable bill, or unsafe fallback after the gateway owns production traffic.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://modelflare.dev/articles/evaluate-ai-api-gateway?utm_source=devto&amp;amp;utm_medium=syndication&amp;amp;utm_campaign=blog" rel="noopener noreferrer"&gt;modelflare.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I'm part of the Modelflare team, which builds the AI API gateway mentioned in this article.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>api</category>
      <category>architecture</category>
      <category>devops</category>
    </item>
    <item>
      <title>Claude Opus 5.5: Specs, Price, and Place in the Field</title>
      <dc:creator>Magnus</dc:creator>
      <pubDate>Thu, 22 Oct 2026 02:09:59 +0000</pubDate>
      <link>https://dev.to/modelflare_dev/claude-opus-55-specs-price-and-place-in-the-field-3jal</link>
      <guid>https://dev.to/modelflare_dev/claude-opus-55-specs-price-and-place-in-the-field-3jal</guid>
      <description>&lt;p&gt;A source-backed account of Claude Opus 5.5: published specs, official token prices, how to read the benchmark table against Fable 5.1, Opus 5, and GPT-6 Astra, and the Modelflare groups and user prices returned on 30 September 2026.&lt;/p&gt;

&lt;p&gt;Claude Opus 5.5 was released on 22 September 2026. The public contract is on the model page and in the what's-new note: API id &lt;code&gt;claude-opus-5-5&lt;/code&gt;, a 1M-token context window, 128K max output, adaptive thinking that stays on, default effort &lt;code&gt;medium&lt;/code&gt;, and a list price of $4 per million input tokens and $20 per million output tokens. Anthropic's pages do not publish a parameter count or a training-compute figure. This article stays with the published spec, the published price card, and the published benchmark table.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Checked conclusion:&lt;/strong&gt; on Anthropic's list price, Opus 5.5 is the current Opus tier. Per token it is cheaper than Opus 5, and much cheaper than Fable 5.1. On the coding and knowledge-work rows Anthropic printed, its scores lead Fable 5.1, Opus 5, and, on most of those rows, GPT-6 Astra. Two printed rows go the other way: Astra leads Terminal-Bench-Science 0.1 and Zapier's AutomationBench. Modelflare's pricing API, read on 30 September 2026, includes &lt;code&gt;claude-opus-5-5&lt;/code&gt; at the official $4 / $20 unit prices. That row enables &lt;code&gt;claude-award&lt;/code&gt; 0.25, &lt;code&gt;claude-stable&lt;/code&gt; 0.315, and &lt;code&gt;claude-premium&lt;/code&gt; 0.5. A key for this tier sends &lt;code&gt;claude-opus-5-5&lt;/code&gt;. Live rates are on the &lt;a href="https://modelflare.dev/pricing" rel="noopener noreferrer"&gt;pricing page&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Official behavior below is cited from the &lt;a href="https://platform.claude.com/docs/en/models/opus-5-5/overview" rel="noopener noreferrer"&gt;Opus 5.5 model page&lt;/a&gt;, &lt;a href="https://platform.claude.com/docs/en/models/opus-5-5/whats-new-opus-5-5" rel="noopener noreferrer"&gt;what's new&lt;/a&gt;, and the &lt;a href="https://www.anthropic.com/claude-opus-5-5" rel="noopener noreferrer"&gt;launch page&lt;/a&gt;. The earlier &lt;a href="https://modelflare.dev/articles/claude-fable-5-1-review-pricing" rel="noopener noreferrer"&gt;Fable 5.1 review&lt;/a&gt; is the place for that model's migration notes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Published specifications
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Item&lt;/th&gt;
&lt;th&gt;Claude Opus 5.5&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Model id, Claude API&lt;/td&gt;
&lt;td&gt;&lt;code&gt;claude-opus-5-5&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Amazon Bedrock id&lt;/td&gt;
&lt;td&gt;&lt;code&gt;anthropic.claude-opus-5-5&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Google Cloud and Microsoft Foundry id&lt;/td&gt;
&lt;td&gt;&lt;code&gt;claude-opus-5-5&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Release date&lt;/td&gt;
&lt;td&gt;22 September 2026&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Context window&lt;/td&gt;
&lt;td&gt;1M tokens, both the default and the maximum&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Max output&lt;/td&gt;
&lt;td&gt;128K tokens&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Thinking&lt;/td&gt;
&lt;td&gt;Adaptive, always on&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Default effort&lt;/td&gt;
&lt;td&gt;&lt;code&gt;medium&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Latency class on the model page&lt;/td&gt;
&lt;td&gt;Moderate&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reliable knowledge cutoff&lt;/td&gt;
&lt;td&gt;June 2026&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Parameter count&lt;/td&gt;
&lt;td&gt;Not on the public model page&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;"Reliable knowledge cutoff" is Anthropic's name for the date through which the model's stored knowledge is most extensive. It is separate from the context window. A file you attach is still in the request.&lt;/p&gt;

&lt;p&gt;Fast mode is a speed switch on the same id, documented as a research preview on the Claude API only. The request sets &lt;code&gt;speed: "fast"&lt;/code&gt; with the &lt;code&gt;fast-mode-2026-02-01&lt;/code&gt; beta header. Anthropic prices that mode at $8 / $40 per million tokens and describes output as up to 2.5× faster. The what's-new page says this fast mode is absent on Amazon Bedrock, Claude Platform on AWS, Google Cloud, and Microsoft Foundry.&lt;/p&gt;

&lt;p&gt;The same page lists the effort ladder as the control for thinking depth: &lt;code&gt;low&lt;/code&gt;, &lt;code&gt;medium&lt;/code&gt;, &lt;code&gt;high&lt;/code&gt;, &lt;code&gt;xhigh&lt;/code&gt;, and &lt;code&gt;max&lt;/code&gt;. A manual thinking budget is rejected. The minimum cacheable prompt is 512 tokens.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prices
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Official list prices
&lt;/h3&gt;

&lt;p&gt;Figures are US dollars per million tokens. Opus 5.5's cache, batch, and fast-mode rows come from the what's-new pricing section. Opus 5's cache-write cell is the single "cache writes" number on the launch comparison table, which does not split the 5-minute and 1-hour tiers. Fable 5.1's cache read is the official figure already used in this blog's Fable 5.1 review. Sonnet 5 and Haiku 4.5 input and output prices are the comparison row on the Opus 5.5 model page. An em dash means this article did not take that cell from a primary price row.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Price per 1M tokens&lt;/th&gt;
&lt;th&gt;Opus 5.5&lt;/th&gt;
&lt;th&gt;Opus 5&lt;/th&gt;
&lt;th&gt;Fable 5.1&lt;/th&gt;
&lt;th&gt;Sonnet 5&lt;/th&gt;
&lt;th&gt;Haiku 4.5&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Input&lt;/td&gt;
&lt;td&gt;$4&lt;/td&gt;
&lt;td&gt;$5&lt;/td&gt;
&lt;td&gt;$10&lt;/td&gt;
&lt;td&gt;$2&lt;/td&gt;
&lt;td&gt;$1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Output&lt;/td&gt;
&lt;td&gt;$20&lt;/td&gt;
&lt;td&gt;$25&lt;/td&gt;
&lt;td&gt;$50&lt;/td&gt;
&lt;td&gt;$10&lt;/td&gt;
&lt;td&gt;$5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cache read&lt;/td&gt;
&lt;td&gt;$0.20&lt;/td&gt;
&lt;td&gt;$0.50&lt;/td&gt;
&lt;td&gt;$0.25&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cache write&lt;/td&gt;
&lt;td&gt;$5 for 5 minutes; $8 for 1 hour&lt;/td&gt;
&lt;td&gt;$6.25&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Batch input / output&lt;/td&gt;
&lt;td&gt;$2 / $10&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fast mode input / output&lt;/td&gt;
&lt;td&gt;$8 / $40&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The list-price move from Opus 5 is 20% on fresh input and output, from $5 / $25 to $4 / $20. Cache reads, which dominate long agent loops, move from $0.50 to $0.20. That is 60% off the Opus 5 cache-read price, and it also sits under Fable 5.1's $0.25 cache read. Anthropic's separate workload claim is that a typical run at default settings costs about 40% less than Opus 5, because the model also uses fewer tokens. That 40% describes their harness. A real bill still follows effort, cache hit rate, and tool rounds.&lt;/p&gt;

&lt;p&gt;Batch processing is half the new list price. Fast mode is double the new list price, on the Claude API only.&lt;/p&gt;

&lt;h3&gt;
  
  
  Modelflare catalog on 30 September 2026
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;GET https://modelflare.dev/api/pricing&lt;/code&gt; on 30 September 2026 includes &lt;code&gt;claude-opus-5-5&lt;/code&gt;. The same response also includes &lt;code&gt;claude-opus-5&lt;/code&gt;, &lt;code&gt;claude-fable-5-1&lt;/code&gt;, &lt;code&gt;claude-sonnet-5&lt;/code&gt;, &lt;code&gt;claude-sonnet-5-5&lt;/code&gt;, &lt;code&gt;claude-haiku-4-5&lt;/code&gt;, &lt;code&gt;gpt-6-astra&lt;/code&gt;, and &lt;code&gt;gpt-5.6-sol&lt;/code&gt;. It does not include a Haiku 5.5 id.&lt;/p&gt;

&lt;p&gt;Unit prices below are that response's token prices before a group ratio. For the Claude rows they match the official list. Astra and Sol are tiered: the second pair applies when input context is above 272,000 tokens, and the long-context output price is the tier's own output price. The example column multiplies Claude rows by &lt;code&gt;claude-stable&lt;/code&gt; 0.315 and OpenAI rows by &lt;code&gt;openai-stable&lt;/code&gt; 0.08. Claude ratios on this read are &lt;code&gt;claude-premium&lt;/code&gt; 0.5, &lt;code&gt;claude-stable&lt;/code&gt; 0.315, and &lt;code&gt;claude-award&lt;/code&gt; 0.25. OpenAI ratios are &lt;code&gt;openai-premium&lt;/code&gt; 0.13, &lt;code&gt;openai-stable&lt;/code&gt; 0.08, and &lt;code&gt;openai-award&lt;/code&gt; 0.03. Opus 5.5 enables only the three Claude groups above. &lt;code&gt;claude-tmp-cheap&lt;/code&gt; is a public Claude group, and this model row does not include it.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;Catalog id&lt;/th&gt;
&lt;th&gt;Unit input / output&lt;/th&gt;
&lt;th&gt;User price on the stable group&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Opus 5.5&lt;/td&gt;
&lt;td&gt;&lt;code&gt;claude-opus-5-5&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;$4 / $20&lt;/td&gt;
&lt;td&gt;$1.26 / $6.30&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Opus 5&lt;/td&gt;
&lt;td&gt;&lt;code&gt;claude-opus-5&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;$5 / $25&lt;/td&gt;
&lt;td&gt;$1.575 / $7.875&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fable 5.1&lt;/td&gt;
&lt;td&gt;&lt;code&gt;claude-fable-5-1&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;$10 / $50&lt;/td&gt;
&lt;td&gt;$3.15 / $15.75&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sonnet 5&lt;/td&gt;
&lt;td&gt;&lt;code&gt;claude-sonnet-5&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;$2 / $10&lt;/td&gt;
&lt;td&gt;$0.63 / $3.15&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GPT-6 Astra&lt;/td&gt;
&lt;td&gt;&lt;code&gt;gpt-6-astra&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;$10 / $50, then $20 / $75&lt;/td&gt;
&lt;td&gt;$0.80 / $4.00, then $1.60 / $6.00&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GPT-5.6 Sol&lt;/td&gt;
&lt;td&gt;&lt;code&gt;gpt-5.6-sol&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;$5 / $30, then $10 / $45&lt;/td&gt;
&lt;td&gt;$0.40 / $2.40, then $0.80 / $3.60&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Opus 5.5 on &lt;code&gt;claude-stable&lt;/code&gt; is $4 × 0.315 and $20 × 0.315. Use the official table to compare labs. Use the catalog table to read a Modelflare bill you can send today.&lt;/p&gt;

&lt;p&gt;Haiku 4.5 is in the same catalog at a $1 / $5 unit price. On &lt;code&gt;claude-stable&lt;/code&gt; that is $0.315 / $1.575. The model-page comparison still gives Haiku a 200K context window and 64K max output. Haiku 5.5 is not in the 30 September response. Haiku 4.5 remains the low end of the Claude line that is actually listed.&lt;/p&gt;

&lt;p&gt;Cache ratios on the catalog rows are a fraction of the input unit price: 0.05 for Opus 5.5, so the catalog cache read is $0.20 and the catalog cache write is $5. That write matches the official 5-minute tier. The official 1-hour write is $8 and is not a separate catalog price. Opus 5 and Sonnet 5 use 0.1, and Fable 5.1 uses 0.025. Settle cache, long context, and priority tiers from the pricing page and from the finished usage record.&lt;/p&gt;

&lt;h2&gt;
  
  
  What changed versus Opus 5 and Fable 5.1
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Behavior&lt;/th&gt;
&lt;th&gt;Opus 5.5&lt;/th&gt;
&lt;th&gt;Opus 5&lt;/th&gt;
&lt;th&gt;Fable 5.1&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;API id&lt;/td&gt;
&lt;td&gt;&lt;code&gt;claude-opus-5-5&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;claude-opus-5&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;claude-fable-5-1&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Context / max output&lt;/td&gt;
&lt;td&gt;1M / 128K&lt;/td&gt;
&lt;td&gt;1M / 128K&lt;/td&gt;
&lt;td&gt;1M / 128K&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Thinking&lt;/td&gt;
&lt;td&gt;Always on. &lt;code&gt;disabled&lt;/code&gt; and a manual budget return 400&lt;/td&gt;
&lt;td&gt;On by default. &lt;code&gt;disabled&lt;/code&gt; is accepted only at effort &lt;code&gt;high&lt;/code&gt; or below&lt;/td&gt;
&lt;td&gt;Always on&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Default effort when the field is omitted&lt;/td&gt;
&lt;td&gt;&lt;code&gt;medium&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;high&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;high&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reliable knowledge cutoff&lt;/td&gt;
&lt;td&gt;June 2026&lt;/td&gt;
&lt;td&gt;May 2026&lt;/td&gt;
&lt;td&gt;June 2026&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;List input / output&lt;/td&gt;
&lt;td&gt;$4 / $20&lt;/td&gt;
&lt;td&gt;$5 / $25&lt;/td&gt;
&lt;td&gt;$10 / $50&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cache read&lt;/td&gt;
&lt;td&gt;$0.20&lt;/td&gt;
&lt;td&gt;$0.50&lt;/td&gt;
&lt;td&gt;$0.25&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Forced tool choice&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;any&lt;/code&gt; and &lt;code&gt;tool&lt;/code&gt; return 400&lt;/td&gt;
&lt;td&gt;Listed as a breaking change away from Opus 5&lt;/td&gt;
&lt;td&gt;Same 400 as Opus 5.5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cybersecurity safeguard&lt;/td&gt;
&lt;td&gt;Hands the task to Opus 4.8&lt;/td&gt;
&lt;td&gt;The launch note does not put this fallback on Opus 5&lt;/td&gt;
&lt;td&gt;Fable-class safeguards&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Biology and frontier-LLM safeguard&lt;/td&gt;
&lt;td&gt;Hands the task to Opus 5&lt;/td&gt;
&lt;td&gt;The launch note pairs this fallback with Opus 5.5&lt;/td&gt;
&lt;td&gt;Same safeguard class&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Opus 5.5 reads thinking blocks from Opus 5 and from earlier Opus, Sonnet, and Haiku models. It does not read thinking blocks from Fable or Mythos. On the Claude API, Fable 5.1 and Mythos 5.1 read Opus 5.5 thinking blocks, and the what's-new page says no other current model does. A block the target model cannot read is dropped before the model sees it, and a dropped block is not billed.&lt;/p&gt;

&lt;p&gt;Accounts created on or after 31 August 2026 get a stricter check: if the system prompt, the tool list, or an earlier message changed after an Opus 5.5 thinking block was produced, replaying that block returns 400. The migration guide's path is an append-only history, or a mid-conversation system message when instructions have to change. The launch page also says Opus 5.5 ships with the preserved-thinking control introduced on Fable 5.1, with EU AI Act watermarking, and with zero data retention, in line with earlier Opus models.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to read the intelligence scores
&lt;/h2&gt;

&lt;p&gt;The table is the one printed on the launch page. Anthropic says that, unless a footnote says otherwise, Opus 5.5 ran with adaptive thinking at max effort. Terminal-Bench 4.0 is the footnote: Opus 5.5 at &lt;code&gt;xhigh&lt;/code&gt;, GPT-6 Astra at &lt;code&gt;high&lt;/code&gt;, each as that model's highest reported score. Astra and Sol numbers are quoted as reported by OpenAI. Production safeguards were on. When they fired, cybersecurity tasks were completed by Opus 4.8, and biology plus frontier LLM-development tasks were completed by Opus 5. Anthropic says that pulls Opus 5.5's scores down.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Benchmark&lt;/th&gt;
&lt;th&gt;Opus 5.5&lt;/th&gt;
&lt;th&gt;Fable 5.1&lt;/th&gt;
&lt;th&gt;Opus 5&lt;/th&gt;
&lt;th&gt;GPT-6 Astra&lt;/th&gt;
&lt;th&gt;GPT-5.6 Sol&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Terminal-Bench 4.0&lt;/td&gt;
&lt;td&gt;66.4%&lt;/td&gt;
&lt;td&gt;55.8%&lt;/td&gt;
&lt;td&gt;52.3%&lt;/td&gt;
&lt;td&gt;57.9%&lt;/td&gt;
&lt;td&gt;37.3%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;FrontierCode v1.1 (Main)&lt;/td&gt;
&lt;td&gt;54.4%&lt;/td&gt;
&lt;td&gt;50.3%&lt;/td&gt;
&lt;td&gt;48.0%&lt;/td&gt;
&lt;td&gt;53.3%&lt;/td&gt;
&lt;td&gt;47.5%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CursorBench 4.0&lt;/td&gt;
&lt;td&gt;57.8%&lt;/td&gt;
&lt;td&gt;51.8%&lt;/td&gt;
&lt;td&gt;46.6%&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;41.7%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GDPval-AA v2.1&lt;/td&gt;
&lt;td&gt;1846&lt;/td&gt;
&lt;td&gt;1735&lt;/td&gt;
&lt;td&gt;1708&lt;/td&gt;
&lt;td&gt;1542&lt;/td&gt;
&lt;td&gt;1588&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AutomationBench&lt;/td&gt;
&lt;td&gt;40.0%&lt;/td&gt;
&lt;td&gt;31.4%&lt;/td&gt;
&lt;td&gt;26.9%&lt;/td&gt;
&lt;td&gt;41.4%&lt;/td&gt;
&lt;td&gt;28.8%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Humanity's Last Exam, with tools&lt;/td&gt;
&lt;td&gt;67.7%&lt;/td&gt;
&lt;td&gt;65.6%&lt;/td&gt;
&lt;td&gt;63.6%&lt;/td&gt;
&lt;td&gt;57.2%&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Terminal-Bench-Science 0.1&lt;/td&gt;
&lt;td&gt;58.7%&lt;/td&gt;
&lt;td&gt;52.6%&lt;/td&gt;
&lt;td&gt;29.0%&lt;/td&gt;
&lt;td&gt;64.6%&lt;/td&gt;
&lt;td&gt;22.4%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OSWorld 2.0, partial&lt;/td&gt;
&lt;td&gt;81.8%&lt;/td&gt;
&lt;td&gt;80.7%&lt;/td&gt;
&lt;td&gt;74.0%&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Chartography, with tools&lt;/td&gt;
&lt;td&gt;89.0%&lt;/td&gt;
&lt;td&gt;88.4%&lt;/td&gt;
&lt;td&gt;83.4%&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Put the gaps next to the error bars they published. Terminal-Bench 4.0 is ±2.6 points for Opus 5.5 and ±1.6 to ±2 points for the other Claude models. The gap from 66.4% to Astra's 57.9%, and to Fable's 55.8%, is wider than those bars. Terminal-Bench-Science is ±3.5 to ±5 points per model. Astra's 64.6% against Opus 5.5's 58.7% sits near the width of those bars, with Astra ahead in the printed point estimate.&lt;/p&gt;

&lt;p&gt;AutomationBench was run by Zapier. Safeguard interventions counted as failures because the run had no fallback model. Anthropic says the practical score would be higher. The printed 40.0% against Astra's 41.4% is a close published result, with Astra ahead on the point estimate. GDPval-AA v2.1 is an Elo on real professional tasks across 44 occupations: 1846 for Opus 5.5, 1735 for Fable 5.1, 1708 for Opus 5, 1588 for Sol, 1542 for Astra.&lt;/p&gt;

&lt;p&gt;The same launch page prints a second pair of scores on the cost charts, taken at default effort &lt;code&gt;medium&lt;/code&gt;: FrontierCode 54.6% and CursorBench 52.5%. The comparison table prints 54.4% and 57.8%. Keep them as two Anthropic figures at two effort settings. The chart caption also says that, at medium effort, FrontierCode beats Astra's top score of 53.3% at about a fifth of the cost per task, and that Terminal-Bench matches Astra at about 40% of the cost. Those are cost-per-task claims about Anthropic's harness.&lt;/p&gt;

&lt;p&gt;The sentence under the table is the one to keep: in Anthropic's own use, the gap between Opus 5.5 and Fable 5.1 is narrower than the scores, and benchmark margins at this level are a weaker guide to a real task. Customer quotes on the launch page are selected testimonials. They can suggest what to replay. They do not belong in the score table.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where it sits among current models
&lt;/h2&gt;

&lt;p&gt;Three checkable shifts landed on the same day.&lt;/p&gt;

&lt;p&gt;The work Anthropic describes as Fable 5.1 level for most tasks now has an Opus price card. List price is $4 / $20 against Fable 5.1 at $10 / $50. Cache reads are $0.20 against Fable's $0.25 and Opus 5's $0.50. Where a team's own replay agrees, Fable 5.1 stays the model for the tasks that still fail, and Opus 5.5 is the model that should run the loop. Where the replay disagrees, the table already shows the published exceptions: science-agent tasks and Zapier's business workflows, where Astra leads the printed numbers.&lt;/p&gt;

&lt;p&gt;The default moved with the price. Claude Code's model configuration, updated with this release, sets Opus 5.5 as the default for Pro, Max, Team, Enterprise, and the Anthropic API, and also for Claude Platform on AWS, Amazon Bedrock, and Google Cloud's Agent Platform. A default inside the agent product moves more traffic than a new row in a picker.&lt;/p&gt;

&lt;p&gt;The safeguard boundary moved down onto Opus. Earlier Opus models were where traffic went when a Fable classifier would not answer. Opus 5.5 launches with a similar set: cybersecurity tasks are completed by Opus 4.8, and biology plus frontier LLM-development tasks are completed by Opus 5. A log line that records the requested id &lt;code&gt;claude-opus-5-5&lt;/code&gt; can sit on a completion produced by a different model. Refusals return HTTP 200 with &lt;code&gt;stop_reason: "refusal"&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Sonnet 5.5 is already in the 30 September catalog at the same $2 / $10 unit price as Sonnet 5. Haiku 5.5 is not in that response. The cheaper listed Claude cards are Sonnet 5.5, Sonnet 5 at $2 / $10, and Haiku 4.5 at $1 / $5. Haiku 4.5 remains on a 200K window. Sonnet 5.5's groups are in the &lt;a href="https://modelflare.dev/articles/claude-sonnet-5-5-review-pricing" rel="noopener noreferrer"&gt;Sonnet 5.5 review&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;This is a position you can audit from documents: list price, the Claude Code default, which model answers when a safeguard fires, and which rows of the vendor table Astra still leads. It is not a market-share claim.&lt;/p&gt;

&lt;h2&gt;
  
  
  Integration constraints
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Requests that return 400
&lt;/h3&gt;

&lt;p&gt;A client that only replaces the model string still hits four breaks documented for code that was running on Opus 5. The first three also apply to Fable 5.1. The shape below is the one the migration note tells you to send. The comments mark the variants that return &lt;code&gt;invalid_request_error&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;model: claude-opus-5-5
thinking: {"type": "adaptive"}
tool_choice: {"type": "auto"}
output_config.effort: medium
# 400: thinking type disabled, or enabled with budget_tokens
# 400: tool_choice any, or tool_choice tool
# 400 on the Claude API and Google Cloud: tool type computer_20251124
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Depth replaces the old on/off thinking switch. Omit &lt;code&gt;thinking&lt;/code&gt;, or send &lt;code&gt;adaptive&lt;/code&gt;. Set effort explicitly. &lt;code&gt;tool_choice&lt;/code&gt; &lt;code&gt;auto&lt;/code&gt; and &lt;code&gt;none&lt;/code&gt; remain valid, including on the token-counting endpoint. For schema-valid JSON, the migration note points to strict tool use or structured outputs, plus a prompt line that says when the tool applies.&lt;/p&gt;

&lt;p&gt;On the Claude API and Google Cloud, replace &lt;code&gt;computer_20251124&lt;/code&gt; with the &lt;code&gt;computer_toolset_20260801&lt;/code&gt; toolset and drop the old computer-use beta header. Amazon Bedrock still accepts &lt;code&gt;computer_20251124&lt;/code&gt; on Opus 5.5. Browser-use integrations that already use the toolset need no change for this break.&lt;/p&gt;

&lt;p&gt;For accounts created on or after 31 August 2026, a replay that edits the prefix in front of an Opus 5.5 thinking block is the fourth 400. Keep the conversation append-only.&lt;/p&gt;

&lt;h3&gt;
  
  
  Calls that succeed and still change behavior
&lt;/h3&gt;

&lt;p&gt;Omitting effort now runs &lt;code&gt;medium&lt;/code&gt;. The same omission on Opus 5 ran &lt;code&gt;high&lt;/code&gt;. At a matched effort, Opus 5.5 tends to think more per turn than Opus 5, especially at &lt;code&gt;xhigh&lt;/code&gt; and &lt;code&gt;max&lt;/code&gt;. An effort value copied from an Opus 5 config is a new cost point. Leave room in &lt;code&gt;max_tokens&lt;/code&gt; for the thinking blocks.&lt;/p&gt;

&lt;p&gt;Text written between tool calls comes back inside thinking blocks. At the default display value &lt;code&gt;omitted&lt;/code&gt;, those blocks are empty. A UI that used to stream that text goes quiet, and the request still succeeds. Set a display value when the product needs the progress lines.&lt;/p&gt;

&lt;p&gt;A biology classifier runs beside the cybersecurity classifier. A prompt that pushes the model to copy its reasoning into the visible answer can be declined under &lt;code&gt;reasoning_extraction&lt;/code&gt;. Chart and screenshot reading is sharper before any vision tool is added, according to the prompting guide, so older prompts that used to compensate for weak chart reading are worth replaying on their own.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which workloads to evaluate first
&lt;/h2&gt;

&lt;p&gt;Replay Opus 5.5 on the jobs the launch page is specific about: a multi-file change, a migration with the repository's own tests, a research memo graded against its sources, and a computer-use flow you can run twice. Record the requested model, the model that actually answered, effort, input tokens, cache-read tokens, output tokens, wall time, retries, and human edits. Anthropic's "about 40% less" and "about a fifth of the cost" are claims about their harness. They do not replace that sheet.&lt;/p&gt;

&lt;p&gt;Keep Fable 5.1, or an explicit fallback, on tasks the replay still loses. Plan for Opus 4.8 on traffic the cybersecurity safeguard will hand off, and for Opus 5 on biology and frontier-model-development traffic the safeguard will hand off. Keep Sonnet 5.5 or Sonnet 5 where the task fits a $2 / $10 card and does not need the Opus loop.&lt;/p&gt;

&lt;p&gt;On Modelflare, send &lt;code&gt;claude-opus-5-5&lt;/code&gt; for this tier. The 30 September row enables &lt;code&gt;claude-premium&lt;/code&gt; at 0.5 when a failed call is expensive, &lt;code&gt;claude-stable&lt;/code&gt; at 0.315 for ordinary production, and &lt;code&gt;claude-award&lt;/code&gt; at 0.25 when the call can be retried. &lt;code&gt;claude-tmp-cheap&lt;/code&gt; is not enabled on this model. On &lt;code&gt;claude-stable&lt;/code&gt; the user price is $1.26 per million input tokens and $6.30 per million output tokens.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Launch page, 22 September 2026: &lt;a href="https://www.anthropic.com/claude-opus-5-5" rel="noopener noreferrer"&gt;https://www.anthropic.com/claude-opus-5-5&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Model page, specs and the current comparison row: &lt;a href="https://platform.claude.com/docs/en/models/opus-5-5/overview" rel="noopener noreferrer"&gt;https://platform.claude.com/docs/en/models/opus-5-5/overview&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;What's new, breaking changes and the price card: &lt;a href="https://platform.claude.com/docs/en/models/opus-5-5/whats-new-opus-5-5" rel="noopener noreferrer"&gt;https://platform.claude.com/docs/en/models/opus-5-5/whats-new-opus-5-5&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Claude Code model configuration, default model: &lt;a href="https://code.claude.com/docs/en/model-config" rel="noopener noreferrer"&gt;https://code.claude.com/docs/en/model-config&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Modelflare pricing API, read 30 September 2026: &lt;a href="https://modelflare.dev/api/pricing" rel="noopener noreferrer"&gt;https://modelflare.dev/api/pricing&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Fable 5.1 review on this blog: &lt;a href="https://modelflare.dev/articles/claude-fable-5-1-review-pricing" rel="noopener noreferrer"&gt;Fable 5.1 review&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://modelflare.dev/articles/claude-opus-5-5-review-pricing?utm_source=devto&amp;amp;utm_medium=syndication&amp;amp;utm_campaign=blog" rel="noopener noreferrer"&gt;modelflare.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I'm part of the Modelflare team, which builds the AI API gateway mentioned in this article.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>claude</category>
      <category>api</category>
    </item>
    <item>
      <title>How to choose an AI video model for each shot type: a spec &amp; price comparison</title>
      <dc:creator>Magnus</dc:creator>
      <pubDate>Tue, 20 Oct 2026 09:47:15 +0000</pubDate>
      <link>https://dev.to/magnus_modelflare/how-to-choose-an-ai-video-model-for-each-shot-type-a-spec-price-comparison-1glm</link>
      <guid>https://dev.to/magnus_modelflare/how-to-choose-an-ai-video-model-for-each-shot-type-a-spec-price-comparison-1glm</guid>
      <description>&lt;p&gt;Most "which AI video model is best?" threads end with "it depends." Here is what it actually depends on. A short film needs different shots: a wide establishing shot that sells a world, a close-up where a face has to stay the same face, and an action beat where bodies and physics have to hold together. Each of those puts different demands on a model, and the models are priced in units that don't compare directly (per second, per million tokens, per image).&lt;/p&gt;

&lt;p&gt;This post is the comparison I wanted when I started: specs and public prices for the video models I use, grouped by shot type, plus a simple draft-then-final workflow that keeps costs predictable. I'm using Castaly (a web studio I built), which lists these models side by side with their prices, but the reasoning applies wherever you run them.&lt;/p&gt;

&lt;h2&gt;
  
  
  First, normalize the price
&lt;/h2&gt;

&lt;p&gt;Video models bill in three ways:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Per video second, set by resolution.&lt;/strong&gt; Kling, Wan, MiniMax and HappyHorse.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Per 1M tokens, set by resolution.&lt;/strong&gt; The Seedance family. Token count depends on the actual request, so you need an estimate per job.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Per image or per request.&lt;/strong&gt; Image models such as Seedream 5.0 Lite and Wan 2.7 image.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To compare per-second models, multiply by your clip length. Here is a &lt;strong&gt;5-second clip&lt;/strong&gt; at public prices:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;480p / 720p / 768p&lt;/th&gt;
&lt;th&gt;1080p&lt;/th&gt;
&lt;th&gt;2K / 4K&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;kling-2.6&lt;/td&gt;
&lt;td&gt;$0.19 (720p)&lt;/td&gt;
&lt;td&gt;$0.32&lt;/td&gt;
&lt;td&gt;n/a&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;kling-2.5-turbo&lt;/td&gt;
&lt;td&gt;$0.19 (720p)&lt;/td&gt;
&lt;td&gt;$0.32&lt;/td&gt;
&lt;td&gt;n/a&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;wan3.0-video&lt;/td&gt;
&lt;td&gt;$0.25 (480p) / $0.49 (720p)&lt;/td&gt;
&lt;td&gt;$0.99&lt;/td&gt;
&lt;td&gt;n/a&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;wan2.7-t2v&lt;/td&gt;
&lt;td&gt;$0.37 (720p)&lt;/td&gt;
&lt;td&gt;$0.56&lt;/td&gt;
&lt;td&gt;n/a&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;kling-3.0 / kling-3.0-omni&lt;/td&gt;
&lt;td&gt;$0.38 (720p)&lt;/td&gt;
&lt;td&gt;$0.51&lt;/td&gt;
&lt;td&gt;$1.91 (4K)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;kling-o1&lt;/td&gt;
&lt;td&gt;$0.38 (720p)&lt;/td&gt;
&lt;td&gt;$0.51&lt;/td&gt;
&lt;td&gt;n/a&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MiniMax-H3&lt;/td&gt;
&lt;td&gt;$0.47 (768p)&lt;/td&gt;
&lt;td&gt;n/a&lt;/td&gt;
&lt;td&gt;$0.76 (2K)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;happyhorse-1.1-t2v&lt;/td&gt;
&lt;td&gt;$0.50 (720p)&lt;/td&gt;
&lt;td&gt;$0.64&lt;/td&gt;
&lt;td&gt;n/a&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;kling-3.0-turbo&lt;/td&gt;
&lt;td&gt;$0.51 (720p)&lt;/td&gt;
&lt;td&gt;$0.64&lt;/td&gt;
&lt;td&gt;n/a&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;wan3.0-video-prime&lt;/td&gt;
&lt;td&gt;$0.38 (480p) / $0.77 (720p)&lt;/td&gt;
&lt;td&gt;$1.55&lt;/td&gt;
&lt;td&gt;n/a&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The underlying rates, for reference: kling-3.0 is $0.07644/s at 720p, $0.10192/s at 1080p and $0.3822/s at 4K. With native audio it's $0.11466/s at 720p and $0.15288/s at 1080p. wan3.0-video is $0.0494/s at 480p, and MiniMax-H3 is $0.1521/s at 2K.&lt;/p&gt;

&lt;p&gt;Seedance is token-priced: &lt;strong&gt;seedance-2.5&lt;/strong&gt; is $13.2145 per 1M tokens at 480p/720p and $14.4495 at 1080p. &lt;strong&gt;seedance-2.0&lt;/strong&gt; is $8.645 (480p/720p) and $9.5095 (1080p). &lt;strong&gt;seedance-2.0-fast&lt;/strong&gt; is $3.4357 and &lt;strong&gt;seedance-2.0-mini&lt;/strong&gt; is $1.7086 per 1M tokens at 720p. Because the token count depends on the request, Castaly shows an estimate for the spec you selected before you generate, and the Creations page lists estimate and actual cost side by side after each task. Check that number before you queue a batch of long Seedance clips.&lt;/p&gt;

&lt;h2&gt;
  
  
  The spec sheet that matters
&lt;/h2&gt;

&lt;p&gt;Price is half the decision. The other half is what the model accepts and produces:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;Resolutions&lt;/th&gt;
&lt;th&gt;Durations (s)&lt;/th&gt;
&lt;th&gt;Audio&lt;/th&gt;
&lt;th&gt;Reference inputs&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;kling-3.0&lt;/td&gt;
&lt;td&gt;720p, 1080p, 4K&lt;/td&gt;
&lt;td&gt;3, 5, 8, 10, 15&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;first/last frame, image, video (max 2)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;kling-3.0-omni&lt;/td&gt;
&lt;td&gt;720p, 1080p, 4K&lt;/td&gt;
&lt;td&gt;3, 5, 8, 10, 15&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;first/last frame, image, video, &lt;strong&gt;elements&lt;/strong&gt; (max 7)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;kling-o1&lt;/td&gt;
&lt;td&gt;720p, 1080p&lt;/td&gt;
&lt;td&gt;3, 5, 8, 10&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;first/last frame, image, video, &lt;strong&gt;elements&lt;/strong&gt; (max 7)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;kling-3.0-turbo&lt;/td&gt;
&lt;td&gt;720p, 1080p&lt;/td&gt;
&lt;td&gt;3, 5, 8, 10, 15&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;td&gt;first frame&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;kling-2.6&lt;/td&gt;
&lt;td&gt;720p, 1080p&lt;/td&gt;
&lt;td&gt;5, 10&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;first/last frame, image, video&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;seedance-2.5&lt;/td&gt;
&lt;td&gt;480p, 720p, 1080p&lt;/td&gt;
&lt;td&gt;4â€“30&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;first/last frame, image, video, audio (&lt;strong&gt;up to 50&lt;/strong&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;seedance-2.0&lt;/td&gt;
&lt;td&gt;480pâ€“4K&lt;/td&gt;
&lt;td&gt;4, 5, 8, 10, 15&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;first/last frame, image, video, audio (up to 15)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;wan3.0-video / -prime&lt;/td&gt;
&lt;td&gt;480p, 720p, 1080p&lt;/td&gt;
&lt;td&gt;2â€“30&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;frames, image, video, audio, file, link (up to 21)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;wan2.7-r2v&lt;/td&gt;
&lt;td&gt;720p, 1080p&lt;/td&gt;
&lt;td&gt;2â€“15&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;td&gt;image/video references (up to 6)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MiniMax-H3&lt;/td&gt;
&lt;td&gt;768p, 2K&lt;/td&gt;
&lt;td&gt;4, 5, 6, 8, 10, 15&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;td&gt;frames, image, video, audio (up to 12)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;happyhorse-1.1-t2v&lt;/td&gt;
&lt;td&gt;720p, 1080p&lt;/td&gt;
&lt;td&gt;3â€“15&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;td&gt;none (text only)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two things stand out. Clip length ranges from a 10-second cap (Kling 2.x) to 30 seconds (Seedance 2.5, Wan 3.0). Reference capacity ranges from one first frame to 50 mixed references. Those two numbers usually matter more than a model's general reputation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Shot type 1: World-building (establishing shots, landscapes, architecture)
&lt;/h2&gt;

&lt;p&gt;What you need: scale, atmosphere, a slow and readable camera move, and often a larger frame.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;MiniMax-H3 at 2K&lt;/strong&gt; sits between 1080p and 4K in both size and price (about $0.76 per 5s, compared with $1.91 for kling-3.0 at 4K), which suits aerial moves over landscapes. Castaly's landscape example on the homepage runs on MiniMax-H3 at 2K/5s, and so does the community clip "A fleet of hot-air balloons drifts over mist-filledâ€¦".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;wan3.0-video-prime at 1080p&lt;/strong&gt; is what the architecture-and-interiors example uses (a gimbal walk through a sunlit space). It's the most expensive per second here ($1.55 per 5s), so draft on &lt;strong&gt;wan3.0-video&lt;/strong&gt; first. It accepts the same reference types and costs $0.25 per 5s at 480p.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;kling-3.0 at 1080p&lt;/strong&gt; works for sci-fi establishing shots at a mid-range price ($0.51 per 5s), and goes to 4K when the shot is a hero frame.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Prompt tip: describe the camera path explicitly ("slow push-in past the astronaut toward a monumental ring structure") and keep one dominant light source.&lt;/p&gt;

&lt;h2&gt;
  
  
  Shot type 2: Characters (close-ups, reactions, continuity)
&lt;/h2&gt;

&lt;p&gt;What you need: stable facial features across shots, subtle performance, and natural blinks and breathing.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;kling-3.0&lt;/strong&gt; handles most of Castaly's character-performance examples: the rainy-night-train close-up and a two-scene continuity test with one character description reused word for word (night market, then a rain-streaked window), all at 1080p/5s.&lt;/li&gt;
&lt;li&gt;If you need the &lt;em&gt;same&lt;/em&gt; person across many shots, look at reference capacity. &lt;strong&gt;kling-3.0-omni&lt;/strong&gt; and &lt;strong&gt;kling-o1&lt;/strong&gt; accept up to 7 "elements" or reference images. &lt;strong&gt;seedance-2.5&lt;/strong&gt; takes up to 50 mixed references and runs up to 30 seconds.&lt;/li&gt;
&lt;li&gt;Continuity tip: anchor the character with odd, specific details ("a small scar above her left eyebrow, a worn olive field jacket"). They hold better than "consistent facial features."&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Shot type 3: Action (sports, chases, creatures)
&lt;/h2&gt;

&lt;p&gt;What you need: fast motion that stays coherent, believable physics, and slow motion when it matters.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;kling-3.0-turbo&lt;/strong&gt; is used for the sports and action examples (a dunk, a kickflip) at 1080p/5s for about $0.64. It takes a first frame as its only reference, which suits a locked starting pose.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;kling-3.0&lt;/strong&gt; handles fantasy action: "a traveler in a burgundy cloak sprints across a stone bridge as a dragon sweeps low behind her," 1080p/5s.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;seedance-2.5&lt;/strong&gt; is the pick for long, one-take spectacle: 10-second 1080p continuous takes where a trigger event escalates (pages becoming a paper dragon, a spilled cup becoming a subway waterfall). Write it as a shot list in one paragraph: &lt;em&gt;"One continuous take, no cuts"&lt;/em&gt;, then the event, then where the camera starts, moves and ends, then "slow motion at the moment of impact."&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A workflow that keeps cost predictable
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Block the shot cheaply.&lt;/strong&gt; kling-2.6 at 720p (~$0.19 per 5s) or wan3.0-video at 480p (~$0.25 per 5s). You're checking framing and motion, not detail.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lock the prompt and seed your references.&lt;/strong&gt; Save the best still or frame and reuse it as a first frame or reference.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Render the final on the model that fits the shot type&lt;/strong&gt;, at the resolution you'll deliver.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep the settings with the output.&lt;/strong&gt; Castaly saves the model and full settings with every result in your library. Whatever tool you use, make sure you can answer "which run was this?"&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Doing it from code
&lt;/h2&gt;

&lt;p&gt;Everything above can be scripted. The same models are available through the Modelflare API gateway. Video is asynchronous: submit, then poll.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl https://modelflare.dev/v1/videos &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Authorization: Bearer &lt;/span&gt;&lt;span class="nv"&gt;$MODELFLARE_API_KEY&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;'{
    "model": "seedance-2.5",
    "prompt": "A traveler runs across a stone bridge as a dragon sweeps behind her",
    "duration": 5,
    "resolution": "1080p"
  }'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Studio and API share the same public prices and the same USD wallet. It's pay-per-use: no subscription, no minimum, and no free tier. If you'd like to see the outputs referenced in this post with their full prompts, they're in Castaly's community gallery, which you can browse without signing up.&lt;/p&gt;

&lt;p&gt;ðŸ‘‰ &lt;a href="https://castaly.modelflare.dev/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=launch" rel="noopener noreferrer"&gt;Compare the models and prices in Castaly&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Prices are public list prices as of October 20, 2026, and change over time. The pricing page is the source of truth.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>generativeai</category>
      <category>video</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>AI API Latency Metrics: TTFT, First Response, and Output Speed</title>
      <dc:creator>Magnus</dc:creator>
      <pubDate>Tue, 20 Oct 2026 02:09:35 +0000</pubDate>
      <link>https://dev.to/modelflare_dev/ai-api-latency-metrics-ttft-first-response-and-output-speed-mja</link>
      <guid>https://dev.to/modelflare_dev/ai-api-latency-metrics-ttft-first-response-and-output-speed-mja</guid>
      <description>&lt;p&gt;A request-timeline guide to upstream headers, first SSE event, first effective response, first visible text, end-to-end latency, and output speed.&lt;/p&gt;

&lt;p&gt;AI API latency is not one number. For a streaming request, record when the upstream headers arrive, when the first non-empty SSE event arrives, when the first meaningful content or action appears, when the first visible text appears, and when the response completes. These milestones answer different questions and should not all be labeled “TTFT.”&lt;/p&gt;

&lt;p&gt;For a text-only chat, time to first visible text is usually the user-facing latency. For a reasoning or tool-using workflow, the first effective output can occur earlier as reasoning metadata or function-call arguments. Generation speed is a separate measurement taken after output starts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Build one request timeline before naming a metric
&lt;/h2&gt;

&lt;p&gt;Use a monotonic clock and one origin for all client- or gateway-level timestamps. A streaming request can be represented as follows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;t0  gateway receives request
t1  gateway starts upstream request
t2  upstream response headers arrive
t3  first non-empty SSE event arrives
t4  first effective content or action arrives
t5  first visible text delta arrives
t6  upstream body completes or closes
t7  gateway handler finishes
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Not every request has every milestone. A non-streaming response has no useful SSE timeline. A function-call-only response may never produce visible text. A cancelled stream may have a start but no normal completion. Store absent values as absent rather than as zero, because zero would falsely imply that the event happened immediately.&lt;/p&gt;

&lt;p&gt;Modelflare records request-level metadata under &lt;code&gt;other.timing&lt;/code&gt;. The fields map to the timeline like this:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;What it measures&lt;/th&gt;
&lt;th&gt;Important boundary&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;auth_ms&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Token and user authentication duration&lt;/td&gt;
&lt;td&gt;Local phase duration, not upstream time&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;distribution_ms&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Channel selection and routing-policy duration&lt;/td&gt;
&lt;td&gt;Local phase duration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;body_read_ms&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Time spent reading the downstream request body&lt;/td&gt;
&lt;td&gt;Can expose a slow upload before routing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;upstream_headers_ms&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Upstream request start to response headers&lt;/td&gt;
&lt;td&gt;Its origin is upstream start, not initial gateway receipt&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;first_sse_event_ms&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Gateway receipt to first non-empty upstream SSE event&lt;/td&gt;
&lt;td&gt;An event can contain metadata rather than useful output&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;first_response_ms&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Gateway receipt to first effective content or action delta&lt;/td&gt;
&lt;td&gt;Includes visible text, reasoning summary, function arguments, or custom tool input&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;first_text_delta_ms&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Gateway receipt to first visible text delta&lt;/td&gt;
&lt;td&gt;Exists only when visible streaming text appears&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;upstream_done_ms&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Gateway receipt to upstream body completion or close&lt;/td&gt;
&lt;td&gt;A close is not automatically a successful completion&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;total_handler_ms&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Gateway receipt to the latest known relay completion point&lt;/td&gt;
&lt;td&gt;Closest gateway-side end-to-end duration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;visible_output_tps&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Output tokens divided by time from first visible text to upstream completion&lt;/td&gt;
&lt;td&gt;A visible-output diagnostic, not system-wide TPS&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;This mapping prevents a common error: subtracting timestamps that do not share an origin. For example, &lt;code&gt;upstream_headers_ms&lt;/code&gt; is a duration beginning when the upstream request starts, while &lt;code&gt;first_response_ms&lt;/code&gt; begins when the gateway receives the request.&lt;/p&gt;

&lt;h2&gt;
  
  
  TTFT has more than one practical meaning
&lt;/h2&gt;

&lt;p&gt;The conventional definition of time to first token is the duration from query submission to the first received output token. The &lt;a href="https://docs.nvidia.com/nim/benchmarking/llm/latest/metrics.html" rel="noopener noreferrer"&gt;NVIDIA NIM benchmarking guide&lt;/a&gt; notes that this generally includes network latency, queueing, and prompt prefill, and that empty initial responses should not count.&lt;/p&gt;

&lt;p&gt;That definition works for a text-generation benchmark, but modern API streams can emit several things before visible text:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a response-created or metadata event;&lt;/li&gt;
&lt;li&gt;a reasoning summary delta;&lt;/li&gt;
&lt;li&gt;function-call argument fragments;&lt;/li&gt;
&lt;li&gt;custom tool input;&lt;/li&gt;
&lt;li&gt;an empty heartbeat or provider-specific envelope.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Use explicit names in dashboards and incident reports:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Name&lt;/th&gt;
&lt;th&gt;Recommended meaning&lt;/th&gt;
&lt;th&gt;Best use&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Time to headers&lt;/td&gt;
&lt;td&gt;Request start to upstream headers&lt;/td&gt;
&lt;td&gt;Network, proxy, and upstream admission diagnosis&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Time to first event&lt;/td&gt;
&lt;td&gt;Request start to first non-empty SSE event&lt;/td&gt;
&lt;td&gt;Transport liveness only&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Time to first effective response&lt;/td&gt;
&lt;td&gt;Request start to useful content or action&lt;/td&gt;
&lt;td&gt;Agent and reasoning workflow responsiveness&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Time to first visible text&lt;/td&gt;
&lt;td&gt;Request start to text a user can render&lt;/td&gt;
&lt;td&gt;Chat and user-perceived responsiveness&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If a chart says only “TTFT,” document which row it means. Otherwise two teams can report different values for the same request and both appear correct.&lt;/p&gt;

&lt;h2&gt;
  
  
  Separate responsiveness from generation speed
&lt;/h2&gt;

&lt;p&gt;End-to-end latency measures the whole request from submission until the full response is received. It includes queueing, prefill, decoding, network transfer, tool pauses represented within the upstream stream, and gateway work visible inside the chosen boundary.&lt;/p&gt;

&lt;p&gt;For a simple completed text stream:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;end_to_end_latency = final_response_time - request_start_time
visible_generation_window = final_response_time - first_visible_text_time
visible_output_tps = output_tokens / visible_generation_window_seconds
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Inter-token latency, also called time per output token, is normally the average spacing between output tokens after the first token. NVIDIA’s AIPerf definition excludes TTFT and divides the remaining duration by &lt;code&gt;output_tokens - 1&lt;/code&gt;. Its reciprocal approximates per-user decode throughput for sufficiently long outputs.&lt;/p&gt;

&lt;p&gt;Do not calculate token-level ITL by counting SSE events or text Delta objects. One event can contain zero, one, or several tokens, and token boundaries depend on the model tokenizer. Modelflare’s &lt;code&gt;visible_output_tps&lt;/code&gt; uses the recorded output-token count and the visible generation window; it does not claim to be a per-token event-spacing measurement or total system throughput.&lt;/p&gt;

&lt;p&gt;These metrics answer separate questions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;low first-text latency with slow output speed feels responsive at first and then sluggish;&lt;/li&gt;
&lt;li&gt;high first-text latency with fast output speed feels stalled and then finishes quickly;&lt;/li&gt;
&lt;li&gt;low per-user output speed does not prove low system throughput under concurrency;&lt;/li&gt;
&lt;li&gt;high aggregate TPS does not guarantee good latency for one user.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Reasoning and tools can precede visible text
&lt;/h2&gt;

&lt;p&gt;In a text-only flow, &lt;code&gt;first_response_ms&lt;/code&gt; and &lt;code&gt;first_text_delta_ms&lt;/code&gt; may be nearly identical. In a reasoning or function-calling flow, the gap can be meaningful.&lt;/p&gt;

&lt;p&gt;Suppose a model emits function-call arguments at 1.8 seconds, the application or provider-side tool flow continues, and visible text begins at 6.4 seconds. The system has produced an actionable result at 1.8 seconds, but the user has not seen prose until 6.4 seconds. Calling both values TTFT hides whether the delay occurred before planning, during a tool step, or before answer rendering.&lt;/p&gt;

&lt;p&gt;Interpret the fields according to the product experience:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;for a terminal agent, first effective action may be the best responsiveness signal;&lt;/li&gt;
&lt;li&gt;for a chat UI that displays only prose, first visible text is the relevant user signal;&lt;/li&gt;
&lt;li&gt;for a tool-call API consumed by code, visible text may be absent and should not be required;&lt;/li&gt;
&lt;li&gt;for a reasoning model, an early SSE envelope proves connection progress but not useful progress.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The &lt;a href="https://modelflare.dev/articles/ai-api-streaming-guide" rel="noopener noreferrer"&gt;AI API Streaming Guide&lt;/a&gt; covers SSE parsing, cancellation, and idle-timeout behavior. Latency metrics should be computed only after the parser distinguishes envelopes from effective output.&lt;/p&gt;

&lt;h2&gt;
  
  
  Diagnose the slow stage in a fixed order
&lt;/h2&gt;

&lt;p&gt;Start at the upstream boundary, then move toward local phases. This avoids blaming authentication or routing when the request spent most of its time waiting for the model.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Symptom&lt;/th&gt;
&lt;th&gt;Primary metric&lt;/th&gt;
&lt;th&gt;Likely layer to inspect&lt;/th&gt;
&lt;th&gt;Next check&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Slow before headers&lt;/td&gt;
&lt;td&gt;&lt;code&gt;upstream_headers_ms&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Network path, upstream admission, provider queue, proxy route&lt;/td&gt;
&lt;td&gt;Compare channel, region, status, and concurrency&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Headers are fast, useful output is late&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;first_response_ms&lt;/code&gt; minus early phases&lt;/td&gt;
&lt;td&gt;Model queueing, prompt prefill, reasoning, upstream scheduling&lt;/td&gt;
&lt;td&gt;Compare input tokens, model, route, and inflight count&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;First event is fast, effective output is late&lt;/td&gt;
&lt;td&gt;Gap from &lt;code&gt;first_sse_event_ms&lt;/code&gt; to &lt;code&gt;first_response_ms&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Metadata-only events, heartbeats, reasoning startup&lt;/td&gt;
&lt;td&gt;Inspect safe event types, not raw content&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Effective action is fast, visible text is late&lt;/td&gt;
&lt;td&gt;Gap from &lt;code&gt;first_response_ms&lt;/code&gt; to &lt;code&gt;first_text_delta_ms&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Tool/reasoning phase or response composition&lt;/td&gt;
&lt;td&gt;Check requested tools and output mode&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Text begins quickly, then crawls&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;visible_output_tps&lt;/code&gt; and &lt;code&gt;upstream_done_ms&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Decode throughput, contention, long context, network backpressure&lt;/td&gt;
&lt;td&gt;Compare output length and channel inflight count&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;All upstream metrics are normal&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;auth_ms&lt;/code&gt;, &lt;code&gt;distribution_ms&lt;/code&gt;, &lt;code&gt;body_read_ms&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Local auth, policy selection, client upload&lt;/td&gt;
&lt;td&gt;Inspect only the phase that is elevated&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;No single metric proves a root cause. High &lt;code&gt;upstream_headers_ms&lt;/code&gt;, for example, groups several possibilities that require route, region, provider, and concurrent-load evidence to separate.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read three synthetic traces
&lt;/h2&gt;

&lt;p&gt;The following values are illustrative diagnostics, not Modelflare production averages or provider benchmarks.&lt;/p&gt;

&lt;h3&gt;
  
  
  Trace A: waiting before upstream headers
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;upstream_headers_ms&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;6,100 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;first_sse_event_ms&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;6,300 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;first_response_ms&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;6,350 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;first_text_delta_ms&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;6,400 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;total_handler_ms&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;9,200 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;visible_output_tps&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;42&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Most of the wait happens before headers. Generation after visible text is comparatively healthy. Check the selected upstream route, provider admission, network path, region, and concurrent load before optimizing the client renderer.&lt;/p&gt;

&lt;h3&gt;
  
  
  Trace B: useful action before visible prose
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;upstream_headers_ms&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;240 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;first_sse_event_ms&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;310 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;first_response_ms&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;2,900 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;first_text_delta_ms&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;8,700 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;total_handler_ms&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;10,200 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;visible_output_tps&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;55&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Transport is alive early and an effective action appears at 2.9 seconds, but visible text waits another 5.8 seconds. If the request uses reasoning or tools, inspect that phase. Increasing a header timeout would not address this pattern.&lt;/p&gt;

&lt;h3&gt;
  
  
  Trace C: fast start, slow generation
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;upstream_headers_ms&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;260 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;first_sse_event_ms&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;330 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;first_response_ms&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;420 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;first_text_delta_ms&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;430 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;total_handler_ms&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;20,430 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;visible_output_tps&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;9.8&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The request becomes visible quickly but spends about 20 seconds generating. Compare output length, context length, selected channel, inflight count, and provider behavior. A first-output timeout would pass and therefore cannot detect this failure mode.&lt;/p&gt;

&lt;h2&gt;
  
  
  Compare latency only under controlled conditions
&lt;/h2&gt;

&lt;p&gt;A fair comparison holds the workload contract stable. At minimum, record:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;exact model identifier and route or group;&lt;/li&gt;
&lt;li&gt;input-token and output-token distributions, not just averages;&lt;/li&gt;
&lt;li&gt;streaming versus non-streaming mode;&lt;/li&gt;
&lt;li&gt;enabled reasoning effort and tools;&lt;/li&gt;
&lt;li&gt;region and client-to-gateway network path;&lt;/li&gt;
&lt;li&gt;concurrency or arrival rate;&lt;/li&gt;
&lt;li&gt;sampling settings and maximum output length;&lt;/li&gt;
&lt;li&gt;warmup policy, retry policy, and excluded failures;&lt;/li&gt;
&lt;li&gt;sample size, time window, and percentile method.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Compare p50, p95, and p99 rather than presenting one average. Keep failures visible: removing timeouts and errors can make a route look faster precisely when it is less reliable. Never compare two providers with different prompts, output lengths, concurrency, or endpoint behavior and present the result as a model-speed ranking.&lt;/p&gt;

&lt;h2&gt;
  
  
  Retain diagnostic metadata without retaining content
&lt;/h2&gt;

&lt;p&gt;Latency diagnosis does not require storing prompts, responses, API keys, or plaintext client identities. A useful request record can contain:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a generated request ID and timestamp;&lt;/li&gt;
&lt;li&gt;model, group, and selected channel reference;&lt;/li&gt;
&lt;li&gt;status and terminal outcome;&lt;/li&gt;
&lt;li&gt;input, output, and cached-token counts when available;&lt;/li&gt;
&lt;li&gt;the timing fields above;&lt;/li&gt;
&lt;li&gt;stream event and text-delta counts;&lt;/li&gt;
&lt;li&gt;channel inflight count;&lt;/li&gt;
&lt;li&gt;coarse region and a privacy-reviewed network trace identifier;&lt;/li&gt;
&lt;li&gt;a coarse classifier such as &lt;code&gt;upstream_headers_slow&lt;/code&gt; or &lt;code&gt;generation_slow_tps&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Apply retention limits and access controls even to metadata. Request IDs, route choices, timing patterns, and token counts can still reveal operational behavior when combined.&lt;/p&gt;

&lt;p&gt;Begin an investigation with the request timeline, not a single TTFT label. Then use &lt;a href="https://modelflare.dev/articles/reliable-ai-api-routing" rel="noopener noreferrer"&gt;Reliable AI API Routing&lt;/a&gt; to compare the exact route selected for each attempt and &lt;a href="https://modelflare.dev/articles/ai-api-error-troubleshooting" rel="noopener noreferrer"&gt;AI API Error Troubleshooting&lt;/a&gt; to pair timing with the terminal status. This produces evidence that can separate admission delay, model startup, reasoning or tool work, visible generation, and local gateway overhead.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://modelflare.dev/articles/ai-api-latency-metrics?utm_source=devto&amp;amp;utm_medium=syndication&amp;amp;utm_campaign=blog" rel="noopener noreferrer"&gt;modelflare.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I'm part of the Modelflare team, which builds the AI API gateway mentioned in this article.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>api</category>
      <category>performance</category>
      <category>observability</category>
    </item>
    <item>
      <title>AI API Fallback Strategy: Build a Provider Failure Matrix</title>
      <dc:creator>Magnus</dc:creator>
      <pubDate>Mon, 19 Oct 2026 03:18:55 +0000</pubDate>
      <link>https://dev.to/modelflare_dev/ai-api-fallback-strategy-build-a-provider-failure-matrix-23d6</link>
      <guid>https://dev.to/modelflare_dev/ai-api-fallback-strategy-build-a-provider-failure-matrix-23d6</guid>
      <description>&lt;p&gt;A phase-aware policy for deciding when to retry, use a same-contract route fallback, stop, reconcile side effects, or investigate a provider path.&lt;/p&gt;

&lt;p&gt;An AI API retry, a route fallback, and a model substitution are three different actions. A retry repeats an attempt under the same contract. A route fallback sends the requested model and protocol to another eligible channel or group. A model substitution deliberately changes the requested model and may change quality, price, latency, tool behavior, context limits, and output format.&lt;/p&gt;

&lt;p&gt;A reliable policy decides which action is allowed before an incident. The decision must consider the failure class, whether any response has already reached the caller, whether replay is idempotent, and how many attempts fit within the user’s deadline.&lt;/p&gt;

&lt;h2&gt;
  
  
  Separate retry, fallback, and model substitution
&lt;/h2&gt;

&lt;p&gt;Use distinct names in configuration, logs, and runbooks.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Action&lt;/th&gt;
&lt;th&gt;What changes&lt;/th&gt;
&lt;th&gt;Appropriate purpose&lt;/th&gt;
&lt;th&gt;Main risk&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Same-route retry&lt;/td&gt;
&lt;td&gt;Time and attempt number&lt;/td&gt;
&lt;td&gt;Recover from a short transient failure on the same route&lt;/td&gt;
&lt;td&gt;Repeating load against an unhealthy dependency&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Same-contract fallback&lt;/td&gt;
&lt;td&gt;Upstream channel, account, or explicitly ordered group&lt;/td&gt;
&lt;td&gt;Preserve the requested model and protocol when one path fails&lt;/td&gt;
&lt;td&gt;Hidden incompatibility between supposedly equivalent routes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Model substitution&lt;/td&gt;
&lt;td&gt;Model identifier or a named model policy&lt;/td&gt;
&lt;td&gt;A product-approved quality, cost, or availability tradeoff&lt;/td&gt;
&lt;td&gt;Silent behavior and billing changes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Do not label all three as “retry.” Operators need to know whether a request was replayed, moved to another path, or answered by a different model. Users need model substitution to be an explicit product contract, not an invisible recovery shortcut.&lt;/p&gt;

&lt;p&gt;Some gateways support ordered model or provider steps. For example, &lt;a href="https://developers.cloudflare.com/ai-gateway/configuration/fallbacks/" rel="noopener noreferrer"&gt;Cloudflare’s fallback documentation&lt;/a&gt; exposes which step produced the successful response. The important design lesson is not to copy a vendor’s exact policy; it is to preserve attempt-level evidence whenever a route changes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Apply four gates before replaying a request
&lt;/h2&gt;

&lt;p&gt;A status code alone is not a retry policy. Evaluate four gates:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Failure class:&lt;/strong&gt; Is the failure transient, permanent, caller-caused, or ambiguous?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Response phase:&lt;/strong&gt; Did it happen before headers, before effective output, or after output was delivered?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Idempotency:&lt;/strong&gt; Can the complete application operation be repeated without a duplicate side effect?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Attempt budget:&lt;/strong&gt; Is there enough remaining wall-clock time and an unused attempt?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The &lt;a href="https://docs.cloud.google.com/storage/docs/retry-strategy" rel="noopener noreferrer"&gt;Google Cloud retry strategy&lt;/a&gt; makes the same two foundational distinctions for general APIs: the response indicates whether retry may be useful, and idempotency determines whether replay is safe. It lists &lt;code&gt;408&lt;/code&gt;, &lt;code&gt;429&lt;/code&gt;, &lt;code&gt;5xx&lt;/code&gt;, socket timeouts, and disconnects as commonly transient, while warning that non-idempotent operations need stronger conditions.&lt;/p&gt;

&lt;p&gt;For an AI workflow, idempotency extends beyond the model HTTP request. A replayed prompt can propose the same email, refund, deployment, or database write again. Tool execution therefore needs its own stable idempotency key and persisted result, even if the inference call itself is read-only.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start from a failure matrix
&lt;/h2&gt;

&lt;p&gt;The matrix below is a conservative application policy. A gateway may perform an internal same-contract channel failover before the application sees the terminal result, so coordinate the two layers rather than duplicating them.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Failure or phase&lt;/th&gt;
&lt;th&gt;Same-route retry&lt;/th&gt;
&lt;th&gt;Same-contract fallback&lt;/th&gt;
&lt;th&gt;Stop or investigate&lt;/th&gt;
&lt;th&gt;Reason&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Client validation error, unsupported field, or malformed request&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Fix request&lt;/td&gt;
&lt;td&gt;Replaying the same invalid contract cannot succeed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gateway authentication, authorization, quota, or policy denial&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Stop and correct account or policy&lt;/td&gt;
&lt;td&gt;Another provider route must not bypass the gateway decision&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Upstream credential or account failure before output&lt;/td&gt;
&lt;td&gt;No on the failed route&lt;/td&gt;
&lt;td&gt;Yes, if another verified channel is eligible&lt;/td&gt;
&lt;td&gt;Quarantine and investigate failed channel&lt;/td&gt;
&lt;td&gt;The user contract can remain the same while an unhealthy credential is removed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Network failure or &lt;code&gt;408&lt;/code&gt; before response output&lt;/td&gt;
&lt;td&gt;At most one bounded attempt if idempotent&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Stop at deadline&lt;/td&gt;
&lt;td&gt;The result is transient, but completion may be ambiguous after a disconnect&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;429&lt;/code&gt; before output&lt;/td&gt;
&lt;td&gt;Honor &lt;code&gt;Retry-After&lt;/code&gt; for delayed retry&lt;/td&gt;
&lt;td&gt;Yes when another same-contract route has capacity&lt;/td&gt;
&lt;td&gt;Stop when budget is exhausted&lt;/td&gt;
&lt;td&gt;Immediate repeated retries amplify rate limiting&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Upstream &lt;code&gt;500&lt;/code&gt;, &lt;code&gt;502&lt;/code&gt;, &lt;code&gt;503&lt;/code&gt;, or &lt;code&gt;504&lt;/code&gt; before output&lt;/td&gt;
&lt;td&gt;Bounded retry with backoff&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Investigate repeated route failures&lt;/td&gt;
&lt;td&gt;Usually transient, but not evidence that every route is safe&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Schema-invalid or malformed provider response before downstream output&lt;/td&gt;
&lt;td&gt;Usually no&lt;/td&gt;
&lt;td&gt;Only to a route verified for the same schema&lt;/td&gt;
&lt;td&gt;Quarantine or investigate compatibility&lt;/td&gt;
&lt;td&gt;Repeating the same incompatible implementation is unlikely to help&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Model refusal or policy-safe completion&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Return the modeled outcome&lt;/td&gt;
&lt;td&gt;A valid refusal is not an infrastructure outage to route around&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Caller cancellation or downstream &lt;code&gt;499&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Stop immediately&lt;/td&gt;
&lt;td&gt;The caller no longer wants work; retries waste capacity and cost&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Partial stream after visible content or tool arguments reached the caller&lt;/td&gt;
&lt;td&gt;No transparent replay&lt;/td&gt;
&lt;td&gt;No transparent fallback&lt;/td&gt;
&lt;td&gt;Mark partial and let the application decide&lt;/td&gt;
&lt;td&gt;A second stream can duplicate or contradict already delivered output&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tool side effect has unknown completion state&lt;/td&gt;
&lt;td&gt;No until reconciled&lt;/td&gt;
&lt;td&gt;No until reconciled&lt;/td&gt;
&lt;td&gt;Query the idempotency record or downstream system&lt;/td&gt;
&lt;td&gt;Re-inference can propose the same side effect again&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;This matrix is deliberately phase-aware. A &lt;code&gt;503&lt;/code&gt; received before any downstream output is different from a connection that closes after 400 text tokens have already been rendered.&lt;/p&gt;

&lt;h2&gt;
  
  
  Treat a started stream as a commit boundary
&lt;/h2&gt;

&lt;p&gt;Before downstream output starts, a gateway can often discard a failed attempt and try another eligible route without exposing two answers. After the first byte of meaningful output reaches the caller, transparent replay becomes unsafe.&lt;/p&gt;

&lt;p&gt;A restarted stream may:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;repeat the beginning of an answer;&lt;/li&gt;
&lt;li&gt;produce a different continuation;&lt;/li&gt;
&lt;li&gt;issue a duplicate function call with a new Call ID;&lt;/li&gt;
&lt;li&gt;change usage and cost without a clear boundary;&lt;/li&gt;
&lt;li&gt;leave the client unable to tell which events belong together.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When a stream breaks after output has started, return a terminal partial or transport error with the original request identity. The application can offer an explicit “try again” action, continue from a safe application checkpoint, or discard the partial output. It should not splice a new model stream onto the old stream as if nothing happened.&lt;/p&gt;

&lt;p&gt;For Function Calling, the safest boundary is stricter: persist accepted Tool Call identities and side-effect results before any retry can recreate them. The &lt;a href="https://modelflare.dev/articles/function-calling-responses-vs-chat-completions" rel="noopener noreferrer"&gt;Function Calling comparison&lt;/a&gt; shows how Call IDs and application idempotency fit together.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bound backoff by attempts and wall-clock time
&lt;/h2&gt;

&lt;p&gt;Exponential backoff spreads repeated attempts over time. Jitter prevents many clients from retrying in lockstep after a shared outage.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;delay_cap = min(max_delay, base_delay * 2^retry_index)
sleep_for = random_between(0, delay_cap)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Honor a valid &lt;code&gt;Retry-After&lt;/code&gt; signal when it fits the user’s deadline. Backoff is not permission to retry: the failure and idempotency gates must pass first.&lt;/p&gt;

&lt;p&gt;Define a total budget, not only a retry count:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;maximum attempts for one user action;&lt;/li&gt;
&lt;li&gt;maximum elapsed time including queueing and backoff;&lt;/li&gt;
&lt;li&gt;maximum attempts before and after selecting a fallback group;&lt;/li&gt;
&lt;li&gt;minimum time left to produce a useful answer;&lt;/li&gt;
&lt;li&gt;cancellation propagation from caller to every active attempt.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For an interactive request with a 15-second deadline, three 10-second attempts are not a real policy. The later attempts cannot finish within the user contract. Batch workloads can use a longer budget, but should still have a terminal deadline and a durable job identity.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prevent retry amplification across layers
&lt;/h2&gt;

&lt;p&gt;Assume an SDK makes one request plus two retries: three client attempts. The gateway makes one primary attempt plus two channel fallbacks for each client attempt: three gateway attempts. An upstream proxy makes one retry per attempt: two provider calls.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;3 client attempts × 3 gateway attempts × 2 upstream attempts = 18 provider calls
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;One user action has now become 18 provider calls. During an outage, this increases queueing, rate limiting, cost, and recovery time.&lt;/p&gt;

&lt;p&gt;Assign retry ownership deliberately:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the gateway owns immediate same-contract channel failover;&lt;/li&gt;
&lt;li&gt;the application owns whether a complete user action may be repeated;&lt;/li&gt;
&lt;li&gt;an SDK’s automatic retries are disabled or bounded when the gateway already retries;&lt;/li&gt;
&lt;li&gt;asynchronous jobs use one durable job ID and an attempt ledger;&lt;/li&gt;
&lt;li&gt;no layer starts a new attempt after caller cancellation.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Log both “attempt number at this layer” and a stable end-to-end request identity. Otherwise each layer appears to have made only two or three attempts while the combined amplification remains hidden.&lt;/p&gt;

&lt;h2&gt;
  
  
  Verify that a fallback really preserves the contract
&lt;/h2&gt;

&lt;p&gt;The same public model name does not prove two routes behave identically. Before adding a channel to a same-contract fallback set, test:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Contract area&lt;/th&gt;
&lt;th&gt;Evidence required&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Model identity&lt;/td&gt;
&lt;td&gt;Requested model remains available without silent mapping&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Endpoint&lt;/td&gt;
&lt;td&gt;Responses or Chat Completions request is accepted as configured&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Streaming&lt;/td&gt;
&lt;td&gt;Event types, termination, usage, and cancellation are handled&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Structured output&lt;/td&gt;
&lt;td&gt;Required JSON Schema subset and strict behavior work&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Function calling&lt;/td&gt;
&lt;td&gt;Tool definitions, Call IDs, argument streaming, and results round-trip&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Limits&lt;/td&gt;
&lt;td&gt;Context, output, rate, and concurrency limits fit the workload&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Errors&lt;/td&gt;
&lt;td&gt;Status and error bodies remain classifiable without exposing secrets&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Usage and cost&lt;/td&gt;
&lt;td&gt;Token accounting, cache fields, service tier, and price policy are understood&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Safety and region&lt;/td&gt;
&lt;td&gt;Required policy, data path, and residency constraints remain satisfied&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If a candidate route fails one required area, it is not a transparent fallback for that workload. It may still be usable under a separate, explicit product policy.&lt;/p&gt;

&lt;p&gt;Changing to another model is always such a policy decision. Define the permitted model, quality floor, price ceiling, Tool Contract, and user-visible disclosure. Do not use a cheaper or weaker model merely because a route returned an error.&lt;/p&gt;

&lt;h2&gt;
  
  
  Understand Modelflare’s current fallback semantics
&lt;/h2&gt;

&lt;p&gt;Modelflare searches eligible paths for the model requested by the API client. A regular API Key has one primary group and can have an ordered list of fallback groups. A Smart API Key evaluates groups available to the account using its configured routing strategy. Neither mechanism should silently replace the requested model with another model.&lt;/p&gt;

&lt;p&gt;Group-level RPM admission occurs before billing and before an upstream request. If the selected group is full, an ordered fallback group or Smart Routing candidate can be evaluated; if no eligible group remains, the request returns &lt;code&gt;429&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Within a selected group, channel priority defines account failover order. After an upstream error, the failed channel is excluded and selection continues through remaining eligible channels. Current channel failover is independent of &lt;code&gt;RetryTimes&lt;/code&gt; and &lt;code&gt;AutomaticRetryStatusCodes&lt;/code&gt;. It stops on success, eligible-route exhaustion, caller cancellation, or after a downstream response has started and can no longer be transparently replayed.&lt;/p&gt;

&lt;p&gt;These are internal same-model path decisions, not permission for a client to add another unlimited retry loop. Use &lt;a href="https://modelflare.dev/articles/reliable-ai-api-routing" rel="noopener noreferrer"&gt;Reliable AI API Routing&lt;/a&gt; for group and channel design, and &lt;a href="https://modelflare.dev/articles/ai-api-error-troubleshooting" rel="noopener noreferrer"&gt;AI API Error Troubleshooting&lt;/a&gt; to distinguish gateway policy errors from upstream failures.&lt;/p&gt;

&lt;h2&gt;
  
  
  Preserve evidence for every attempt
&lt;/h2&gt;

&lt;p&gt;A final &lt;code&gt;200&lt;/code&gt; does not prove that the first route succeeded. A final channel ID does not describe failed attempts. Retain enough metadata to reconstruct the path:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;stable request ID and caller-visible correlation ID;&lt;/li&gt;
&lt;li&gt;attempt sequence and selected group/channel reference;&lt;/li&gt;
&lt;li&gt;model and endpoint contract used for each attempt;&lt;/li&gt;
&lt;li&gt;failure status, error class, and stream phase;&lt;/li&gt;
&lt;li&gt;whether downstream output had started;&lt;/li&gt;
&lt;li&gt;timing milestones and cancellation state;&lt;/li&gt;
&lt;li&gt;input, output, and cached-token usage when available;&lt;/li&gt;
&lt;li&gt;cost attribution by completed or billable attempt;&lt;/li&gt;
&lt;li&gt;final terminal reason: success, exhausted, cancelled, partial, or policy stop.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Do not retain API keys, raw prompts, raw responses, or provider credentials merely to diagnose fallback. Redacted error classes and timing metadata are usually sufficient, with restricted short-lived request archives reserved for explicitly configured failure investigation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Drill the policy before production traffic depends on it
&lt;/h2&gt;

&lt;p&gt;Run a staging exercise using the real protocol boundary and safe deterministic inputs:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;make the primary channel unavailable before headers and verify the next eligible same-model path;&lt;/li&gt;
&lt;li&gt;return a rate limit and verify attempt limits and any &lt;code&gt;Retry-After&lt;/code&gt; handling;&lt;/li&gt;
&lt;li&gt;cancel the caller and prove that no later attempt starts;&lt;/li&gt;
&lt;li&gt;break a stream after output and prove that no transparent replay occurs;&lt;/li&gt;
&lt;li&gt;send an invalid request and prove that fallback does not hide it;&lt;/li&gt;
&lt;li&gt;repeat a tool workflow and prove that one side effect is recorded;&lt;/li&gt;
&lt;li&gt;exhaust every route and verify one clear terminal error;&lt;/li&gt;
&lt;li&gt;inspect the attempt ledger and reconcile usage and cost.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Roll out the policy to a small workload, monitor attempt count and success-after-fallback separately from raw success rate, and keep a fast way to remove an unhealthy route. The goal is not to maximize fallback frequency. It is to recover only when the original model contract can be preserved safely, within a bounded deadline, with evidence for every attempt.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://modelflare.dev/articles/ai-api-fallback-matrix?utm_source=devto&amp;amp;utm_medium=syndication&amp;amp;utm_campaign=blog" rel="noopener noreferrer"&gt;modelflare.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I'm part of the Modelflare team, which builds the AI API gateway mentioned in this article.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>api</category>
      <category>reliability</category>
      <category>architecture</category>
    </item>
  </channel>
</rss>
