Skip to main content

Foundation Model Token Cost Comparison: 14 Amazon Bedrock Models Measured with a Coding-Agent Ralph Loop

63 min read
Reference Benchmark

This benchmark was built with reference to the Ralph loop completion by model report by Jung Do Hyun (정도현, Roboco).

Measurement Status

Measured — 14 models ran five times each on Amazon Bedrock in us-east-1, 70 runs in total, of which 69 completed. The 13 models other than Claude Fable 5.1 ran from 2026-10-12 22:28 to 2026-10-13 00:18 UTC. Claude Fable 5.1 ran separately from 2026-10-13 04:36 to 05:21 UTC, after the account's data retention setting was changed. Every number was generated from the run records by script. Each value is labelled by its basis: [fact] (run or queried directly), [calculated] (a fixed rule such as tokens × price), [estimate] (involves an assumption) or [source] (the supporting material). Values that could not be confirmed are marked "not verified".

Series: Index · Part 1: Bedrock · Part 2: EKS baseline — planned · Part 3: EKS optimizations — planned. Only the 14 historical models below have results in this published dataset. The Terra follow-up and EKS stages have no verified results here.

  • Completed69/7014 models
  • Cheapest modelGPT-6 LunaMedian $0.027 per run
  • Priciest modelGPT-6 AstraMedian $3.495 per run
  • Cost ratio (max/min)130.4×
  • Cache-read token share94%
  • Total spend$106.02results $88.42 + discarded first attempt $17.60

Overview​

This report measures, on Amazon Bedrock, how many tokens, how much money and how many LLM requests each model needs for an AI coding agent to finish the same backend implementation task. A Ralph loop gives the same prompt to a fresh agent session over and over; only the repository (files and git history) carries over between iterations. Every model ran with the same harness (pi coding agent) and the same API (Bedrock Converse), so the differences shown here are differences between models under the same conditions.

Summary​

  • Completion [fact]: 69 of 70 runs completed; the one that did not is GLM 5.3 run 4. Every model's median Ralph iteration count is 1.
  • Cost depends heavily on the model [calculated]: median cost per run ranges from $0.027 (GPT-6 Luna) to $3.495 (GPT-6 Astra), about 130×.
  • Models differ more than groups [calculated]: the Chinese open-weight group value ($1.621) was about 2.0× the frontier value ($0.831), while costs inside the frontier group differ by about 130×.
  • Cache reads are a large share of cost [calculated]: 94% of the tokens in completed runs were cache reads. They are cheap per token but so numerous that they made up a large part of the run cost for many models.
  • Spend [calculated]: $106.02 in total, the $88.42 of runs used in the results plus $17.60 for the discarded first attempt. These are not billed amounts.

GPT-6 Astra is included. Its recorded ID is us.openai.gpt-6-astra. It completed 5/5 attempts, all in one Ralph iteration, with median calculated cost $3.4954 and median elapsed time 7.883 minutes. This was the highest median cost among these 14 models on this task; it does not establish general coding quality. See Astra's detailed result, all measured models, and the evidence coverage.

Model evidence coverage​

Coverage reviewed 2026-10-30. "Not reverified" means this update has not established a dated, version-matched primary-source result or current Bedrock price. It does not mean no public evidence exists. The recorded prices under Prices applied remain the historical snapshot; they are not today's prices. The same coverage rule applies to every provider and every service tier.

ModelRecorded / proposed IDLocal measurementPublic evaluationCurrent Bedrock price
Claude Opus 5.5us.anthropic.claude-opus-5-55/5 completedNot reverifiedNot reverified
Claude Sonnet 5.5us.anthropic.claude-sonnet-5-55/5 completedProvider report located; conditions belowNot reverified
Claude Haiku 5.5us.anthropic.claude-haiku-5-55/5 completedProvider report located; conditions belowNot reverified
Claude Fable 5.1us.anthropic.claude-fable-5-15/5 completedNot reverifiedNot reverified
Claude Opus 5us.anthropic.claude-opus-55/5 completedNot reverifiedNot reverified
Claude Sonnet 5us.anthropic.claude-sonnet-55/5 completedNot reverifiedNot reverified
Claude Opus 4.8us.anthropic.claude-opus-4-85/5 completedNot reverifiedNot reverified
GPT-6.1 Solus.openai.gpt-6.1-sol5/5 completedModel documentation verified; matched task evaluation pendingVerified Standard US CRIS; below
GPT-6 Astraus.openai.gpt-6-astra5/5 completedSystem-card source located; scoped review belowVerified Standard US CRIS; below
GPT-6 Solus.openai.gpt-6-sol5/5 completedNot reverifiedNot reverified
GPT-6 Lunaus.openai.gpt-6-luna5/5 completedNot reverifiedNot reverified
GPT-5.6 Solus.openai.gpt-5.6-sol5/5 completedNot reverifiedNot reverified
Kimi K3us.moonshotai.kimi-k35/5 completedNot reverifiedNot reverified
GLM 5.3us.zai.glm-5.34/5 completedNot reverifiedNot reverified
GPT-6.1 Terraus.openai.gpt-6.1-terra (follow-up target)No verified batch hereSystem-card addendum located; scoped review belowVerified Standard US CRIS; below

Public provider evaluations, historical RealWorld measurements, and token-price examples are separate evidence classes. Adding a model to this table adds no chart point. A new evaluation or price row requires its exact model/version, primary source, verification date, benchmark/harness or Region/routing/tier/context/cache conditions. Different Sol service tiers do not represent additional models.

Verified primary-source scope​

The following sources were read on 2026-10-30. Locating an evaluation source does not mean its complete system card was audited or its results reproduced. No provider score is added to the Ralph charts.

ModelPrimary sourceVerified scope / comparison limit
GPT-6 AstraOpenAI system cardPublished 2026-09-03; scoped safety/alignment evaluation review. These are not matched RealWorld runs.
GPT-6.1 TerraOpenAI system-card addendumPublished 2026-10-26; research/API evaluations may use different prompts, tools and efforts. Earlier-model comparison values may reflect later revisions.
Claude Sonnet 5.5Anthropic provider reportPublished 2026-09-28; includes Terminal-Bench 4.0 and other named evaluations. The report notes effort and prerelease caveats; this check did not harmonize its runner with Ralph.
Claude Haiku 5.5Anthropic provider reportPublished 2026-10-07; includes Terminal-Bench 4.0 and OSWorld 2.1 offline-subset results. These are separate workloads; runner/effort parity with Ralph is not established.

Official OpenAI API model pages were also read for Astra, Terra and Sol. They establish named API model and pricing documentation, not a comparable RealWorld score. First-party API rates are not substituted for Bedrock rates.

The Terra announcement returned HTTP 403 with a browser challenge in this check. Its unread body is not evidence here; the accessible model card and system-card addendum remain separate verified sources. Other models' current prices and matched public-task evaluations remain explicitly unverified rather than inferred from a family or tier.

Current documented Bedrock prices​

