Amazon Bedrock Pricing Explained: How to Estimate and Reduce Token Costs
Amazon Bedrock pricing varies by model, provider, modality, service tier, and inference option. For many text models, pricing is based on input and output tokens, while image, video, and other modalities use model-specific pricing units.
What drives the bill?
- Token prices: Prices are based on 1M tokens. 1 token = approx. 4 characters.
- Output token prices: Input and output token pricing: Input and output tokens may be priced differently depending on the selected model and service tier. Always check the current pricing for the specific model.
- Model Choice: Prices vary significantly between Anthropic, Meta, Mistral, AI21 Labs, and Amazon Nova. The Nova model is reasonably cheap at around $0.035 per 1M input tokens. Whereas the flagship models are much higher.
- Guardrail: $0.15 per 1,000 text units. Knowledge Bases and AgentCore are charged on top of the inference.
Which billing mode fits your workload?
- On Demand: Pay per token/image. Best for unpredictable traffic.
- Batch: Prompts are sent using Amazon S3. Get a 50% discount. Best for asynchronous jobs.
- Amazon Bedrock dedicated capacity: Charged per hour. You can choose to pay for 1 month or 6 months. This guarantees performance; however, you will be charged even if you aren’t using it.
- Flex: 50% cheaper. Priority: 75% more expensive.
How to work out your generative AI cost per request
First, calculate your estimated monthly request volume, average input tokens, and output tokens. To get a quick estimate, divide the number of characters by 4.
Then apply this formula:
Monthly Cost (per request)=[{(input tokens)/1,000,000}*(input rate)]+[{(output tokens)/1,000,000}*(output rate)]
Let’s work through an example. If you have 10,000 requests per month, with 1,500 input tokens and 400 output tokens. Let’s say the price is $3 and $15 per 1M tokens.
- Input: 15M tokens, so $45
- Output: 4M tokens, so $60
- Total: $105 a month, or $0.0105 per call
Only 21% of the tokens are output; however, this accounts for 57% of the cost. Check your numbers in the AWS Pricing Calculator. It will give you region-specific pricing.
Bedrock cost optimisation: four levers
- Prompt Caching: Cache your static system prompts and large context documents. This can reduce the cost of reading from cache by up to 90%.
- Batch Inference: Offload tasks such as data labeling, document processing, and bulk generation. This reduced the Amazon Bedrock cost in our example from $105 to $52.50.
- Model Matching: Offload classification, extraction, and simple formatting tasks to low-capacity models like Nova Micro and Jamba Mini.
- Prompt Shortening: Shorten any long prompts, reduce chat history, and use RAG to only include relevant snippets.
Common mistakes to avoid
Many teams will waste money on this. Sending your full chat history will cause a rapid increase in input tokens. Leaving your output length unbounded will cause longer outputs at a higher rate. Using a single flagship model will waste spending on simple tasks. Buying reserved capacity before you have consistent traffic will cause you to pay for unused hours. Review these 4 points each month.
Tracking your Amazon Bedrock cost
Label your workloads. Keep track of how many tokens you’re using per call. Set alerts for your budget. Focus on your output percentage, as this will have the largest impact. Recalculate your estimate whenever you change the model, prompt length, or traffic. Prices will vary depending on region and model. Always check the official AWS Bedrock pricing page to confirm the prices.
You May Also Like
AI Agent Development Services: Cost, Timeline and What an Enterprise Build InvolvesAI Agent Development Services: Cost, Timeline and What an Enterprise Build Involves Every application needs...
Automating Business Workflows with Quick Flows and Quick AutomateAutomating Business Workflows with Quick Flows and Quick Automate Every Monday, someone copies numbers from...
Generative AI for Banking and Insurance: 3 Proven UsesAutomating Business Workflows with Quick Flows and Quick AutomateaGenerative AI for Banking and Insurance: Automating...
