# AWS adds on‑demand cost API to Pricing Calculator

> AWS now offers GetUsageLinesEstimatedCost, an API that returns instant cost estimates for up to 500 usage lines without saving an estimate.

Oossa · 2026-11-20 · https://oossa.com/en/aws-adds-on-demand-cost-api-to-pricing-calculator

AWS released GetUsageLinesEstimatedCost on November 20, 2026. The new API lets developers send up to 500 usage lines and receive a cost estimate in a single call. It works with public On‑Demand rates, discounted rates, and rates that include Savings Plans or Reserved Instances. The service is generally available at no extra charge in all AWS Regions except GovCloud (US) and China.

Customers can embed the API in CI/CD pipelines, cost‑optimization tools, or AI assistants that design workloads. The response includes a cost per line and a total amount.

## The facts

- API name: GetUsageLinesEstimatedCost
- Available globally except GovCloud (US) and China regions

## Why it matters

Developers can programmatically check pricing before launching resources, reducing surprise bills.

## Sources & references

1. [AWS Pricing Calculator now estimates workload costs through a new API](https://aws.amazon.com/about-aws/whats-new/2026/11/aws-pricing-calculator-api/) – AWS, 2026-11-20

Last updated: 2026-11-20