Checked 2026-10-30 in each official model card: Standard, commercial US geographic cross-Region inference, bedrock-runtime, from the us-east-1 source Region, at most 272,000 input tokens. Values are USD per 1 million tokens. The US premium is already included. Cache-write rows use 30-minute retention.

ModelUS inference profileInputCache writeCache readOutputPrimary source
GPT-6 Astraus.openai.gpt-6-astra$11.00$13.75$1.10$55.00Bedrock model card
GPT-6.1 Terraus.openai.gpt-6.1-terra$1.10$1.375$0.055$5.50Bedrock model card
GPT-6.1 Solus.openai.gpt-6.1-sol$2.20$2.75$0.11$11.00Bedrock model card

For these cards, requests above 272,000 input tokens use long-context rates for the full request: 2× the input/cache rates and 1.5× the output rate. Other routing and service tiers require their own rows. This dated price table changes no historical run, cost, cache record or rank; it is neither a new benchmark batch nor a verified bill. Account access, actual routing and cache behavior were not exercised by this document check.

How It Was Measured​

Task and completion rule
RealWorld backend
StackTypeScriptFastifyPrismaSQLite
ScopeAuthUsers & profilesArticlesCommentsFavoritesTagsFeed
Completion (both must hold)
Builder creates .ralph-doneANDOfficial Hurl grader: all 13 files, 154 requests

If grading fails, the harness deletes .ralph-done and runs another iteration

One Ralph-loop iteration
  1. Builder
    Implements from PROMPT-en.md; from iteration 2 it reads REVIEW.md first
  2. Verifier
    Runs the Hurl tests itself and writes REVIEW.md; edits nothing else
  3. Grader
    Decides completion with the official Hurl tests (13 files, 154 requests)

Not complete → next iteration (new session; only the repository carries over)

Builder and verifier use the same model

Guardrails
  • Iterations max 30
  • Run cap 20 min
  • Stall watchdog 300 s
  • Cost caps: run $100 · model $500 · total $7,000
  • Isolation: one Docker container per agent session and per grading pass (8 GB, 4 CPU, 4,096 processes)
  • Credentials: Bedrock-only short-term API key, max 60 min, refreshed every 10 min, no AWS access keys in containers
  • Execution: up to 7 models in parallel; the 5 runs of one model in sequence
  • Harness: pi coding agent 0.87.1 · Bedrock Converse · thinking medium · English prompts
How each run works
One run repeats builder, verifier and grader; a run counts as complete only when both conditions hold.
Source: Task and grading: the RealWorld specification and the public Hurl tests · run settings: this report (public repository)
  • One fix in the pi bundle: pi 0.87.1 sends a thinking format that Bedrock rejects for Claude Haiku 5.5, so haiku-5 was added to two model-name lists in the pi bundle. Requests to the other models are unaffected.
  • Thinking setting: medium. Claude models receive it as adaptive thinking with effort=medium; for the other models pi sends no reasoning field, so the model default applies.
Metric definitions
  • Completed: a run that passed the official grader. Medians and minimum–maximum ranges use completed runs only.
  • Tokens [fact]: the usage Bedrock reported in each response, summed over all builder and verifier requests. Input means uncached input tokens; output includes reasoning tokens. Cache reads and cache writes are counted separately.
  • Cost [calculated]: token counts times the prices under "Prices applied". Cache writes use the 5-minute cache price, the Bedrock default when, as with pi, no cache lifetime is specified.
  • Ralph iterations: the number of iterations in which the builder ran.
  • LLM requests: the number of responses the model returned (model-level "turns"), builder and verifier combined.
  • Run time: from the start to the end of a run, including the builder and verifier sessions and grading.

Models Compared​

All called in us-east-1 through US cross-Region inference profiles (us. model IDs) · checked on 2026-10-12 in three steps: model cards, account permissions, a live call

Frontier 12 measured
  • Claude Opus 5.5
  • Claude Sonnet 5.5
  • Claude Haiku 5.5
  • Claude Fable 5.1Requires data retention aws_review
  • Claude Opus 5
  • Claude Sonnet 5
  • Claude Opus 4.8
  • GPT-6.1 Sol
  • GPT-6 Astra
  • GPT-6 Sol
  • GPT-6 Luna
  • GPT-5.6 Sol
Chinese open-weight 2 measured
  • Kimi K3
  • GLM 5.3
Not measured (examples)
  • Claude Fable 5Anthropic
  • Claude Opus 4.7Anthropic
  • GPT-5.6 TerraOpenAI
  • gpt-oss-120bOpenAI
  • Grok 4.7xAI
  • DeepSeek V3.2DeepSeek
  • Qwen3 Coder NextQwen
  • MiniMax M2.5MiniMax
  • Kimi K2.5Moonshot AI
  • GLM 5Z.AI

The "Not measured (examples)" column lists some of the models that are on Bedrock but were not measured (Bedrock documentation, checked 2026-10-14).

Show data
ModelGroupStatusNote
Claude Opus 5.5FrontierMeasured—
Claude Sonnet 5.5FrontierMeasured—
Claude Haiku 5.5FrontierMeasured—
Claude Fable 5.1FrontierMeasuredRequires data retention aws_review
Claude Opus 5FrontierMeasured—
Claude Sonnet 5FrontierMeasured—
Claude Opus 4.8FrontierMeasured—
GPT-6.1 SolFrontierMeasured—
GPT-6 AstraFrontierMeasured—
GPT-6 SolFrontierMeasured—
GPT-6 LunaFrontierMeasured—
GPT-5.6 SolFrontierMeasured—
Kimi K3Chinese open-weightMeasured—
GLM 5.3Chinese open-weightMeasured—
Claude Fable 5AnthropicNot measured—
Claude Opus 4.7AnthropicNot measured—
GPT-5.6 TerraOpenAINot measured—
gpt-oss-120bOpenAINot measured—
Grok 4.7xAINot measured—
DeepSeek V3.2DeepSeekNot measured—
Qwen3 Coder NextQwenNot measured—
MiniMax M2.5MiniMaxNot measured—
Kimi K2.5Moonshot AINot measured—
GLM 5Z.AINot measured—
Models measured
The frontier and Chinese open-weight models measured, alongside examples of models that are on Bedrock but were not measured this time.
Source: Amazon Bedrock User Guide (model cards, Region availability), checked 2026-10-12 and 2026-10-14
  • Open-weight status [source]: the Bedrock model cards describe Kimi K3 as an "open-weight model" and GLM 5.3 as an "open weight text generation model".

  • Claude Fable 5.1 [fact]: it can be called only when the account's us-east-1 data retention mode is aws_review or stronger. It ran after the account owner changed the mode from inherit to aws_review (2026-10-13 04:25:43 UTC).

  • Scope [source]: 14 of the text-generation models callable on Amazon Bedrock in us-east-1 were measured. Bedrock also offers other text-generation models, e.g. Claude Fable 5, Claude Opus 4.7, GPT-5.6 Terra, gpt-oss-120b, Grok 4.7, DeepSeek V3.2, Qwen3 Coder Next, MiniMax M2.5, Kimi K2.5, GLM 5, which were not included (Bedrock documentation, checked 2026-10-14).

