Description
Describe the bug
Issue:
When using the AWS CLI to query Bedrock pricing for the provider Anthropic, the response only includes prices for Input tokens and does not return any pricing information for Output tokens. This is inconsistent with other providers, where both input and output token pricing are available.
Request:
Please clarify if Anthropic models on Bedrock are intended to only bill for input tokens, or if output token pricing is missing from the API response. If this is a data issue, please update the pricing API to include output token pricing for Anthropic models.
Regression Issue
- Select this option if this issue appears to be a regression.
Expected Behavior
Pricing information for both input and output tokens should be available for Anthropic models, as is the case for other providers.
For example, a sample snippet for Meta provider includes both input and out tokens price
"{\"product\":{\"productFamily\":\"Amazon Bedrock\",\"attributes\":{\"regionCode\":\"us-east-1\",\"inferenceType\":\"Input tokens\",\"servicecode\":\"AmazonBedrock\",\"feature\":\"Batch Inference\",\"provider\":\"Meta\",\"usagetype\":\"USE1-Llama3-1-8B-input-tokens-batch\",\"locationType\":
\"AWS Region\",\"location\":\"US East (N. Virginia)\",\"model\":\"Llama 3.1 8B\",\"servicename\":\"Amazon Bedrock\",\"operation\":\"\"},\"sku\":\"YGT73D37BVQJ5ND2\"},\"serviceCode\":\"AmazonBedrock\",\"terms\":{\"OnDemand\":{\"YGT73D37BVQJ5ND2.JRTCKXETXF\":{\"priceDimensions\":{\"YGT73D37BVQJ5ND2.J
RTCKXETXF.6YS6EN2CT7\":{\"unit\":\"1K tokens\",\"endRange\":\"Inf\",\"description\":\"$0.00011 per 1K input tokens for Llama 3.1 8B in US East (N. Virginia) for Batch\",\"appliesTo\":[],\"rateCode\":\"YGT73D37BVQJ5ND2.JRTCKXETXF.6YS6EN2CT7\",\"beginRange\":\"0\",\"pricePerUnit\":{\"USD\":\"0.000110
0000\"}}},\"sku\":\"YGT73D37BVQJ5ND2\",\"effectiveDate\":\"2025-06-01T00:00:00Z\",\"offerTermCode\":\"JRTCKXETXF\",\"termAttributes\":{}}}},\"version\":\"20250618225550\",\"publicationDate\":\"2025-06-18T22:55:50Z\"}",
"{\"product\":{\"productFamily\":\"Amazon Bedrock\",\"attributes\":{\"regionCode\":\"us-east-1\",\"inferenceType\":\"Output tokens\",\"servicecode\":\"AmazonBedrock\",\"feature\":\"On-demand Inference\",\"provider\":\"Meta\",\"usagetype\":\"USE1-Llama3-1-70B-output-tokens-latency-optimized\
",\"locationType\":\"AWS Region\",\"location\":\"US East (N. Virginia)\",\"model\":\"Llama 3.1 70B Latency Optimized\",\"servicename\":\"Amazon Bedrock\",\"operation\":\"\"},\"sku\":\"ZRT87PRQNK45SC6F\"},\"serviceCode\":\"AmazonBedrock\",\"terms\":{\"OnDemand\":{\"ZRT87PRQNK45SC6F.JRTCKXETXF\":{\"p
riceDimensions\":{\"ZRT87PRQNK45SC6F.JRTCKXETXF.6YS6EN2CT7\":{\"unit\":\"1K tokens\",\"endRange\":\"Inf\",\"description\":\"$0.0009 per 1K output tokens for Llama 3.1 70B Latency Optimized in US East (N. Virginia)\",\"appliesTo\":[],\"rateCode\":\"ZRT87PRQNK45SC6F.JRTCKXETXF.6YS6EN2CT7\",\"beginRan
ge\":\"0\",\"pricePerUnit\":{\"USD\":\"0.0009000000\"}}},\"sku\":\"ZRT87PRQNK45SC6F\",\"effectiveDate\":\"2025-06-01T00:00:00Z\",\"offerTermCode\":\"JRTCKXETXF\",\"termAttributes\":{}}}},\"version\":\"20250618225550\",\"publicationDate\":\"2025-06-18T22:55:50Z\"}"
Current Behavior
Command Used:
aws pricing get-products \
--region us-east-1 \
--service-code AmazonBedrock \
--filters Type=TERM_MATCH,Field=provider,Value=Anthropic Type=TERM_MATCH,Field=regionCode,Value=us-east-1 \
--output json
Observed Output:
All returned products have "inferenceType": "Input tokens"; there are no entries for "inferenceType": "Output tokens".
{
"PriceList": [
"{\"product\":{\"productFamily\":\"Amazon Bedrock\",\"attributes\":{\"regionCode\":\"us-east-1\",\"inferenceType\":\"Input tokens\",\"servicecode\":\"AmazonBedrock\",\"feature\":\"On-demand Inference\",\"provider\":\"Anthropic\",\"usagetype\":\"USE1-Claude2.0-input-tokens\",\"locationType\":\"AWS Region\",\"location\":\"US East (N. Virginia)\",\"model\":\"Claude 2.0\",\"servicename\":\"Amazon Bedrock\",\"operation\":\"\"},\"sku\":\"3G679R3Y8YSQSJTA\"},\"serviceCode\":\"AmazonBedrock\",\"terms\":{\"OnDemand\":{\"3G679R3Y8YSQSJTA.JRTCKXETXF\":{\"priceDimensions\":{\"3G679R3Y8YSQSJTA.JRTCKXETXF.6YS6EN2CT7\":{\"unit\":\"1K tokens\",\"endRange\":\"Inf\",\"description\":\"$0.00800 per 1K tokens for Claude2.0-input-tokens inUS East (N. Virginia)\",\"appliesTo\":[],\"rateCode\":\"3G679R3Y8YSQSJTA.JRTCKXETXF.6YS6EN2CT7\",\"beginRange\":\"0\",\"pricePerUnit\":{\"USD\":\"0.0080000000\"}}},\"sku\":\"3G679R3Y8YSQSJTA\",\"effectiveDate\":\"2025-06-01T00:00:00Z\",\"offerTermCode\":\"JRTCKXETXF\",\"termAttributes\":{}}}},\"version\":\"20250618225550\",\"publicationDate\":\"2025-06-18T22:55:50Z\"}",
"{\"product\":{\"productFamily\":\"Amazon Bedrock\",\"attributes\":{\"regionCode\":\"us-east-1\",\"inferenceType\":\"Input tokens\",\"servicecode\":\"AmazonBedrock\",\"feature\":\"On-demand Inference\",\"provider\":\"Anthropic\",\"usagetype\":\"USE1-Claude2.1-input-tokens\",\"locationType\":\"AWS Region\",\"location\":\"US East (N. Virginia)\",\"model\":\"Claude 2.1\",\"servicename\":\"Amazon Bedrock\",\"operation\":\"\"},\"sku\":\"DNHX8RUT8JXY6B4P\"},\"serviceCode\":\"AmazonBedrock\",\"terms\":{\"OnDemand\":{\"DNHX8RUT8JXY6B4P.JRTCKXETXF\":{\"priceDimensions\":{\"DNHX8RUT8JXY6B4P.JRTCKXETXF.6YS6EN2CT7\":{\"unit\":\"1K tokens\",\"endRange\":\"Inf\",\"description\":\"$0.00800 per 1K tokens for Claude2.1-input-tokens inUS East (N. Virginia)\",\"appliesTo\":[],\"rateCode\":\"DNHX8RUT8JXY6B4P.JRTCKXETXF.6YS6EN2CT7\",\"beginRange\":\"0\",\"pricePerUnit\":{\"USD\":\"0.0080000000\"}}},\"sku\":\"DNHX8RUT8JXY6B4P\",\"effectiveDate\":\"2025-06-01T00:00:00Z\",\"offerTermCode\":\"JRTCKXETXF\",\"termAttributes\":{}}}},\"version\":\"20250618225550\",\"publicationDate\":\"2025-06-18T22:55:50Z\"}",
"{\"product\":{\"productFamily\":\"Amazon Bedrock\",\"attributes\":{\"regionCode\":\"us-east-1\",\"inferenceType\":\"Input tokens\",\"servicecode\":\"AmazonBedrock\",\"feature\":\"On-demand Inference\",\"provider\":\"Anthropic\",\"usagetype\":\"USE1-ClaudeInstant-input-tokens\",\"locationType\":\"AWS Region\",\"location\":\"US East (N. Virginia)\",\"model\":\"Claude Instant\",\"servicename\":\"Amazon Bedrock\",\"operation\":\"\"},\"sku\":\"HD4QTTUSXHXFW2NY\"},\"serviceCode\":\"AmazonBedrock\",\"terms\":{\"OnDemand\":{\"HD4QTTUSXHXFW2NY.JRTCKXETXF\":{\"priceDimensions\":{\"HD4QTTUSXHXFW2NY.JRTCKXETXF.6YS6EN2CT7\":{\"unit\":\"1K tokens\",\"endRange\":\"Inf\",\"description\":\"$0.00080 per 1K tokens for ClaudeInstant-input-tokens inUS East (N. Virginia)\",\"appliesTo\":[],\"rateCode\":\"HD4QTTUSXHXFW2NY.JRTCKXETXF.6YS6EN2CT7\",\"beginRange\":\"0\",\"pricePerUnit\":{\"USD\":\"0.0008000000\"}}},\"sku\":\"HD4QTTUSXHXFW2NY\",\"effectiveDate\":\"2025-06-01T00:00:00Z\",\"offerTermCode\":\"JRTCKXETXF\",\"termAttributes\":{}}}},\"version\":\"20250618225550\",\"publicationDate\":\"2025-06-18T22:55:50Z\"}",
"{\"product\":{\"productFamily\":\"Amazon Bedrock\",\"attributes\":{\"regionCode\":\"us-east-1\",\"inferenceType\":\"Input tokens\",\"servicecode\":\"AmazonBedrock\",\"feature\":\"On-demand Inference\",\"provider\":\"Anthropic\",\"usagetype\":\"USE1-Claude3Haiku-input-tokens\",\"locationType\":\"AWS Region\",\"location\":\"US East (N. Virginia)\",\"model\":\"Claude 3 Haiku\",\"servicename\":\"Amazon Bedrock\",\"operation\":\"\"},\"sku\":\"KMZFVEBPVFAP5FUF\"},\"serviceCode\":\"AmazonBedrock\",\"terms\":{\"OnDemand\":{\"KMZFVEBPVFAP5FUF.JRTCKXETXF\":{\"priceDimensions\":{\"KMZFVEBPVFAP5FUF.JRTCKXETXF.6YS6EN2CT7\":{\"unit\":\"1K tokens\",\"endRange\":\"Inf\",\"description\":\"$0.00025 per 1K tokens for Claude3Haiku-input-tokens inUS East (N. Virginia)\",\"appliesTo\":[],\"rateCode\":\"KMZFVEBPVFAP5FUF.JRTCKXETXF.6YS6EN2CT7\",\"beginRange\":\"0\",\"pricePerUnit\":{\"USD\":\"0.0002500000\"}}},\"sku\":\"KMZFVEBPVFAP5FUF\",\"effectiveDate\":\"2025-06-01T00:00:00Z\",\"offerTermCode\":\"JRTCKXETXF\",\"termAttributes\":{}}}},\"version\":\"20250618225550\",\"publicationDate\":\"2025-06-18T22:55:50Z\"}",
"{\"product\":{\"productFamily\":\"Amazon Bedrock\",\"attributes\":{\"regionCode\":\"us-east-1\",\"inferenceType\":\"Input tokens\",\"servicecode\":\"AmazonBedrock\",\"feature\":\"On-demand Inference\",\"provider\":\"Anthropic\",\"usagetype\":\"USE1-Claude3Sonnet-input-tokens\",\"locationType\":\"AWS Region\",\"location\":\"US East (N. Virginia)\",\"model\":\"Claude 3 Sonnet\",\"servicename\":\"Amazon Bedrock\",\"operation\":\"\"},\"sku\":\"ZEJSXGT973DYB7JF\"},\"serviceCode\":\"AmazonBedrock\",\"terms\":{\"OnDemand\":{\"ZEJSXGT973DYB7JF.JRTCKXETXF\":{\"priceDimensions\":{\"ZEJSXGT973DYB7JF.JRTCKXETXF.6YS6EN2CT7\":{\"unit\":\"1K tokens\",\"endRange\":\"Inf\",\"description\":\"$0.00300 per 1K tokens for Claude3Sonnet-input-tokens inUS East (N. Virginia)\",\"appliesTo\":[],\"rateCode\":\"ZEJSXGT973DYB7JF.JRTCKXETXF.6YS6EN2CT7\",\"beginRange\":\"0\",\"pricePerUnit\":{\"USD\":\"0.0030000000\"}}},\"sku\":\"ZEJSXGT973DYB7JF\",\"effectiveDate\":\"2025-06-01T00:00:00Z\",\"offerTermCode\":\"JRTCKXETXF\",\"termAttributes\":{}}}},\"version\":\"20250618225550\",\"publicationDate\":\"2025-06-18T22:55:50Z\"}"
],
"FormatVersion": "aws_v1"
}
Reproduction Steps
Use the command
aws pricing get-products \
--region us-east-1 \
--service-code AmazonBedrock \
--filters Type=TERM_MATCH,Field=provider,Value=Anthropic Type=TERM_MATCH,Field=regionCode,Value=us-east-1 \
--output json
Possible Solution
No response
Additional Information/Context
No response
CLI version used
aws-cli/2.17.46
Environment details (OS name and version, etc.)
Mac OS