WEBVTT

00:00:00.000 --> 00:00:04.080
The saved calculator counts input tokens for every agent step. Each step

00:00:04.080 --> 00:00:08.159
contains the system prompt plus history from earlier output and tool growth.

00:00:08.159 --> 00:00:12.239
At the defaults, system tokens are two thousand, output four hundred and

00:00:12.239 --> 00:00:16.319
growth six hundred per step, across eight steps. Input sizes run from

00:00:16.319 --> 00:00:20.399
two thousand through nine thousand, summing to forty four thousand. Output totals

00:00:20.399 --> 00:00:24.478
eight times four hundred, or thirty two hundred. With the same settings

00:00:24.478 --> 00:00:28.558
and a history window of two thousand, input sizes become two thousand,

00:00:28.558 --> 00:00:32.638
three thousand, then four thousand for each of the remaining six steps,

00:00:32.638 --> 00:00:36.718
summing to twenty nine thousand. Bars compare two hundred sixty four and

00:00:36.718 --> 00:00:40.797
one hundred seventy four pixels at point zero zero six pixels per

00:00:40.797 --> 00:00:44.877
input token. The window caps added history only; it does not include

00:00:44.877 --> 00:00:48.957
the system prompt in its cap. The first step has no previous

00:00:48.957 --> 00:00:53.037
output or growth.

00:00:53.037 --> 00:00:57.510
Cost per run is input tokens times input price per million plus

00:00:57.510 --> 00:01:01.984
output tokens times output price per million. Use the saved illustrative large-model

00:01:01.984 --> 00:01:06.457
rates of three dollars for input and fifteen for output. Forty four

00:01:06.457 --> 00:01:10.931
thousand input tokens cost thirteen point two cents and thirty two hundred

00:01:10.931 --> 00:01:15.405
output tokens cost four point eight cents, totaling eighteen cents per run.

00:01:15.405 --> 00:01:19.878
With twenty runs per experiment, five experiments per day and thirty days,

00:01:19.878 --> 00:01:24.352
the month contains three thousand runs and costs five hundred forty dollars.

00:01:24.352 --> 00:01:28.826
Windowed input twenty nine thousand instead costs eight point seven cents, plus

00:01:28.826 --> 00:01:33.299
the same four point eight cents of output, totaling thirteen point five

00:01:33.299 --> 00:01:37.773
cents per run or four hundred five dollars per month. Bars use

00:01:37.773 --> 00:01:42.246
half a pixel per monthly dollar. These are arithmetic examples using editable

00:01:42.246 --> 00:01:46.720
sample prices, not verified current provider pricing or actual billed usage. Cached

00:01:46.720 --> 00:01:51.194
input discounts, retries, tool fees and other billing details are not separately

00:01:51.194 --> 00:01:55.667
modeled.

00:01:55.667 --> 00:02:00.204
Peak context is the largest per-step input size, so the full-history example

00:02:00.204 --> 00:02:04.740
peaks at nine thousand while the two thousand history window peaks at

00:02:04.740 --> 00:02:09.276
four thousand. Bars compare two hundred seventy and one hundred twenty pixels

00:02:09.276 --> 00:02:13.812
at point zero three pixels per context token. The limit field produces

00:02:13.812 --> 00:02:18.349
a warning only when peak is strictly greater than the entered limit.

00:02:18.349 --> 00:02:22.885
It does not truncate input, change the estimated spend or simulate an

00:02:22.885 --> 00:02:27.421
API rejection. Equality is displayed as within limit. Steps and runs are

00:02:27.421 --> 00:02:31.957
rounded and clamped to at least one, with steps capped at two

00:02:31.957 --> 00:02:36.494
hundred; negative growth and prices are treated as zero for computation. Monthly

00:02:36.494 --> 00:02:41.030
estimates always use thirty days. The summary copy includes input and output

00:02:41.030 --> 00:02:45.566
totals, peak, limit, history mode and monthly model totals. All calculation occurs

00:02:45.566 --> 00:02:50.102
in this browser source; no model request or real billing event is

00:02:50.102 --> 00:02:54.639
part of the local explainer run.