What the data retention setting changes

Based on the Bedrock User Guide: Data retention (checked 2026-10-13) [source].

  • It is set through the API, not the console. Example: aws bedrock put-account-data-retention --region us-east-1 --mode aws_review. To revert, set --mode inherit again.
  • It applies to every bedrock-runtime request the account sends in that Region.
  • Prompts and outputs of Fable 5 and 5.1 requests are retained inside the AWS boundary for up to 30 days and may be reviewed by AWS staff. They are not shared with the model provider.
  • Other models follow the modes they allow; requests to a model that allows no retention (none) are still not retained.
  • With cross-Region inference, retained data is stored in the Region that actually processed the request.

Results​

Model comparison​

Each panel ranks the models on one metric, best first, using the median over completed runs; for all three metrics, lower is better.

  • Cheapest
    GPT-6 Luna
    $0.027
  • Fastest
    GPT-6 Sol
    3.1 min
  • Fewest output tokens
    GPT-6 Sol
    8.5k
Cost per run
Median, cheapest first
  1. 1GPT-6 Luna$0.027
  2. 2Claude Haiku 5.5$0.065
  3. 3GPT-6 Sol$0.291
  4. 4Claude Sonnet 5.5$0.306
  5. 5GPT-6.1 Sol$0.527
  6. 6GPT-5.6 Sol$0.755
  7. 7Claude Opus 5.5$0.907
  8. 8Claude Sonnet 5$1.179
  9. 9Kimi K3$1.422
  10. 10GLM 5.3$1.821
  11. 11Claude Opus 5$1.999
  12. 12Claude Opus 4.8$2.018
  13. 13Claude Fable 5.1$2.566
  14. 14GPT-6 Astra$3.495
Run time
Median, fastest first
  1. 1GPT-6 Sol3.1 min
  2. 2Claude Sonnet 5.53.8 min
  3. 3GPT-5.6 Sol4.1 min
  4. 4GPT-6 Luna4.2 min
  5. 5Claude Opus 5.56.1 min
  6. 6Claude Opus 4.87.2 min
  7. 7Claude Haiku 5.57.4 min
  8. 8GPT-6 Astra7.9 min
  9. 9GPT-6.1 Sol8.1 min
  10. 10Claude Opus 58.4 min
  11. 11Claude Fable 5.18.9 min
  12. 12Claude Sonnet 59.7 min
  13. 13GLM 5.310.1 min
  14. 14Kimi K310.5 min
Output tokens
Median, fewest first
  1. 1GPT-6 Sol8.5k
  2. 2GPT-5.6 Sol12.0k
  3. 3Claude Sonnet 5.514.2k
  4. 4GPT-6 Luna14.3k
  5. 5GPT-6.1 Sol20.6k
  6. 6Claude Opus 5.520.7k
  7. 7GPT-6 Astra22.2k
  8. 8Claude Opus 4.823.8k
  9. 9Claude Fable 5.126.7k
  10. 10Claude Opus 528.5k
  11. 11Claude Sonnet 532.1k
  12. 12Kimi K339.5k
  13. 13Claude Haiku 5.552.7k
  14. 14GLM 5.359.6k
AnthropicOpenAIMoonshot AIZ.AI
Show data
ModelGroupCost per runRun timeOutput tokens
Claude Opus 5.5Frontier$0.9076.1 min20.7k
Claude Sonnet 5.5Frontier$0.3063.8 min14.2k
Claude Haiku 5.5Frontier$0.0657.4 min52.7k
Claude Fable 5.1Frontier$2.5668.9 min26.7k
Claude Opus 5Frontier$1.9998.4 min28.5k
Claude Sonnet 5Frontier$1.1799.7 min32.1k
Claude Opus 4.8Frontier$2.0187.2 min23.8k
GPT-6.1 SolFrontier$0.5278.1 min20.6k
GPT-6 AstraFrontier$3.4957.9 min22.2k
GPT-6 SolFrontier$0.2913.1 min8.5k
GPT-6 LunaFrontier$0.0274.2 min14.3k
GPT-5.6 SolFrontier$0.7554.1 min12.0k
Kimi K3Chinese open-weight$1.42210.5 min39.5k
GLM 5.3Chinese open-weight$1.82110.1 min59.6k
Model comparison: cost, run time and output tokens
Each panel ranks the models by the median over completed runs; lower is better for all three metrics. Bar length is relative to the largest value in that panel, bar color encodes vendor, and the marker before each name encodes group (circle = frontier, diamond = Chinese open-weight).
Source: This report's 70 measured runs (Amazon Bedrock us-east-1, 2026-10-12 to 2026-10-13 UTC); cost computed at prices checked on 2026-10-12.

Cost and time​

Each point is one model: median cost per completed run on a log scale (horizontal) against median run time (vertical). Lower left is cheaper and faster. The ringed points joined by the dashed step line are the Pareto frontier: no model is both cheaper and faster than these. Hover or focus a point to see its five-run range.

Scatter plot of cost per run (log x-axis) versus run time in minutes (y-axis) for 14 models. Pareto-optimal: GPT-6 Luna, GPT-6 Sol.0.05.010.015.0$0.01$0.1$1$10Cost per run (USD, log scale)Run minutesClaude Opus 5.5Claude Sonnet 5.5Claude Haiku 5.5Claude Fable 5.1Claude Opus 5Claude Sonnet 5Claude Opus 4.8GPT-6.1 SolGPT-6 AstraGPT-6 SolGPT-6 LunaGPT-5.6 SolKimi K3GLM 5.3
Pareto-optimal modelPareto frontierOther models
Click a vendor to highlight only its models.
Show data
ModelVendorGroupCost/run (median)Run minutes (median)Pareto-optimal
Claude Opus 5.5AnthropicFrontier$0.9076.1no
Claude Sonnet 5.5AnthropicFrontier$0.3063.8no
Claude Haiku 5.5AnthropicFrontier$0.0657.4no
Claude Fable 5.1AnthropicFrontier$2.5668.9no
Claude Opus 5AnthropicFrontier$1.9998.4no
Claude Sonnet 5AnthropicFrontier$1.1799.7no
Claude Opus 4.8AnthropicFrontier$2.0187.2no
GPT-6.1 SolOpenAIFrontier$0.5278.1no
GPT-6 AstraOpenAIFrontier$3.4957.9no
GPT-6 SolOpenAIFrontier$0.2913.1yes
GPT-6 LunaOpenAIFrontier$0.0274.2yes
GPT-5.6 SolOpenAIFrontier$0.7554.1no
Kimi K3Moonshot AIChinese open-weight$1.42210.5no
GLM 5.3Z.AIChinese open-weight$1.82110.1no
Cost per run versus run time by model
The x-axis is median cost per run on a log scale; the y-axis is median run time in minutes. Color encodes vendor and marker shape encodes group (circle = frontier, diamond = Chinese open-weight). The large ringed points are the Pareto-optimal models, meaning no other model is both cheaper and faster, and the dashed step line is the Pareto frontier that joins them. Hover or focus a point, or a vendor in the legend, to highlight it; the active point also shows its five-run min–max range and the numbers.
Source: This report's 70 measured runs (Amazon Bedrock us-east-1, 2026-10-12 to 2026-10-13 UTC); cost computed at prices checked on 2026-10-12.

