Airbnb uses cost‑per‑task metric to choose Bedrock coding models
Airbnb runs its internal AirChat coding agents on Amazon Bedrock and decides which foundation model to use by measuring a “cost per task” – the list‑price cost of all tokens an agent consumes to finish a single coding task. Before each rollout the team runs evals on a fixed suite of real‑world tasks, records each model’s score and cost per task, and picks a default model and reasoning‑effort…
Key points
- Airbnb evaluates Bedrock models on real coding tasks, measuring score and cost per task before rollout
- Production monitoring showed model A cost three times per request and raised user spend several‑fold
- Switching to a newer model cut cost per task to about a sixth and reduced spend to about a seventh
After deployment, CloudWatch metrics such as InvocationLatency, TimeToFirstToken, OutputTokenCount and token‑quota usage are compared with the eval results. When production data diverges – for example, a model that scored three points higher in evals (model A) ended up costing three times more per request and drove several‑fold higher weekly spend per user – Airbnb switches users to a newer model that scores higher at about a sixth of the earlier cost. The process lets the engineering organization quickly assess new models (often within hours) and continuously optimise spend, latency and capacity.
The blog also outlines practical prerequisites: access to Bedrock models, streaming APIs, logging, and a gateway that records model, client, team and token counts. It describes how to derive metrics like output tokens per second and how to set proactive throttling alarms, helping other teams replicate the cost‑per‑task approach for their own AI‑driven coding agents.
How Airbnb uses cost per task to operate coding agents on Amazon Bedrock
AWS Machine Learning Blog · 18 November 2026
Loading the full article…
This text was published by AWS Machine Learning Blog and written by Alan Yao. It is reproduced here with attribution so you can read it in full; the rights remain with the publisher. Read it at the source ↗
The headline, key points and digest above were generated by Digest AI's editorial model from the linked sources. Automated summaries can contain errors: the sources are the record. Spotted a mistake? Tell us. Published by Martin K., who runs Digest AI and handles corrections.
More in Agents & Tools
All →- Anthropic adds Code and Projects tabs to Claude mobile app · 2 src
- A thought on why Docker Sandboxes might be the only choice for safely letting Claude Code 'run autonomously'. · 1 src
- Apple reportedly hires manager to build AI agent rivaling OpenAI, Meta, Anthropic · 2 src
- Sarvam AI ships 105B checkpoint for on-premises enterprise agents at $0.15 per million tokens · 1 src
- Visa CLI adds card verification for AI agents and OUSD payouts · 1 src
Comments
via GitHub Discussions