AI Cloud Architect

How Airbnb uses cost per task to operate coding agents on Amazon Bedrock

AWSBlog post by Alan Yao, Rashim Gupta, Sang Kong and Jayadev VadakkanmarveettilAWS Artificial Intelligence Blog

Airbnb runs evals on real engineering tasks and uses Amazon Bedrock observability to choose models for its coding agents and control production costs. This post shows how cost per task guides model selection, why production spending can differ from eval results, and how to monitor latency, manage quotas, and attribute spend.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Airbnb measures cost per task from evals and compares it with CloudWatch Bedrock metrics to choose models and set effort limits for its coding agents.

Who it is for

Platform teams running coding agents on Amazon Bedrock that need to pick models and control token spend and quota use.

Key points

  • Cost per task sums uncached input, cache read, cache write and output token costs over all requests in a task.
  • Bedrock quota reserves uncached input, cache writes and max_tokens; cache reads do not count against quota.
  • Bedrock has no native OTPS metric; it is derived from OutputTokenCount, InvocationLatency and TimeToFirstToken.
  • Model invocation logging is off by default and must be enabled per Region.

The same at other vendors