Results by model​

Switch metrics to compare the range of the five runs (bar) and the median (tick); expand a row for per-run values. The table below gives the same values as numbers: medians over completed runs, with the minimum–maximum in parentheses. Cost is [calculated]; the rest are [fact].

Metric
  • Completed run
  • Median
  • Timed out (no completed value)
Model
Completed-run range
Frontier
Claude Opus 5.55/5 completedMedian $0.907Show the five runs
Claude Opus 5.5 — Show the five runs
RunStatusIterationsMinutesLLM requestsOutput tokensTotal tokensCostVerifierCommitsSelf-terminated
1done17.14122,8121,079,865$1.034PASS20
2done15.73020,467689,505$0.872PASS20
3done16.13020,402631,889$0.861PASS20
4done18.04523,7731,088,484$1.054PASS30
5done16.13520,667796,558$0.907PASS20
Claude Sonnet 5.55/5 completedMedian $0.306Show the five runs
Claude Sonnet 5.5 — Show the five runs
RunStatusIterationsMinutesLLM requestsOutput tokensTotal tokensCostVerifierCommitsSelf-terminated
1done13.72513,929489,440$0.319PASS20
2done13.82414,407418,465$0.305FAIL10
3done14.12714,309603,161$0.328FAIL20
4done13.42514,161445,388$0.306PASS30
5done23.92312,677226,794$0.257PASS / PASS21
Claude Haiku 5.55/5 completedMedian $0.065Show the five runs
Claude Haiku 5.5 — Show the five runs
RunStatusIterationsMinutesLLM requestsOutput tokensTotal tokensCostVerifierCommitsSelf-terminated
1done16.23942,8381,155,347$0.046PASS40
2done18.36252,7132,727,358$0.070PASS40
3done17.45054,2572,156,808$0.065PASS40
4done29.97767,5572,711,858$0.084FAIL / PASS70
5done17.04947,8742,032,399$0.059PASS60
Claude Fable 5.15/5 completedMedian $2.566Show the five runs
Claude Fable 5.1 — Show the five runs
RunStatusIterationsMinutesLLM requestsOutput tokensTotal tokensCostVerifierCommitsSelf-terminated
1done18.94429,1871,238,647$2.796PASS20
2done110.95828,5671,564,029$2.837PASS20
3done16.93622,047787,229$2.118PASS70
4done19.34625,5861,183,739$2.555PASS20
5done18.44426,6931,062,192$2.566PASS60
Claude Opus 55/5 completedMedian $1.999Show the five runs
Claude Opus 5 — Show the five runs
RunStatusIterationsMinutesLLM requestsOutput tokensTotal tokensCostVerifierCommitsSelf-terminated
1done16.85024,1651,138,625$1.635PASS20
2done17.35626,4361,452,008$1.876PASS20
3done114.09140,4783,851,983$3.726PASS30
4done110.36932,0531,769,367$2.258PASS20
5done18.45728,5031,555,721$1.999PASS20
Claude Sonnet 55/5 completedMedian $1.179Show the five runs
Claude Sonnet 5 — Show the five runs
RunStatusIterationsMinutesLLM requestsOutput tokensTotal tokensCostVerifierCommitsSelf-terminated
1done111.310236,4923,758,302$1.412PASS10
2done18.38032,1422,787,977$1.128PASS20
3done19.78531,0743,059,198$1.179PASS20
4done18.17731,1272,909,277$1.155PASS20
5done111.49334,7604,019,069$1.455PASS20
Claude Opus 4.85/5 completedMedian $2.018Show the five runs
Claude Opus 4.8 — Show the five runs
RunStatusIterationsMinutesLLM requestsOutput tokensTotal tokensCostVerifierCommitsSelf-terminated
1done16.66023,6801,749,809$1.971PASS20
2done16.65622,3161,675,909$1.859PASS20
3done19.67529,3332,735,633$2.678none21
4done17.66227,1401,873,275$2.134PASS20
5done17.26023,8041,877,268$2.018PASS20
GPT-6.1 Sol5/5 completedMedian $0.527Show the five runs
GPT-6.1 Sol — Show the five runs
RunStatusIterationsMinutesLLM requestsOutput tokensTotal tokensCostVerifierCommitsSelf-terminated
1done18.85322,8471,385,667$0.559PASS60
2done16.74618,4901,112,514$0.457PASS50
3done18.14520,6211,164,468$0.536PASS70
4done18.44422,1891,096,209$0.527PASS40
5done16.54919,0831,251,798$0.495PASS50
GPT-6 Astra5/5 completedMedian $3.495Show the five runs
GPT-6 Astra — Show the five runs
RunStatusIterationsMinutesLLM requestsOutput tokensTotal tokensCostVerifierCommitsSelf-terminated
1done17.54622,2211,325,517$3.495PASS40
2done17.34821,1511,208,409$3.153PASS40
3done17.94821,2991,139,606$3.102PASS60
4done18.85023,6851,340,715$3.511PASS50
5done18.05522,2501,479,623$3.562PASS50
GPT-6 Sol5/5 completedMedian $0.291Show the five runs
GPT-6 Sol — Show the five runs
RunStatusIterationsMinutesLLM requestsOutput tokensTotal tokensCostVerifierCommitsSelf-terminated
1done13.2328,428456,816$0.281PASS20
2done12.9369,605592,640$0.326PASS30
3done12.5337,967432,181$0.258PASS20
4done13.3519,441818,653$0.358PASS20
5done13.1418,544564,091$0.291PASS20
GPT-6 Luna5/5 completedMedian $0.027Show the five runs
GPT-6 Luna — Show the five runs
RunStatusIterationsMinutesLLM requestsOutput tokensTotal tokensCostVerifierCommitsSelf-terminated
1done15.85916,8471,227,597$0.029FAIL20
2done14.04314,265848,865$0.025PASS30
3done315.711345,6431,979,669$0.066FAIL / FAIL / PASS50
4done14.24313,8181,057,982$0.027PASS20
5done14.15014,272961,021$0.024PASS20
GPT-5.6 Sol5/5 completedMedian $0.755Show the five runs
GPT-5.6 Sol — Show the five runs
RunStatusIterationsMinutesLLM requestsOutput tokensTotal tokensCostVerifierCommitsSelf-terminated
1done14.13412,032664,801$0.818PASS40
2done15.82712,787524,621$0.755FAIL20
3done13.43210,223584,537$0.708PASS20
4done15.83112,480775,728$0.908FAIL20
5done13.72910,402505,256$0.667PASS30
Chinese open-weight
Kimi K35/5 completedMedian $1.422Show the five runs
Kimi K3 — Show the five runs
RunStatusIterationsMinutesLLM requestsOutput tokensTotal tokensCostVerifierCommitsSelf-terminated
1done19.86139,5051,658,186$1.422PASS50
2done112.06147,0561,856,453$1.640PASS40
3done110.66535,0081,637,495$1.326PASS20
4done110.56340,0081,815,345$1.479PASS40
5done18.35732,6401,276,997$1.154PASS40
GLM 5.34/5 completedMedian $1.821Show the five runs
GLM 5.3 — Show the five runs
RunStatusIterationsMinutesLLM requestsOutput tokensTotal tokensCostVerifierCommitsSelf-terminated
1done110.37448,7932,876,201$1.402PASS40
2done19.98968,3864,364,926$2.062none41
3done18.28650,7773,389,784$1.595PASS50
4timeout220.18552,8922,491,280$1.433FAIL30
5done115.07377,9144,143,819$2.046PASS60

