Foundation Model Token Cost Comparison: 14 Amazon Bedrock Models Measured with a Coding-Agent Ralph Loop
This benchmark was built with reference to the Ralph loop completion by model report by Jung Do Hyun (정도현, Roboco).
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.
| Model | Recorded / proposed ID | Local measurement | Public evaluation | Current Bedrock price |
|---|---|---|---|---|
| Claude Opus 5.5 | us.anthropic.claude-opus-5-5 | 5/5 completed | Not reverified | Not reverified |
| Claude Sonnet 5.5 | us.anthropic.claude-sonnet-5-5 | 5/5 completed | Provider report located; conditions below | Not reverified |
| Claude Haiku 5.5 | us.anthropic.claude-haiku-5-5 | 5/5 completed | Provider report located; conditions below | Not reverified |
| Claude Fable 5.1 | us.anthropic.claude-fable-5-1 | 5/5 completed | Not reverified | Not reverified |
| Claude Opus 5 | us.anthropic.claude-opus-5 | 5/5 completed | Not reverified | Not reverified |
| Claude Sonnet 5 | us.anthropic.claude-sonnet-5 | 5/5 completed | Not reverified | Not reverified |
| Claude Opus 4.8 | us.anthropic.claude-opus-4-8 | 5/5 completed | Not reverified | Not reverified |
| GPT-6.1 Sol | us.openai.gpt-6.1-sol | 5/5 completed | Model documentation verified; matched task evaluation pending | Verified Standard US CRIS; below |
| GPT-6 Astra | us.openai.gpt-6-astra | 5/5 completed | System-card source located; scoped review below | Verified Standard US CRIS; below |
| GPT-6 Sol | us.openai.gpt-6-sol | 5/5 completed | Not reverified | Not reverified |
| GPT-6 Luna | us.openai.gpt-6-luna | 5/5 completed | Not reverified | Not reverified |
| GPT-5.6 Sol | us.openai.gpt-5.6-sol | 5/5 completed | Not reverified | Not reverified |
| Kimi K3 | us.moonshotai.kimi-k3 | 5/5 completed | Not reverified | Not reverified |
| GLM 5.3 | us.zai.glm-5.3 | 4/5 completed | Not reverified | Not reverified |
| GPT-6.1 Terra | us.openai.gpt-6.1-terra (follow-up target) | No verified batch here | System-card addendum located; scoped review below | Verified 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.
| Model | Primary source | Verified scope / comparison limit |
|---|---|---|
| GPT-6 Astra | OpenAI system card | Published 2026-09-03; scoped safety/alignment evaluation review. These are not matched RealWorld runs. |
| GPT-6.1 Terra | OpenAI system-card addendum | Published 2026-10-26; research/API evaluations may use different prompts, tools and efforts. Earlier-model comparison values may reflect later revisions. |
| Claude Sonnet 5.5 | Anthropic provider report | Published 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.5 | Anthropic provider report | Published 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.
| Model | US inference profile | Input | Cache write | Cache read | Output | Primary source |
|---|---|---|---|---|---|---|
| GPT-6 Astra | us.openai.gpt-6-astra | $11.00 | $13.75 | $1.10 | $55.00 | Bedrock model card |
| GPT-6.1 Terra | us.openai.gpt-6.1-terra | $1.10 | $1.375 | $0.055 | $5.50 | Bedrock model card |
| GPT-6.1 Sol | us.openai.gpt-6.1-sol | $2.20 | $2.75 | $0.11 | $11.00 | Bedrock 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
If grading fails, the harness deletes .ralph-done and runs another iteration
- BuilderImplements from PROMPT-en.md; from iteration 2 it reads REVIEW.md first
- VerifierRuns the Hurl tests itself and writes REVIEW.md; edits nothing else
- GraderDecides 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
- 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
- One fix in the pi bundle: pi 0.87.1 sends a thinking format that Bedrock rejects for Claude Haiku 5.5, so
haiku-5was 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
- 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
- Kimi K3
- GLM 5.3
- 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
| Model | Group | Status | Note |
|---|---|---|---|
| Claude Opus 5.5 | Frontier | Measured | — |
| Claude Sonnet 5.5 | Frontier | Measured | — |
| Claude Haiku 5.5 | Frontier | Measured | — |
| Claude Fable 5.1 | Frontier | Measured | Requires data retention aws_review |
| Claude Opus 5 | Frontier | Measured | — |
| Claude Sonnet 5 | Frontier | Measured | — |
| Claude Opus 4.8 | Frontier | Measured | — |
| GPT-6.1 Sol | Frontier | Measured | — |
| GPT-6 Astra | Frontier | Measured | — |
| GPT-6 Sol | Frontier | Measured | — |
| GPT-6 Luna | Frontier | Measured | — |
| GPT-5.6 Sol | Frontier | Measured | — |
| Kimi K3 | Chinese open-weight | Measured | — |
| GLM 5.3 | Chinese open-weight | Measured | — |
| Claude Fable 5 | Anthropic | Not measured | — |
| Claude Opus 4.7 | Anthropic | Not measured | — |
| GPT-5.6 Terra | OpenAI | Not measured | — |
| gpt-oss-120b | OpenAI | Not measured | — |
| Grok 4.7 | xAI | Not measured | — |
| DeepSeek V3.2 | DeepSeek | Not measured | — |
| Qwen3 Coder Next | Qwen | Not measured | — |
| MiniMax M2.5 | MiniMax | Not measured | — |
| Kimi K2.5 | Moonshot AI | Not measured | — |
| GLM 5 | Z.AI | Not measured | — |
-
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_reviewor stronger. It ran after the account owner changed the mode frominherittoaws_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 inheritagain. - 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.
- CheapestGPT-6 Luna$0.027
- FastestGPT-6 Sol3.1 min
- Fewest output tokensGPT-6 Sol8.5k
- 1GPT-6 Luna$0.027
- 2Claude Haiku 5.5$0.065
- 3GPT-6 Sol$0.291
- 4Claude Sonnet 5.5$0.306
- 5GPT-6.1 Sol$0.527
- 6GPT-5.6 Sol$0.755
- 7Claude Opus 5.5$0.907
- 8Claude Sonnet 5$1.179
- 9Kimi K3$1.422
- 10GLM 5.3$1.821
- 11Claude Opus 5$1.999
- 12Claude Opus 4.8$2.018
- 13Claude Fable 5.1$2.566
- 14GPT-6 Astra$3.495
- 1GPT-6 Sol3.1 min
- 2Claude Sonnet 5.53.8 min
- 3GPT-5.6 Sol4.1 min
- 4GPT-6 Luna4.2 min
- 5Claude Opus 5.56.1 min
- 6Claude Opus 4.87.2 min
- 7Claude Haiku 5.57.4 min
- 8GPT-6 Astra7.9 min
- 9GPT-6.1 Sol8.1 min
- 10Claude Opus 58.4 min
- 11Claude Fable 5.18.9 min
- 12Claude Sonnet 59.7 min
- 13GLM 5.310.1 min
- 14Kimi K310.5 min
- 1GPT-6 Sol8.5k
- 2GPT-5.6 Sol12.0k
- 3Claude Sonnet 5.514.2k
- 4GPT-6 Luna14.3k
- 5GPT-6.1 Sol20.6k
- 6Claude Opus 5.520.7k
- 7GPT-6 Astra22.2k
- 8Claude Opus 4.823.8k
- 9Claude Fable 5.126.7k
- 10Claude Opus 528.5k
- 11Claude Sonnet 532.1k
- 12Kimi K339.5k
- 13Claude Haiku 5.552.7k
- 14GLM 5.359.6k
Show data
| Model | Group | Cost per run | Run time | Output tokens |
|---|---|---|---|---|
| Claude Opus 5.5 | Frontier | $0.907 | 6.1 min | 20.7k |
| Claude Sonnet 5.5 | Frontier | $0.306 | 3.8 min | 14.2k |
| Claude Haiku 5.5 | Frontier | $0.065 | 7.4 min | 52.7k |
| Claude Fable 5.1 | Frontier | $2.566 | 8.9 min | 26.7k |
| Claude Opus 5 | Frontier | $1.999 | 8.4 min | 28.5k |
| Claude Sonnet 5 | Frontier | $1.179 | 9.7 min | 32.1k |
| Claude Opus 4.8 | Frontier | $2.018 | 7.2 min | 23.8k |
| GPT-6.1 Sol | Frontier | $0.527 | 8.1 min | 20.6k |
| GPT-6 Astra | Frontier | $3.495 | 7.9 min | 22.2k |
| GPT-6 Sol | Frontier | $0.291 | 3.1 min | 8.5k |
| GPT-6 Luna | Frontier | $0.027 | 4.2 min | 14.3k |
| GPT-5.6 Sol | Frontier | $0.755 | 4.1 min | 12.0k |
| Kimi K3 | Chinese open-weight | $1.422 | 10.5 min | 39.5k |
| GLM 5.3 | Chinese open-weight | $1.821 | 10.1 min | 59.6k |
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.
Show data
| Model | Vendor | Group | Cost/run (median) | Run minutes (median) | Pareto-optimal |
|---|---|---|---|---|---|
| Claude Opus 5.5 | Anthropic | Frontier | $0.907 | 6.1 | no |
| Claude Sonnet 5.5 | Anthropic | Frontier | $0.306 | 3.8 | no |
| Claude Haiku 5.5 | Anthropic | Frontier | $0.065 | 7.4 | no |
| Claude Fable 5.1 | Anthropic | Frontier | $2.566 | 8.9 | no |
| Claude Opus 5 | Anthropic | Frontier | $1.999 | 8.4 | no |
| Claude Sonnet 5 | Anthropic | Frontier | $1.179 | 9.7 | no |
| Claude Opus 4.8 | Anthropic | Frontier | $2.018 | 7.2 | no |
| GPT-6.1 Sol | OpenAI | Frontier | $0.527 | 8.1 | no |
| GPT-6 Astra | OpenAI | Frontier | $3.495 | 7.9 | no |
| GPT-6 Sol | OpenAI | Frontier | $0.291 | 3.1 | yes |
| GPT-6 Luna | OpenAI | Frontier | $0.027 | 4.2 | yes |
| GPT-5.6 Sol | OpenAI | Frontier | $0.755 | 4.1 | no |
| Kimi K3 | Moonshot AI | Chinese open-weight | $1.422 | 10.5 | no |
| GLM 5.3 | Z.AI | Chinese open-weight | $1.821 | 10.1 | no |
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].
- Completed run
- Median
- Timed out (no completed value)
Claude Opus 5.55/5 completedShow the five runs
| Run | Status | Iterations | Minutes | LLM requests | Output tokens | Total tokens | Cost | Verifier | Commits | Self-terminated |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | done | 1 | 7.1 | 41 | 22,812 | 1,079,865 | $1.034 | PASS | 2 | 0 |
| 2 | done | 1 | 5.7 | 30 | 20,467 | 689,505 | $0.872 | PASS | 2 | 0 |
| 3 | done | 1 | 6.1 | 30 | 20,402 | 631,889 | $0.861 | PASS | 2 | 0 |
| 4 | done | 1 | 8.0 | 45 | 23,773 | 1,088,484 | $1.054 | PASS | 3 | 0 |
| 5 | done | 1 | 6.1 | 35 | 20,667 | 796,558 | $0.907 | PASS | 2 | 0 |
Claude Sonnet 5.55/5 completedShow the five runs
| Run | Status | Iterations | Minutes | LLM requests | Output tokens | Total tokens | Cost | Verifier | Commits | Self-terminated |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | done | 1 | 3.7 | 25 | 13,929 | 489,440 | $0.319 | PASS | 2 | 0 |
| 2 | done | 1 | 3.8 | 24 | 14,407 | 418,465 | $0.305 | FAIL | 1 | 0 |
| 3 | done | 1 | 4.1 | 27 | 14,309 | 603,161 | $0.328 | FAIL | 2 | 0 |
| 4 | done | 1 | 3.4 | 25 | 14,161 | 445,388 | $0.306 | PASS | 3 | 0 |
| 5 | done | 2 | 3.9 | 23 | 12,677 | 226,794 | $0.257 | PASS / PASS | 2 | 1 |
Claude Haiku 5.55/5 completedShow the five runs
| Run | Status | Iterations | Minutes | LLM requests | Output tokens | Total tokens | Cost | Verifier | Commits | Self-terminated |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | done | 1 | 6.2 | 39 | 42,838 | 1,155,347 | $0.046 | PASS | 4 | 0 |
| 2 | done | 1 | 8.3 | 62 | 52,713 | 2,727,358 | $0.070 | PASS | 4 | 0 |
| 3 | done | 1 | 7.4 | 50 | 54,257 | 2,156,808 | $0.065 | PASS | 4 | 0 |
| 4 | done | 2 | 9.9 | 77 | 67,557 | 2,711,858 | $0.084 | FAIL / PASS | 7 | 0 |
| 5 | done | 1 | 7.0 | 49 | 47,874 | 2,032,399 | $0.059 | PASS | 6 | 0 |
Claude Fable 5.15/5 completedShow the five runs
| Run | Status | Iterations | Minutes | LLM requests | Output tokens | Total tokens | Cost | Verifier | Commits | Self-terminated |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | done | 1 | 8.9 | 44 | 29,187 | 1,238,647 | $2.796 | PASS | 2 | 0 |
| 2 | done | 1 | 10.9 | 58 | 28,567 | 1,564,029 | $2.837 | PASS | 2 | 0 |
| 3 | done | 1 | 6.9 | 36 | 22,047 | 787,229 | $2.118 | PASS | 7 | 0 |
| 4 | done | 1 | 9.3 | 46 | 25,586 | 1,183,739 | $2.555 | PASS | 2 | 0 |
| 5 | done | 1 | 8.4 | 44 | 26,693 | 1,062,192 | $2.566 | PASS | 6 | 0 |
Claude Opus 55/5 completedShow the five runs
| Run | Status | Iterations | Minutes | LLM requests | Output tokens | Total tokens | Cost | Verifier | Commits | Self-terminated |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | done | 1 | 6.8 | 50 | 24,165 | 1,138,625 | $1.635 | PASS | 2 | 0 |
| 2 | done | 1 | 7.3 | 56 | 26,436 | 1,452,008 | $1.876 | PASS | 2 | 0 |
| 3 | done | 1 | 14.0 | 91 | 40,478 | 3,851,983 | $3.726 | PASS | 3 | 0 |
| 4 | done | 1 | 10.3 | 69 | 32,053 | 1,769,367 | $2.258 | PASS | 2 | 0 |
| 5 | done | 1 | 8.4 | 57 | 28,503 | 1,555,721 | $1.999 | PASS | 2 | 0 |
Claude Sonnet 55/5 completedShow the five runs
| Run | Status | Iterations | Minutes | LLM requests | Output tokens | Total tokens | Cost | Verifier | Commits | Self-terminated |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | done | 1 | 11.3 | 102 | 36,492 | 3,758,302 | $1.412 | PASS | 1 | 0 |
| 2 | done | 1 | 8.3 | 80 | 32,142 | 2,787,977 | $1.128 | PASS | 2 | 0 |
| 3 | done | 1 | 9.7 | 85 | 31,074 | 3,059,198 | $1.179 | PASS | 2 | 0 |
| 4 | done | 1 | 8.1 | 77 | 31,127 | 2,909,277 | $1.155 | PASS | 2 | 0 |
| 5 | done | 1 | 11.4 | 93 | 34,760 | 4,019,069 | $1.455 | PASS | 2 | 0 |
Claude Opus 4.85/5 completedShow the five runs
| Run | Status | Iterations | Minutes | LLM requests | Output tokens | Total tokens | Cost | Verifier | Commits | Self-terminated |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | done | 1 | 6.6 | 60 | 23,680 | 1,749,809 | $1.971 | PASS | 2 | 0 |
| 2 | done | 1 | 6.6 | 56 | 22,316 | 1,675,909 | $1.859 | PASS | 2 | 0 |
| 3 | done | 1 | 9.6 | 75 | 29,333 | 2,735,633 | $2.678 | none | 2 | 1 |
| 4 | done | 1 | 7.6 | 62 | 27,140 | 1,873,275 | $2.134 | PASS | 2 | 0 |
| 5 | done | 1 | 7.2 | 60 | 23,804 | 1,877,268 | $2.018 | PASS | 2 | 0 |
GPT-6.1 Sol5/5 completedShow the five runs
| Run | Status | Iterations | Minutes | LLM requests | Output tokens | Total tokens | Cost | Verifier | Commits | Self-terminated |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | done | 1 | 8.8 | 53 | 22,847 | 1,385,667 | $0.559 | PASS | 6 | 0 |
| 2 | done | 1 | 6.7 | 46 | 18,490 | 1,112,514 | $0.457 | PASS | 5 | 0 |
| 3 | done | 1 | 8.1 | 45 | 20,621 | 1,164,468 | $0.536 | PASS | 7 | 0 |
| 4 | done | 1 | 8.4 | 44 | 22,189 | 1,096,209 | $0.527 | PASS | 4 | 0 |
| 5 | done | 1 | 6.5 | 49 | 19,083 | 1,251,798 | $0.495 | PASS | 5 | 0 |
GPT-6 Astra5/5 completedShow the five runs
| Run | Status | Iterations | Minutes | LLM requests | Output tokens | Total tokens | Cost | Verifier | Commits | Self-terminated |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | done | 1 | 7.5 | 46 | 22,221 | 1,325,517 | $3.495 | PASS | 4 | 0 |
| 2 | done | 1 | 7.3 | 48 | 21,151 | 1,208,409 | $3.153 | PASS | 4 | 0 |
| 3 | done | 1 | 7.9 | 48 | 21,299 | 1,139,606 | $3.102 | PASS | 6 | 0 |
| 4 | done | 1 | 8.8 | 50 | 23,685 | 1,340,715 | $3.511 | PASS | 5 | 0 |
| 5 | done | 1 | 8.0 | 55 | 22,250 | 1,479,623 | $3.562 | PASS | 5 | 0 |
GPT-6 Sol5/5 completedShow the five runs
| Run | Status | Iterations | Minutes | LLM requests | Output tokens | Total tokens | Cost | Verifier | Commits | Self-terminated |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | done | 1 | 3.2 | 32 | 8,428 | 456,816 | $0.281 | PASS | 2 | 0 |
| 2 | done | 1 | 2.9 | 36 | 9,605 | 592,640 | $0.326 | PASS | 3 | 0 |
| 3 | done | 1 | 2.5 | 33 | 7,967 | 432,181 | $0.258 | PASS | 2 | 0 |
| 4 | done | 1 | 3.3 | 51 | 9,441 | 818,653 | $0.358 | PASS | 2 | 0 |
| 5 | done | 1 | 3.1 | 41 | 8,544 | 564,091 | $0.291 | PASS | 2 | 0 |
GPT-6 Luna5/5 completedShow the five runs
| Run | Status | Iterations | Minutes | LLM requests | Output tokens | Total tokens | Cost | Verifier | Commits | Self-terminated |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | done | 1 | 5.8 | 59 | 16,847 | 1,227,597 | $0.029 | FAIL | 2 | 0 |
| 2 | done | 1 | 4.0 | 43 | 14,265 | 848,865 | $0.025 | PASS | 3 | 0 |
| 3 | done | 3 | 15.7 | 113 | 45,643 | 1,979,669 | $0.066 | FAIL / FAIL / PASS | 5 | 0 |
| 4 | done | 1 | 4.2 | 43 | 13,818 | 1,057,982 | $0.027 | PASS | 2 | 0 |
| 5 | done | 1 | 4.1 | 50 | 14,272 | 961,021 | $0.024 | PASS | 2 | 0 |
GPT-5.6 Sol5/5 completedShow the five runs
| Run | Status | Iterations | Minutes | LLM requests | Output tokens | Total tokens | Cost | Verifier | Commits | Self-terminated |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | done | 1 | 4.1 | 34 | 12,032 | 664,801 | $0.818 | PASS | 4 | 0 |
| 2 | done | 1 | 5.8 | 27 | 12,787 | 524,621 | $0.755 | FAIL | 2 | 0 |
| 3 | done | 1 | 3.4 | 32 | 10,223 | 584,537 | $0.708 | PASS | 2 | 0 |
| 4 | done | 1 | 5.8 | 31 | 12,480 | 775,728 | $0.908 | FAIL | 2 | 0 |
| 5 | done | 1 | 3.7 | 29 | 10,402 | 505,256 | $0.667 | PASS | 3 | 0 |
Kimi K35/5 completedShow the five runs
| Run | Status | Iterations | Minutes | LLM requests | Output tokens | Total tokens | Cost | Verifier | Commits | Self-terminated |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | done | 1 | 9.8 | 61 | 39,505 | 1,658,186 | $1.422 | PASS | 5 | 0 |
| 2 | done | 1 | 12.0 | 61 | 47,056 | 1,856,453 | $1.640 | PASS | 4 | 0 |
| 3 | done | 1 | 10.6 | 65 | 35,008 | 1,637,495 | $1.326 | PASS | 2 | 0 |
| 4 | done | 1 | 10.5 | 63 | 40,008 | 1,815,345 | $1.479 | PASS | 4 | 0 |
| 5 | done | 1 | 8.3 | 57 | 32,640 | 1,276,997 | $1.154 | PASS | 4 | 0 |
GLM 5.34/5 completedShow the five runs
| Run | Status | Iterations | Minutes | LLM requests | Output tokens | Total tokens | Cost | Verifier | Commits | Self-terminated |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | done | 1 | 10.3 | 74 | 48,793 | 2,876,201 | $1.402 | PASS | 4 | 0 |
| 2 | done | 1 | 9.9 | 89 | 68,386 | 4,364,926 | $2.062 | none | 4 | 1 |
| 3 | done | 1 | 8.2 | 86 | 50,777 | 3,389,784 | $1.595 | PASS | 5 | 0 |
| 4 | timeout | 2 | 20.1 | 85 | 52,892 | 2,491,280 | $1.433 | FAIL | 3 | 0 |
| 5 | done | 1 | 15.0 | 73 | 77,914 | 4,143,819 | $2.046 | PASS | 6 | 0 |
Table 1. Completion, cost, tokens, requests, and time by model (medians over completed runs)
| Group | Model | Completed | Cost per run (USD) | Output tokens | Total tokens | LLM requests | Ralph iterations | Run time (min) |
|---|---|---|---|---|---|---|---|---|
| Frontier | Claude Opus 5.5 | 5/5 | $0.907 ($0.861–$1.054) | 20,667 (20,402–23,773) | 796,558 (631,889–1,088,484) | 35 (30–45) | 1 | 6.1 (5.7–8.0) |
| Frontier | Claude Sonnet 5.5 | 5/5 | $0.306 ($0.257–$0.328) | 14,161 (12,677–14,407) | 445,388 (226,794–603,161) | 25 (23–27) | 1–2 | 3.8 (3.4–4.1) |
| Frontier | Claude Haiku 5.5 | 5/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–2 | 7.4 (6.2–9.9) |
| Frontier | Claude Fable 5.1 | 5/5 | $2.566 ($2.118–$2.837) | 26,693 (22,047–29,187) | 1,183,739 (787,229–1,564,029) | 44 (36–58) | 1 | 8.9 (6.9–10.9) |
| Frontier | Claude Opus 5 | 5/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) | 1 | 8.4 (6.8–14.0) |
| Frontier | Claude Sonnet 5 | 5/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) | 1 | 9.7 (8.1–11.4) |
| Frontier | Claude Opus 4.8 | 5/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) | 1 | 7.2 (6.6–9.6) |
| Frontier | GPT-6.1 Sol | 5/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) | 1 | 8.1 (6.5–8.8) |
| Frontier | GPT-6 Astra | 5/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) | 1 | 7.9 (7.3–8.8) |
| Frontier | GPT-6 Sol | 5/5 | $0.291 ($0.258–$0.358) | 8,544 (7,967–9,605) | 564,091 (432,181–818,653) | 36 (32–51) | 1 | 3.1 (2.5–3.3) |
| Frontier | GPT-6 Luna | 5/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–3 | 4.2 (4.0–15.7) |
| Frontier | GPT-5.6 Sol | 5/5 | $0.755 ($0.667–$0.908) | 12,032 (10,223–12,787) | 584,537 (505,256–775,728) | 31 (27–34) | 1 | 4.1 (3.4–5.8) |
| Chinese open-weight | Kimi K3 | 5/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) | 1 | 10.5 (8.2–12.0) |
| Chinese open-weight | GLM 5.3 | 4/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) | 1 | 10.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.
| Model | Attempts | Completed | All-attempt cost (USD) | Cost per completion (USD) |
|---|---|---|---|---|
| Claude Opus 5.5 | 5 | 5 | $4.7279 | $0.9456 |
| Claude Sonnet 5.5 | 5 | 5 | $1.5158 | $0.3032 |
| Claude Haiku 5.5 | 5 | 5 | $0.3237 | $0.0647 |
| Claude Fable 5.1 | 5 | 5 | $12.8723 | $2.5745 |
| Claude Opus 5 | 5 | 5 | $11.4937 | $2.2987 |
| Claude Sonnet 5 | 5 | 5 | $6.3291 | $1.2658 |
| Claude Opus 4.8 | 5 | 5 | $10.6600 | $2.1320 |
| GPT-6.1 Sol | 5 | 5 | $2.5741 | $0.5148 |
| GPT-6 Astra | 5 | 5 | $16.8230 | $3.3646 |
| GPT-6 Sol | 5 | 5 | $1.5152 | $0.3030 |
| GPT-6 Luna | 5 | 5 | $0.1714 | $0.0343 |
| GPT-5.6 Sol | 5 | 5 | $3.8570 | $0.7714 |
| Kimi K3 | 5 | 5 | $7.0211 | $1.4042 |
| GLM 5.3 | 5 | 4 | $8.5371 | $2.1343 |
Token mix and cost mix
94% of all tokens in completed runs were cache reads
Show data
| Model | Input | Output | Cache read | Cache write | Total | Cache-read token share | Cache-read cost share |
|---|---|---|---|---|---|---|---|
| Frontier | |||||||
| Claude Opus 5.5 | 74 | 20,667 | 722,474 | 53,343 | 796,558 | 91% | 18% |
| Claude Sonnet 5.5 | 54 | 14,161 | 392,240 | 38,933 | 445,388 | 88% | 14% |
| Claude Haiku 5.5 | 104 | 52,713 | 2,008,107 | 93,162 | 2,156,808 | 93% | 34% |
| Claude Fable 5.1 | 92 | 26,693 | 1,096,620 | 61,437 | 1,183,739 | 93% | 12% |
| Claude Opus 5 | 114 | 28,503 | 1,467,821 | 59,283 | 1,555,721 | 94% | 40% |
| Claude Sonnet 5 | 170 | 32,142 | 2,960,551 | 70,704 | 3,059,198 | 97% | 55% |
| Claude Opus 4.8 | 120 | 23,804 | 1,787,192 | 58,440 | 1,873,275 | 95% | 49% |
| GPT-6.1 Sol | 92 | 20,621 | 1,074,525 | 59,843 | 1,164,468 | 92% | 22% |
| GPT-6 Astra | 96 | 22,221 | 1,236,901 | 58,048 | 1,325,517 | 93% | 39% |
| GPT-6 Sol | 72 | 8,544 | 525,901 | 30,494 | 564,091 | 93% | 40% |
| GPT-6 Luna | 100 | 14,272 | 982,784 | 60,391 | 1,057,982 | 93% | 40% |
| GPT-5.6 Sol | 62 | 12,032 | 528,733 | 49,072 | 584,537 | 90% | 31% |
| Chinese open-weight | |||||||
| Kimi K3 | 427 | 39,505 | 1,556,409 | 60,969 | 1,658,186 | 94% | 36% |
| GLM 5.3 | 160 | 59,582 | 3,612,806 | 87,281 | 3,766,802 | 96% | 68% |
- 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
Self-terminated session: an agent killed its own process (exit 143) because pi receives the prompt as a command-line argument.
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
| Model | Builder requests | Verifier requests | Builder cost | Verifier cost | Verifier share | Self-terminated sessions |
|---|---|---|---|---|---|---|
| Frontier | ||||||
| Claude Opus 5.5 | 23 | 11 | $0.772 | $0.135 | 15% | 0 |
| Claude Sonnet 5.5 | 17 | 8 | $0.269 | $0.037 | 12% | 1 |
| Claude Haiku 5.5 | 41 | 10 | $0.061 | $0.005 | 8% | 0 |
| Claude Fable 5.1 | 33 | 13 | $2.192 | $0.375 | 15% | 0 |
| Claude Opus 5 | 44 | 14 | $1.773 | $0.203 | 10% | 0 |
| Claude Sonnet 5 | 71 | 10 | $1.101 | $0.061 | 5% | 0 |
| Claude Opus 4.8 | 52 | 9 | $1.887 | $0.133 | 7% | 1 |
| GPT-6.1 Sol | 38 | 8 | $0.442 | $0.055 | 10% | 0 |
| GPT-6 Astra | 41 | 9 | $3.196 | $0.278 | 8% | 0 |
| GPT-6 Sol | 28 | 7 | $0.259 | $0.047 | 16% | 0 |
| GPT-6 Luna | 44 | 10 | $0.022 | $0.007 | 25% | 0 |
| GPT-5.6 Sol | 22 | 8 | $0.552 | $0.181 | 24% | 0 |
| Chinese open-weight | ||||||
| Kimi K3 | 47 | 16 | $1.300 | $0.122 | 9% | 0 |
| GLM 5.3 | 65 | 16 | $1.729 | $0.082 | 4% | 1 |
- 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
- 2.0×CostFrontier $0.831Chinese open-weight $1.621
- 2.3×Output tokensFrontier 21,444Chinese open-weight 49,543
- 2.3×Total tokensFrontier 1,174,104Chinese open-weight 2,712,494
- 1.5×LLM requestsFrontier 47Chinese open-weight 71
- 1.4×Run timeFrontier 7.3 minChinese open-weight 10.3 min
- 1GPT-6 Luna$0.027
- 2Claude Haiku 5.5$0.065
- 3GPT-6 Sol$0.291
- 4Claude Sonnet 5.5$0.306
- 5GPT-6.1 Sol$0.527
- 6GPT-5.6 Sol$0.755
- 7Claude Opus 5.5$0.907
- 8Claude Sonnet 5$1.179
- 9Kimi K3$1.422
- 10GLM 5.3$1.821
- 11Claude Opus 5$1.999
- 12Claude Opus 4.8$2.018
- 13Claude Fable 5.1$2.566
- 14GPT-6 Astra$3.495
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
| Metric | Frontier Median | Frontier Min–max | Chinese open-weight Median | Chinese open-weight Min–max | Ratio (Chinese ÷ frontier) |
|---|---|---|---|---|---|
| Cost | $0.831 | $0.027–$3.495 | $1.621 | $1.422–$1.821 | 2.0× |
| Output tokens | 21,444 | 8,544–52,713 | 49,543 | 39,505–59,582 | 2.3× |
| Total tokens | 1,174,104 | 445,388–3,059,198 | 2,712,494 | 1,658,186–3,766,802 | 2.3× |
| LLM requests | 47 | 25–85 | 71 | 61–80 | 1.5× |
| Run time | 7.3 min | 3.1 min–9.7 min | 10.3 min | 10.1 min–10.5 min | 1.4× |
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 models are selected. Deselect one to add another.
| Field | Claude Opus 5.5 Anthropic | GPT-6.1 Sol OpenAI | Kimi K3 Moonshot AI |
|---|---|---|---|
| Vendor · group | Anthropic · Frontier | OpenAI · Frontier | Moonshot AI · Chinese open-weight |
| Bedrock model ID | us.anthropic.claude-opus-5-5 | us.openai.gpt-6.1-sol | us.moonshotai.kimi-k3 |
| Cost | $0.907 ($0.861–$1.054) | $0.527 ($0.457–$0.559)best | $1.422 ($1.154–$1.640) |
| Cost rank | 7 of 14 (1 = cheapest) | 5 of 14 (1 = cheapest)best | 9 of 14 (1 = cheapest) |
| Run minutes | 6.1 min (5.7 min–8.0 min)best | 8.1 min (6.5 min–8.8 min) | 10.5 min (8.3 min–12.0 min) |
| Output tokens | 20,667 (20,402–23,773) | 20,621 (18,490–22,847)best | 39,505 (32,640–47,056) |
| Total tokens | 796,558 (631,889–1,088,484)best | 1,164,468 (1,096,209–1,385,667) | 1,658,186 (1,276,997–1,856,453) |
| Cache-read tokens | 722,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 requests | 35 (Builder 23 / Verifier 11)best | 46 (Builder 38 / Verifier 8) | 61 (Builder 47 / Verifier 16) |
| Completed | 5/5 | 5/5 | 5/5 |
| Iterations | 1, 1, 1, 1, 1 | 1, 1, 1, 1, 1 | 1, 1, 1, 1, 1 |
| Verifier cost share | 15% | 10% | 9% |
| Note | 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. | 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-doneplus 13 passing files) the run counts as incomplete. - Stall, GPT-6 Luna run 3: In iteration 1 the builder ran
npm run devin 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]
- GPT-6 Astraus.openai.gpt-6-astraInput$11Output$55Cache read$1.1Cache write$13.75
- Claude Fable 5.1us.anthropic.claude-fable-5-1Input$11Output$55Cache read$0.275Cache write$13.75
- Claude Opus 5us.anthropic.claude-opus-5Input$5.5Output$27.5Cache read$0.55Cache write$6.875
- Claude Opus 4.8us.anthropic.claude-opus-4-8Input$5.5Output$27.5Cache read$0.55Cache write$6.875
- GPT-5.6 Solus.openai.gpt-5.6-solInput$4.4Output$22Cache read$0.44Cache write$5.5
- Claude Opus 5.5us.anthropic.claude-opus-5-5Input$4.4Output$22Cache read$0.22Cache write$5.5
- Kimi K3us.moonshotai.kimi-k3Input$3.3Output$16.5Cache read$0.33Cache write$4.125
- Claude Sonnet 5us.anthropic.claude-sonnet-5Input$2.2Output$11Cache read$0.22Cache write$2.75
- GPT-6 Solus.openai.gpt-6-solInput$2.2Output$11Cache read$0.22Cache write$2.75
- Claude Sonnet 5.5us.anthropic.claude-sonnet-5-5Input$2.2Output$11Cache read$0.11Cache write$2.75
- GPT-6.1 Solus.openai.gpt-6.1-solInput$2.2Output$11Cache read$0.11Cache write$2.75
- GLM 5.3us.zai.glm-5.3Input$1.848Output$5.808Cache read$0.3432Cache write$2.31
- Claude Haiku 5.5us.anthropic.claude-haiku-5-5Input$0.11Output$0.55Cache read$0.011Cache write$0.1375
- GPT-6 Lunaus.openai.gpt-6-lunaInput$0.11Output$0.55Cache read$0.011Cache write$0.1375
Show data
| Model | Input | Output | Cache read | Cache write | Model ID |
|---|---|---|---|---|---|
| GPT-6 Astra | $11 | $55 | $1.1 | $13.75 | us.openai.gpt-6-astra |
| Claude Fable 5.1 | $11 | $55 | $0.275 | $13.75 | us.anthropic.claude-fable-5-1 |
| Claude Opus 5 | $5.5 | $27.5 | $0.55 | $6.875 | us.anthropic.claude-opus-5 |
| Claude Opus 4.8 | $5.5 | $27.5 | $0.55 | $6.875 | us.anthropic.claude-opus-4-8 |
| GPT-5.6 Sol | $4.4 | $22 | $0.44 | $5.5 | us.openai.gpt-5.6-sol |
| Claude Opus 5.5 | $4.4 | $22 | $0.22 | $5.5 | us.anthropic.claude-opus-5-5 |
| Kimi K3 | $3.3 | $16.5 | $0.33 | $4.125 | us.moonshotai.kimi-k3 |
| Claude Sonnet 5 | $2.2 | $11 | $0.22 | $2.75 | us.anthropic.claude-sonnet-5 |
| GPT-6 Sol | $2.2 | $11 | $0.22 | $2.75 | us.openai.gpt-6-sol |
| Claude Sonnet 5.5 | $2.2 | $11 | $0.11 | $2.75 | us.anthropic.claude-sonnet-5-5 |
| GPT-6.1 Sol | $2.2 | $11 | $0.11 | $2.75 | us.openai.gpt-6.1-sol |
| GLM 5.3 | $1.848 | $5.808 | $0.3432 | $2.31 | us.zai.glm-5.3 |
| Claude Haiku 5.5 | $0.11 | $0.55 | $0.011 | $0.1375 | us.anthropic.claude-haiku-5-5 |
| GPT-6 Luna | $0.11 | $0.55 | $0.011 | $0.1375 | us.openai.gpt-6-luna |
- 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)
| Item | Cost (reported tokens × price) | Notes |
|---|---|---|
| Runs used in the results | $88.42 | All 70 runs in isolated containers, complete or not; includes $12.87 for the five Claude Fable 5.1 runs |
| Discarded first attempt | $17.60 | Agents ran directly on the host and could interfere with each other, so the results were dropped |
| Total | $106.02 | Excludes 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
- 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).
- 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.
- The first attempt was discarded. Running without containers on one host, agents issued host-wide commands such as
pkill -fandfuser -kthat could stop other runs' servers, so everything was rerun in isolated containers. - The verifier checked the server port more strictly than the completion rule. Its prompt requires the
PORTenvironment variable, which the completion rule does not; completion is unaffected. - Some sessions self-terminated (exit 143). pi receives the prompt as a command-line argument, so an agent that runs
pkill -fwith words from its prompt also kills itself. The prompts were not changed mid-experiment to keep runs comparable. - The verifier's effect cannot be determined (not verified). There is no control group without a verifier.
- Group 2 has 2 models. Its group value is weak evidence.
- 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).
- 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].
- 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.mdunchanged; 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
- Jung Do Hyun (정도현, Roboco), Ralph loop completion by model (reference, checked 2026-10-14 05:27 UTC)
- roboco-io/coding-agent-benchmark (the task, the builder prompt and the grading Hurl tests)
- Amazon Bedrock pricing
- Amazon Bedrock User Guide: Data retention
- RealWorld backend API specification
- pi coding agent