How Airbnb uses cost per task to operate coding agents on Amazon Bedrock
In one sentence
Airbnb combines pre-rollout evaluations with Amazon CloudWatch observability, using cost per task to guide model selection, reasoning effort limits, and capacity management for its coding agents on Amazon Bedrock.
Key points
- Thousands of Airbnb engineers use AirChat weekly to run coding agents powered by Amazon Bedrock.
- Before rollout, the team runs evaluations on real engineering tasks to measure scores and cost per task across models and reasoning efforts.
- Evaluation results guide default model selection and reasoning effort ceilings to balance performance against cost increases.
- Post-rollout observability via Amazon CloudWatch tracks latency, throttling, and token consumption, comparing production signals against evals to adjust configurations.
In depth
An AI-written overview of the original article, not the article itself.
The article explains how Airbnb operates its internal coding agents, AirChat, on Amazon Bedrock by combining cost-per-task evaluations with production monitoring. Amid frequent model releases, this approach helps the company manage quality, spend, latency, and throttling.
Evaluating Models by Cost per Task
According to the company, thousands of Airbnb engineers use AirChat weekly through an LLM gateway on Amazon Bedrock. Because public benchmarks do not reflect actual engineering work, Airbnb evaluates new models before rollout using seven suites of real tasks in sandboxes, measuring both quality scores and the total list-price token cost per task.
Evaluations also test different reasoning efforts. In one test, raising effort from low to high slightly improved the score but increased cost per task by 2.5 times. Airbnb uses these results to set default models and effort ceilings.
Production Monitoring and Cost Gaps
After rollout, Airbnb tracks Amazon CloudWatch metrics such as time to first token, output token count, and derived output tokens per second. The article notes that prompt changes requesting longer answers can raise latency even when generation speed stays flat.
Production usage often diverges from evaluations. One model, Model A, scored higher in evals at a similar cost per task, yet weekly spend per user surged several times in production. Engineers ran long, self-directed sessions with it, tripling both requests per user and cost per request due to re-reading cached context. Switching heavy users to a newer, more efficient model later cut their spend to about a seventh.
Managing Throttling and Quotas
Bedrock reserves quota upon request arrival using uncached input, cache writes, and max_tokens, with some models applying higher burndown rates to output tokens. Airbnb cut initial reservations by about 65 percent by lowering max_tokens from 4,096 to 1,024, while keeping equivalent fallback models ready.
This summary was generated by AI from the original article and may contain errors; the original is authoritative. Copyright belongs to the original author.