Table 1. Completion, cost, tokens, requests, and time by model (medians over completed runs)

GroupModelCompletedCost per run (USD)Output tokensTotal tokensLLM requestsRalph iterationsRun time (min)
FrontierClaude Opus 5.55/5$0.907 ($0.861–$1.054)20,667 (20,402–23,773)796,558 (631,889–1,088,484)35 (30–45)16.1 (5.7–8.0)
FrontierClaude Sonnet 5.55/5$0.306 ($0.257–$0.328)14,161 (12,677–14,407)445,388 (226,794–603,161)25 (23–27)1–23.8 (3.4–4.1)
FrontierClaude Haiku 5.55/5$0.065 ($0.046–$0.084)52,713 (42,838–67,557)2,156,808 (1,155,347–2,727,358)50 (39–77)1–27.4 (6.2–9.9)
FrontierClaude Fable 5.15/5$2.566 ($2.118–$2.837)26,693 (22,047–29,187)1,183,739 (787,229–1,564,029)44 (36–58)18.9 (6.9–10.9)
FrontierClaude Opus 55/5$1.999 ($1.635–$3.726)28,503 (24,165–40,478)1,555,721 (1,138,625–3,851,983)57 (50–91)18.4 (6.8–14.0)
FrontierClaude Sonnet 55/5$1.179 ($1.128–$1.455)32,142 (31,074–36,492)3,059,198 (2,787,977–4,019,069)85 (77–102)19.7 (8.1–11.4)
FrontierClaude Opus 4.85/5$2.018 ($1.859–$2.678)23,804 (22,316–29,333)1,873,275 (1,675,909–2,735,633)60 (56–75)17.2 (6.6–9.6)
FrontierGPT-6.1 Sol5/5$0.527 ($0.457–$0.559)20,621 (18,490–22,847)1,164,468 (1,096,209–1,385,667)46 (44–53)18.1 (6.5–8.8)
FrontierGPT-6 Astra5/5$3.495 ($3.102–$3.562)22,221 (21,151–23,685)1,325,517 (1,139,606–1,479,623)48 (46–55)17.9 (7.3–8.8)
FrontierGPT-6 Sol5/5$0.291 ($0.258–$0.358)8,544 (7,967–9,605)564,091 (432,181–818,653)36 (32–51)13.1 (2.5–3.3)
FrontierGPT-6 Luna5/5$0.027 ($0.024–$0.066)14,272 (13,818–45,643)1,057,982 (848,865–1,979,669)50 (43–113)1–34.2 (4.0–15.7)
FrontierGPT-5.6 Sol5/5$0.755 ($0.667–$0.908)12,032 (10,223–12,787)584,537 (505,256–775,728)31 (27–34)14.1 (3.4–5.8)
Chinese open-weightKimi K35/5$1.422 ($1.154–$1.640)39,505 (32,640–47,056)1,658,186 (1,276,997–1,856,453)61 (57–65)110.5 (8.2–12.0)
Chinese open-weightGLM 5.34/5$1.821 ($1.402–$2.062)59,582 (48,793–77,914)3,766,802 (2,876,201–4,364,926)80 (73–89)110.1 (8.2–15.0)

Astra historical result​

The five gpt6astra records remain available in the expandable model row and the original dataset. They all have status: done and iterations: 1. Their cost median is $3.4954, and their elapsed-time median is 7.883 minutes. The price snapshot, run IDs, token counts and other models are unchanged.

Failure-inclusive cost​

Table 3. All-attempt cost divided by successful completions

This is the sum of all five recorded attempt costs divided by that model's completed-attempt count, including failed-attempt cost. It is a ratio, not the completed-run median in Table 1. These values use rounded per-run costs from the historical dataset; the discarded first attempt and preflight are outside this table. With zero completions this ratio is undefined, not zero.

ModelAttemptsCompletedAll-attempt cost (USD)Cost per completion (USD)
Claude Opus 5.555$4.7279$0.9456
Claude Sonnet 5.555$1.5158$0.3032
Claude Haiku 5.555$0.3237$0.0647
Claude Fable 5.155$12.8723$2.5745
Claude Opus 555$11.4937$2.2987
Claude Sonnet 555$6.3291$1.2658
Claude Opus 4.855$10.6600$2.1320
GPT-6.1 Sol55$2.5741$0.5148
GPT-6 Astra55$16.8230$3.3646
GPT-6 Sol55$1.5152$0.3030
GPT-6 Luna55$0.1714$0.0343
GPT-5.6 Sol55$3.8570$0.7714
Kimi K355$7.0211$1.4042
GLM 5.354$8.5371$2.1343

Token mix and cost mix​

94% of all tokens in completed runs were cache reads

