Practice in your account · 20 min
Compare Amazon Bedrock models with the same prompt
In this lab you will give the same task to Amazon Nova Lite and Mistral Large 3, write down the quality, latency and tokens of each one, and calculate how much a million requests would cost with each model.
The AIF-C01 exam includes scenarios where you have to choose a model for a task, and three things count for that: how good the response is, how long it takes and how much it costs. The time it takes is called latency. This lab is for practicing that decision with your own data, which comes from giving the same task, the same prompt, to two models from different providers in Amazon Bedrock. For example, an online store that wants an assistant to answer its customers needs to know whether a small model answers well enough, because it would be cheaper and faster.
The cost of a single call is very small, but it changes a lot when it is multiplied. Bedrock charges by tokens, and a call to Mistral Large 3 with 40 input tokens and 250 output tokens costs less than a cent, while a million identical calls cost 395 USD. That is why the largest model is often not the one that makes sense. For example, if the store answers millions of questions with a large model, a difference you can't notice in a single call turns into hundreds of dollars.
Before you start
First do Your first call to a model in Amazon Bedrock, where you open CloudShell for the first time and see what a model's response looks like. CloudShell is the window in the AWS console where you type text commands, and that's where you'll run the command that measures each model. This lab uses the us-east-2 Region, which is the only one you have in a new experience account. For example, if you look for the Region selector at the top right in that account, you won't find it, because your project is already fixed to us-east-2.
Models the lab compares
The models are Amazon Nova Lite (amazon.nova-lite-v1:0) and Mistral Large 3 (mistral.mistral-large-3-675b-instruct). The Bedrock availability table marks both as In-Region in us-east-2, which means the call is handled in that Region's data centers and doesn't go out to another one. Also, Amazon and Mistral AI don't sell their models through AWS Marketplace, which is the AWS store where other companies sell their products, and that matters because the new experience only allows Marketplace for Bedrock and for free products. For example, a model billed through Marketplace as a paid product couldn't be used in that account.
Each model is called with an ID, which is the short name Bedrock knows it by, and the start of the ID tells you where the call is handled. A model ID without a prefix, like the two in this lab, is invoked In-Region. An ID that starts with us. is a geographic profile, which can handle the call in another US Region, and one that starts with global. sends the request to any commercial Region. Both profiles are cross-Region inference, which the new experience doesn't support; inference is the work the model does to read the prompt and write the response. For example, amazon.nova-lite-v1:0 works in that account, while us.amazon.nova-lite-v1:0, which calls the same model, doesn't.
Does it work in the new experience?
0 of 4Your project is in us-east-2 and doesn't support cross-Region inference. Tap the column for each model ID.
amazon.nova-lite-v1:0
us.amazon.nova-lite-v1:0
mistral.mistral-large-3-675b-instruct
global.amazon.nova-2-lite-v1:0
cloud path tip: if other material shows Llama 3.3 70B Instruct as a second option, don't use it. Its model card says it is in Legacy status and reaches its end of life on March 30, 2027.
Send the same prompt to each model
In the playground you can read the responses comfortably, while CloudShell gives you the exact token and latency numbers. To make the comparison fair, both models get the same prompt with the same settings, so the only thing that changes is the model. For example, if you gave one a higher temperature than the other, you wouldn't know whether its response is different because of the model or because of that setting.
- In the Amazon Bedrock chat playground, choose Amazon Nova Lite and paste:
Resume en tres viñetas, para un cliente sin conocimientos técnicos, qué es Amazon Bedrock y cómo se cobra.
- Write down the response. If the playground shows the tokens and the response time, write them down too.
- Change the model to Mistral Large 3, send the same prompt and write down the same things.
- If the console has a mode for comparing two models side by side, use it and send the prompt only once. If you can't find it, steps 1 to 3 get you to the same result.
- To get exact numbers, run this in CloudShell. The command calls both models with the same prompt and the same temperature, and shows the tokens and latency of each one:
bash
PROMPT='Resume en tres viñetas, para un cliente sin conocimientos técnicos, qué es Amazon Bedrock y cómo se cobra.'
for MODELO in amazon.nova-lite-v1:0 mistral.mistral-large-3-675b-instruct; do
echo "== $MODELO"
aws bedrock-runtime converse --region us-east-2 --model-id "$MODELO" \
--messages "[{\"role\":\"user\",\"content\":[{\"text\":\"$PROMPT\"}]}]" \
--inference-config '{"maxTokens":400,"temperature":0.3}' \
--query '{entrada: usage.inputTokens, salida: usage.outputTokens, ms: metrics.latencyMs}' \
--output table
done
- Run it two more times. Latency changes from one call to the next, so write down the average of the three.
The command repeats the same call for each model in the list and prints a table with three columns: entrada, the tokens in your prompt; salida, the tokens the model wrote; and ms, the latency in milliseconds. For example, if you see a number close to a thousand under ms, the model took about a second to answer.
Calculate the cost
Bedrock also charges per token for the calls you make in the playground, just like the ones from CloudShell. On demand, which is the way of paying where you don't commit to anything in advance and pay only for what you use, you pay separately for the tokens you send, which are the input tokens, and for the ones the model generates, which are the output tokens. For example, for a short question with a long answer, the store pays for few input tokens and many output tokens.

Since input and output each have their own price, output tokens are usually the most expensive part. That is why a model that is cheap per token but gives long answers can end up costing you more than a model that is expensive per token but gives short answers. For example, if one model writes four paragraphs where another writes one, the first uses several times more output tokens to answer the same question.
For Mistral Large 3, the Bedrock pricing page lists 0.50 USD per million input tokens and 1.50 USD per million output tokens in us-east-1, us-east-2 and us-west-2. Suppose your call used 40 input tokens and 250 output tokens. A million requests like that add up to 40 million input tokens, which cost 20 USD, and 250 million output tokens, which cost 375 USD, for a total of 395 USD.
Nova Lite costs 0.06 USD per million input tokens and 0.24 USD per million output tokens in us-east-2. With the same 40 and 250 tokens, a million requests cost 2.40 USD for input and 60 USD for output, for a total of 62.40 USD. Do both calculations with the tokens you wrote down, and first confirm the price for your Region at https://aws.amazon.com/bedrock/pricing/. For example, if your Nova Lite response used twice as many output tokens as in this calculation, its output cost also doubles.
What weighs more in the bill?
With Mistral Large 3, a call uses 40 input tokens and 250 output tokens. Which part of the cost is larger?
How to know you're done
You have finished the lab when you have a table like this one, filled in with your data:
| Model | Quality (your opinion) | Average latency | Input tokens | Output tokens | Cost per million requests |
|---|---|---|---|---|---|
| Amazon Nova Lite | |||||
| Mistral Large 3 |
Below the table, write a sentence that says which model you would use for a support chatbot that answers thousands of questions a day, and why. For example, if both answers seem equally clear to you, the cheaper and faster model is the one that makes sense for that many questions.
Delete what you created
This lab leaves nothing to delete, because calls to the model don't create resources, which are the things that stay stored or running in your account and cost money while they exist. For example, after the last call there is nothing left in your account still adding to the bill.
In a full account
In a full account, the lab works the same way in us-east-2 or in us-east-1. There you can also try models that in us-east-2 only exist with a cross-Region profile, such as Amazon Nova 2 Lite (us.amazon.nova-2-lite-v1:0).
Next
- Getting started: https://docs.aws.amazon.com/bedrock/latest/userguide/getting-started.html
- cloud path practice exams: /examenes?lang=en