InputOutputCache readCache write
Frontier
Claude Opus 5.5797K tokens total
Claude Opus 5.5 Token mixcache read 91%
Claude Opus 5.5 Cost mix (estimate)Output 50%
Claude Sonnet 5.5445K tokens total
Claude Sonnet 5.5 Token mixcache read 88%
Claude Sonnet 5.5 Cost mix (estimate)Output 51%
Claude Haiku 5.52.16M tokens total
Claude Haiku 5.5 Token mixcache read 93%
Claude Haiku 5.5 Cost mix (estimate)Output 45%
Claude Fable 5.11.18M tokens total
Claude Fable 5.1 Token mixcache read 93%
Claude Fable 5.1 Cost mix (estimate)Output 56%
Claude Opus 51.56M tokens total
Claude Opus 5 Token mixcache read 94%
Claude Opus 5 Cost mix (estimate)Cache read 40%
Claude Sonnet 53.06M tokens total
Claude Sonnet 5 Token mixcache read 97%
Claude Sonnet 5 Cost mix (estimate)Cache read 54%
Claude Opus 4.81.87M tokens total
Claude Opus 4.8 Token mixcache read 95%
Claude Opus 4.8 Cost mix (estimate)Cache read 48%
GPT-6.1 Sol1.16M tokens total
GPT-6.1 Sol Token mixcache read 92%
GPT-6.1 Sol Cost mix (estimate)Output 44%
GPT-6 Astra1.33M tokens total
GPT-6 Astra Token mixcache read 93%
GPT-6 Astra Cost mix (estimate)Cache read 40%
GPT-6 Sol564K tokens total
GPT-6 Sol Token mixcache read 93%
GPT-6 Sol Cost mix (estimate)Cache read 39%
GPT-6 Luna1.06M tokens total
GPT-6 Luna Token mixcache read 93%
GPT-6 Luna Cost mix (estimate)Cache read 40%
GPT-5.6 Sol585K tokens total
GPT-5.6 Sol Token mixcache read 90%
GPT-5.6 Sol Cost mix (estimate)Cache write 35%
Chinese open-weight
Kimi K31.66M tokens total
Kimi K3 Token mixcache read 94%
Kimi K3 Cost mix (estimate)Output 46%
GLM 5.33.77M tokens total
GLM 5.3 Token mixcache read 96%
GLM 5.3 Cost mix (estimate)Cache read 69%
Show data
ModelInputOutputCache readCache writeTotalCache-read token shareCache-read cost share
Frontier
Claude Opus 5.57420,667722,47453,343796,55891%18%
Claude Sonnet 5.55414,161392,24038,933445,38888%14%
Claude Haiku 5.510452,7132,008,10793,1622,156,80893%34%
Claude Fable 5.19226,6931,096,62061,4371,183,73993%12%
Claude Opus 511428,5031,467,82159,2831,555,72194%40%
Claude Sonnet 517032,1422,960,55170,7043,059,19897%55%
Claude Opus 4.812023,8041,787,19258,4401,873,27595%49%
GPT-6.1 Sol9220,6211,074,52559,8431,164,46892%22%
GPT-6 Astra9622,2211,236,90158,0481,325,51793%39%
GPT-6 Sol728,544525,90130,494564,09193%40%
GPT-6 Luna10014,272982,78460,3911,057,98293%40%
GPT-5.6 Sol6212,032528,73349,072584,53790%31%
Chinese open-weight
Kimi K342739,5051,556,40960,9691,658,18694%36%
GLM 5.316059,5823,612,80687,2813,766,80296%68%
Token mix and cost mix
A cache read is a prompt prefix re-read from the cache at a lower price than normal input.
Source: Tokens reported by Bedrock (median of completed runs) × prices as of 2026-10-12
  • Output tokens were at most 3% of all tokens for every model, but they have the highest price, so they were the largest cost component for several models. Cache reads are cheap per token but numerous; for GLM 5.3 about 68% of the run cost came from cache reads [calculated].

Builder and verifier split​

BuilderVerifierCost per run (USD)
Frontier
Claude Opus 5.5builder 23 / verifier 11
Claude Opus 5.5: $0.907, Verifier $0.135 (15%)$0.907verifier 15%
Claude Sonnet 5.5builder 17 / verifier 81 self-terminated session
Claude Sonnet 5.5: $0.306, Verifier $0.037 (12%)$0.306verifier 12%
Claude Haiku 5.5builder 41 / verifier 10
Claude Haiku 5.5: $0.065, Verifier $0.005 (8%)$0.065verifier 8%
Claude Fable 5.1builder 33 / verifier 13
Claude Fable 5.1: $2.566, Verifier $0.375 (15%)$2.566verifier 15%
Claude Opus 5builder 44 / verifier 14
Claude Opus 5: $1.999, Verifier $0.203 (10%)$1.999verifier 10%
Claude Sonnet 5builder 71 / verifier 10
Claude Sonnet 5: $1.179, Verifier $0.061 (5%)$1.179verifier 5%
Claude Opus 4.8builder 52 / verifier 91 self-terminated session
Claude Opus 4.8: $2.018, Verifier $0.133 (7%)$2.018verifier 7%
GPT-6.1 Solbuilder 38 / verifier 8
GPT-6.1 Sol: $0.527, Verifier $0.055 (10%)$0.527verifier 10%
GPT-6 Astrabuilder 41 / verifier 9
GPT-6 Astra: $3.495, Verifier $0.278 (8%)$3.495verifier 8%
GPT-6 Solbuilder 28 / verifier 7
GPT-6 Sol: $0.291, Verifier $0.047 (16%)$0.291verifier 16%
GPT-6 Lunabuilder 44 / verifier 10
GPT-6 Luna: $0.027, Verifier $0.007 (25%)$0.027verifier 25%
GPT-5.6 Solbuilder 22 / verifier 8
GPT-5.6 Sol: $0.755, Verifier $0.181 (24%)$0.755verifier 24%
Chinese open-weight
Kimi K3builder 47 / verifier 16
Kimi K3: $1.422, Verifier $0.122 (9%)$1.422verifier 9%
GLM 5.3builder 65 / verifier 161 self-terminated session
GLM 5.3: $1.821, Verifier $0.082 (4%)$1.821verifier 4%

Self-terminated session: an agent killed its own process (exit 143) because pi receives the prompt as a command-line argument.

Verifier verdicts (iterations that passed the official grader)
PASS: 62FAIL because of the PORT env var: 5No verdict / self-terminated: 2

Iterations where the verifier said PASS but grading failed: 0

PORT FAIL models: GPT-5.6 Sol (2), GPT-6 Luna (1), Claude Sonnet 5.5 (2)

No control group without a verifier, so its effect cannot be determined

Show data
ModelBuilder requestsVerifier requestsBuilder costVerifier costVerifier shareSelf-terminated sessions
Frontier
Claude Opus 5.52311$0.772$0.13515%0
Claude Sonnet 5.5178$0.269$0.03712%1
Claude Haiku 5.54110$0.061$0.0058%0
Claude Fable 5.13313$2.192$0.37515%0
Claude Opus 54414$1.773$0.20310%0
Claude Sonnet 57110$1.101$0.0615%0
Claude Opus 4.8529$1.887$0.1337%1
GPT-6.1 Sol388$0.442$0.05510%0
GPT-6 Astra419$3.196$0.2788%0
GPT-6 Sol287$0.259$0.04716%0
GPT-6 Luna4410$0.022$0.00725%0
GPT-5.6 Sol228$0.552$0.18124%0
Chinese open-weight
Kimi K34716$1.300$0.1229%0
GLM 5.36516$1.729$0.0824%1
Builder and verifier split
Each whole bar is the model’s median cost per run; the orange part is the verifier’s median cost within it. All rows share one USD axis, so bar length shows cost. The panel below shows the verifier verdicts in iterations that passed the official grader.
Source: Tokens reported by Bedrock × prices (median of completed runs); verifier verdicts from REVIEW.md
  • The verifier accounted for about 4% (GLM 5.3) to 25% (GPT-6 Luna) of the run cost [calculated]. Because most runs finished in one Ralph iteration, the builder actually read the verifier's REVIEW.md in only the 4 runs with two or more iterations [fact].

Group comparison​

Chinese open-weight ÷ frontier
  • 2.0×
    Cost
    Frontier $0.831Chinese open-weight $1.621
  • 2.3×
    Output tokens
    Frontier 21,444Chinese open-weight 49,543
  • 2.3×
    Total tokens
    Frontier 1,174,104Chinese open-weight 2,712,494
  • 1.5×
    LLM requests
    Frontier 47Chinese open-weight 71
  • 1.4×
    Run time
    Frontier 7.3 minChinese open-weight 10.3 min
Median cost per run by model (log scale)
Log-scale dot plot of median cost per run for 14 models, with the frontier range band and the two Chinese open-weight models highlighted.$0.01$0.1$1$101234567891011121314
  1. 1GPT-6 Luna$0.027
  2. 2Claude Haiku 5.5$0.065
  3. 3GPT-6 Sol$0.291
  4. 4Claude Sonnet 5.5$0.306
  5. 5GPT-6.1 Sol$0.527
  6. 6GPT-5.6 Sol$0.755
  7. 7Claude Opus 5.5$0.907
  8. 8Claude Sonnet 5$1.179
  9. 9Kimi K3$1.422
  10. 10GLM 5.3$1.821
  11. 11Claude Opus 5$1.999
  12. 12Claude Opus 4.8$2.018
  13. 13Claude Fable 5.1$2.566
  14. 14GPT-6 Astra$3.495
FrontierChinese open-weightFrontier range (min–max)

The spread inside the frontier group (about 130×) is far larger than the gap between groups (about 2.0×), so cost has to be judged per model.

The Chinese open-weight group has only two models, so its group value is less reliable. Costs are Amazon Bedrock prices only; self-hosting is not covered.

Show data
MetricFrontier MedianFrontier Min–maxChinese open-weight MedianChinese open-weight Min–maxRatio (Chinese ÷ frontier)
Cost$0.831$0.027–$3.495$1.621$1.422–$1.8212.0×
Output tokens21,4448,544–52,71349,54339,505–59,5822.3×
Total tokens1,174,104445,388–3,059,1982,712,4941,658,186–3,766,8022.3×
LLM requests4725–857161–801.5×
Run time7.3 min3.1 min–9.7 min10.3 min10.1 min–10.5 min1.4×
Group comparison: Chinese open-weight vs frontier
The group value is the median of the model medians. Each tile’s big number is the Chinese open-weight group value divided by the frontier group value.
Source: This report’s measurements, median over completed runs

Model overview​

Search by vendor or model name and pick up to three models to compare side by side. In each row, the best value among the selected models is marked.

3 of 3 selected

3 models are selected. Deselect one to add another.

AnthropicFrontier
OpenAIFrontier
Moonshot AIChinese open-weight
Z.AIChinese open-weight
Field
Claude Opus 5.5
Anthropic
GPT-6.1 Sol
OpenAI
Kimi K3
Moonshot AI
Vendor · groupAnthropic · FrontierOpenAI · FrontierMoonshot AI · Chinese open-weight
Bedrock model IDus.anthropic.claude-opus-5-5us.openai.gpt-6.1-solus.moonshotai.kimi-k3
Cost$0.907 ($0.861–$1.054)$0.527 ($0.457–$0.559)best$1.422 ($1.154–$1.640)
Cost rank7 of 14 (1 = cheapest)5 of 14 (1 = cheapest)best9 of 14 (1 = cheapest)
Run minutes6.1 min (5.7 min–8.0 min)best8.1 min (6.5 min–8.8 min)10.5 min (8.3 min–12.0 min)
Output tokens20,667 (20,402–23,773)20,621 (18,490–22,847)best39,505 (32,640–47,056)
Total tokens796,558 (631,889–1,088,484)best1,164,468 (1,096,209–1,385,667)1,658,186 (1,276,997–1,856,453)
Cache-read tokens722,474 (558,985–1,008,530)1,074,525 (1,011,677–1,302,871)1,556,409 (1,190,363–1,739,007)
LLM requests35 (Builder 23 / Verifier 11)best46 (Builder 38 / Verifier 8)61 (Builder 47 / Verifier 16)
Completed5/55/55/5
Iterations1, 1, 1, 1, 11, 1, 1, 1, 11, 1, 1, 1, 1
Verifier cost share15%10%9%
NoteAll five runs completed in the first iteration, and the verifier said PASS every time.All five runs completed in the first iteration, and the verifier said PASS every time.All five runs completed in the first iteration, and the verifier said PASS every time. Run 3 hit 2 transient Bedrock stream errors; pi retried automatically. Its model card says explicit prompt caching is not offered through Converse, yet Bedrock reported cache-read and cache-write tokens (mechanism not verified).

"best" marks the best value among the selected models (lower is better for cost, time, tokens and requests; higher for completed runs). Values are medians over completed runs, with the minimum–maximum in parentheses. Iterations are listed in run order; × marks a run that did not complete.

Interpretation​

  • Price comes first. GPT-6 Luna and Claude Haiku 5.5 cost $0.11/$0.55 for input/output. They used 1,057,982 and 2,156,808 total tokens, yet cost only $0.027 and $0.065 per run.
  • Within one price tier, usage decides. Claude Sonnet 5 and Sonnet 5.5 share input/output prices ($2.2/$11), but Sonnet 5 sent 85 LLM requests against 25 and cost about 3.9× as much.
  • Price and usage compound. Claude Opus 4.8 has higher prices than Opus 5.5 (input/output $5.5/$27.5 vs $4.4/$22) and sent more requests (60 vs 35), so it cost about 2.2× as much.
  • Run-to-run spread was mostly small. For 12 models the most expensive of the five runs stayed within 1.35× the median. The exceptions are Claude Opus 5 run 3 (about 1.9×) and GPT-6 Luna run 3 (about 2.5×).
  • The comparison uses Bedrock prices. The cost of self-hosting the open-weight models is not covered.
  • Anomalies: 1 incomplete run, 1 run completed after a stall, 3 self-terminated sessions and 2 transient Bedrock stream errors. Details are folded below.
Anomaly details
  • Incomplete, GLM 5.3 run 4: In iteration 1 the builder started a node test server in the foreground and hung; the 300-second stall watchdog ended the session. Iteration 2 hit the 20-minute run cap before the builder created .ralph-done. Grading right after the cap passed all 13 files, but under the completion rule (.ralph-done plus 13 passing files) the run counts as incomplete.
  • Stall, GPT-6 Luna run 3: In iteration 1 the builder ran npm run dev in the foreground and the session hung until the 300-second stall watchdog ended it. After iteration 2 the grader passed 5 of 13 files; the run completed in iteration 3.
  • Self-terminated sessions (Claude Sonnet 5.5 builder, Claude Opus 4.8 verifier and GLM 5.3 verifier): the agent killed its own process and the session ended with exit 143. Only Claude Sonnet 5.5 run 5 needed one more iteration because of it.
  • Bedrock stream errors (Kimi K3 run 3, 2×): "Bedrock stream ended without a stop reason"; pi retried automatically and completion was not affected.

Prices Applied [source]​

Price (USD per million tokens)
  • GPT-6 Astra
    us.openai.gpt-6-astra
    Input$11Output$55Cache read$1.1Cache write$13.75
  • Claude Fable 5.1
    us.anthropic.claude-fable-5-1
    Input$11Output$55Cache read$0.275Cache write$13.75
  • Claude Opus 5
    us.anthropic.claude-opus-5
    Input$5.5Output$27.5Cache read$0.55Cache write$6.875
  • Claude Opus 4.8
    us.anthropic.claude-opus-4-8
    Input$5.5Output$27.5Cache read$0.55Cache write$6.875
  • GPT-5.6 Sol
    us.openai.gpt-5.6-sol
    Input$4.4Output$22Cache read$0.44Cache write$5.5
  • Claude Opus 5.5
    us.anthropic.claude-opus-5-5
    Input$4.4Output$22Cache read$0.22Cache write$5.5
  • Kimi K3
    us.moonshotai.kimi-k3
    Input$3.3Output$16.5Cache read$0.33Cache write$4.125
  • Claude Sonnet 5
    us.anthropic.claude-sonnet-5
    Input$2.2Output$11Cache read$0.22Cache write$2.75
  • GPT-6 Sol
    us.openai.gpt-6-sol
    Input$2.2Output$11Cache read$0.22Cache write$2.75
  • Claude Sonnet 5.5
    us.anthropic.claude-sonnet-5-5
    Input$2.2Output$11Cache read$0.11Cache write$2.75
  • GPT-6.1 Sol
    us.openai.gpt-6.1-sol
    Input$2.2Output$11Cache read$0.11Cache write$2.75
  • GLM 5.3
    us.zai.glm-5.3
    Input$1.848Output$5.808Cache read$0.3432Cache write$2.31
  • Claude Haiku 5.5
    us.anthropic.claude-haiku-5-5
    Input$0.11Output$0.55Cache read$0.011Cache write$0.1375
  • GPT-6 Luna
    us.openai.gpt-6-luna
    Input$0.11Output$0.55Cache read$0.011Cache write$0.1375
Show data
ModelInputOutputCache readCache writeModel ID
GPT-6 Astra$11$55$1.1$13.75us.openai.gpt-6-astra
Claude Fable 5.1$11$55$0.275$13.75us.anthropic.claude-fable-5-1
Claude Opus 5$5.5$27.5$0.55$6.875us.anthropic.claude-opus-5
Claude Opus 4.8$5.5$27.5$0.55$6.875us.anthropic.claude-opus-4-8
GPT-5.6 Sol$4.4$22$0.44$5.5us.openai.gpt-5.6-sol
Claude Opus 5.5$4.4$22$0.22$5.5us.anthropic.claude-opus-5-5
Kimi K3$3.3$16.5$0.33$4.125us.moonshotai.kimi-k3
Claude Sonnet 5$2.2$11$0.22$2.75us.anthropic.claude-sonnet-5
GPT-6 Sol$2.2$11$0.22$2.75us.openai.gpt-6-sol
Claude Sonnet 5.5$2.2$11$0.11$2.75us.anthropic.claude-sonnet-5-5
GPT-6.1 Sol$2.2$11$0.11$2.75us.openai.gpt-6.1-sol
GLM 5.3$1.848$5.808$0.3432$2.31us.zai.glm-5.3
Claude Haiku 5.5$0.11$0.55$0.011$0.1375us.anthropic.claude-haiku-5-5
GPT-6 Luna$0.11$0.55$0.011$0.1375us.openai.gpt-6-luna
Prices applied
US cross-Region inference prices from the us-east-1 endpoint, checked on 2026-10-12. The bar shows the output price on a log scale.
Source: Amazon Bedrock pricing page and model cards, checked 2026-10-12 — Amazon Bedrock pricing
  • Anthropic: the "Geo and In-region Cross-region Inference" table on the Amazon Bedrock pricing page, read for US East (N. Virginia) from the price data that page uses (published 2026-10-12T08:40:08Z).
  • OpenAI: the US cross-Region inference row of the standard price table (input up to 272K tokens) in the Bedrock model cards. The largest context of a single request was 94,172 tokens, so the long-context price does not apply [fact].
  • Kimi K3, GLM 5.3: the Bedrock model card and the pricing page respectively. Kimi K3's cache writes use the 30-minute cache price, the only one published.
  • For Anthropic and OpenAI models the US cross-Region price is 10% above the global cross-Region price. The public Price List API's us-east-1 data (published 2026-10-10) had no entries for these models.

Spend [calculated]​

Table 2. Cost of counted and discarded runs (reported tokens × price)

ItemCost (reported tokens × price)Notes
Runs used in the results$88.42All 70 runs in isolated containers, complete or not; includes $12.87 for the five Claude Fable 5.1 runs
Discarded first attempt$17.60Agents ran directly on the host and could interfere with each other, so the results were dropped
Total$106.02Excludes the small pre-flight probe calls (one or two per model)

These amounts are reported token counts multiplied by prices. The actual bill must be checked in AWS Cost Explorer; models billed through AWS Marketplace appear under each provider on the invoice.

Limitations​

  1. One task, five runs per model. Rankings are observations for this task and setup. Even within one model the most expensive run cost up to about 2.7× the cheapest (GPT-6 Luna).
  2. The setup is a two-agent builder/verifier run. Every model ran as builder plus verifier on pi and Bedrock Converse, so tokens and cost include the verifier's share.
  3. The first attempt was discarded. Running without containers on one host, agents issued host-wide commands such as pkill -f and fuser -k that could stop other runs' servers, so everything was rerun in isolated containers.
  4. The verifier checked the server port more strictly than the completion rule. Its prompt requires the PORT environment variable, which the completion rule does not; completion is unaffected.
  5. Some sessions self-terminated (exit 143). pi receives the prompt as a command-line argument, so an agent that runs pkill -f with words from its prompt also kills itself. The prompts were not changed mid-experiment to keep runs comparable.
  6. The verifier's effect cannot be determined (not verified). There is no control group without a verifier.
  7. Group 2 has 2 models. Its group value is weak evidence.
  8. Kimi K3's caching differed from its model card. Bedrock reported cache tokens for Converse calls; they were priced as reported, and the mechanism was not verified (not verified).
  9. Run timing differs. Claude Fable 5.1 ran alone about 4 h 18 min after the other models; the effect on run time was not measured [estimate].
  10. Costs are calculated at 2026-10-12 prices. Different prices give different results.

Reproduction​

  • Tool versions: pi coding agent 0.87.1 (one fix for Haiku 5.5), hurl 8.0.1, Node 22.23.3, Docker images based on Amazon Linux 2023
  • Settings: thinking medium, English prompts, up to 30 iterations, 1,200-second run cap, 300-second stall watchdog, 5 runs per model
  • Prompts: the builder used PROMPT-en.md unchanged; the verifier prompt was written for this report.
  • Per-run values: expand a model row in the "Results by model" chart to see each of the five runs. The same values are in src/data/ralph-loop-bedrock.json (runs) in this repository.
  • Harness scripts and raw data (session records, per-run metrics, aggregate files) are not included in this repository. The task, the builder prompt and the grading Hurl tests are in the public repository.

References​