Amazon Bedrock vs OpenRouter: Which One Should You Use?
Amazon Bedrock vs OpenRouter for beginners: both put many AI models behind one API, but Bedrock runs them inside your AWS account (IAM permissions, AWS logs and bill) while OpenRouter is a separate company that forwards your request to whichever provider hosts the model (one key, hundreds of models, fallbacks when one is busy). Real calls: OpenRouter's free models, a real 429 and a fallback, and Bedrock's Converse request on Floci, a local AWS emulator.
Two doors
Your app needs AI models. Two ways in: Amazon Bedrock, and OpenRouter. Two questions decide it: where may your data go, and how many models will you try?

Dave is building an AI assistant for the mechanics at a small airplane hangar. Its records run on AWS, and can't go just anywhere. Beth, the owner, asks: which door?

First, what they share. Each one is a gateway: your app sends one request, and the gateway hands it to a model, from makers like Anthropic, Meta or Mistral.

Guess first: how many accounts does Dave need? Just one. The gateway holds the accounts with each model maker, and every answer comes back to Dave in the same format.

The difference is who runs the gateway. Amazon Bedrock is an AWS service: the models run inside AWS, and you reach them through your AWS account. OpenRouter is a separate company. It forwards your request to a provider, the company whose computers actually run the model. So there's one more company in the middle.

Think of how the hangar orders parts. The airport's parts counter bills the hangar's account, under the airport's rules. A parts broker can get a part from almost any supplier, on one invoice, but now there's a broker in between.
One key, any model
How much work is it to call a model through OpenRouter, and who actually answers? The request is a small file: the model, written as maker, slash, model, and the question. He sets the web address, and attaches his OpenRouter key, a secret string that proves the request is his. It stays in a variable, never on screen. Then he sends it with curl, a tool for web requests. The reply says who answered: Baidu's free model.
cat ask.json{ "model": "baidu/ernie-5.5-flash-preview:free", "max_tokens": 400, "messages": [ {"role": "user", "content": "In two short sentences: why do mechanics use a torque wrench on wheel nuts?"} ] }
OR=https://openrouter.ai/api/v1; H="Authorization: Bearer $OPENROUTER_API_KEY"
curl -s $OR/chat/completions -H "$H" -d @ask.json > reply.json
jq '{model, provider}' reply.json{ "model": "baidu/ernie-5.5-flash-preview:free", "provider": "Baidu" }
Here's the answer itself, about torque wrenches on wheel nuts. And notice the shape of that request: a model, and a list of messages. It's the same shape OpenAI uses for ChatGPT's models, so if you already have code for OpenAI, you only change the address.
jq -r '.choices[0].message.content' reply.jsonMechanics use a torque wrench to tighten wheel nuts to the manufacturer's specified torque, ensuring each nut is secured evenly without being over- or under-tightened. This prevents wheel wobble or loosening and avoids warping the brake rotors or damaging the studs.
How many models sit behind that one address? Dave asks it: 476. To try a different one, he changes one line in the file. Same key, same address, and now Nvidia's model answers.
curl -s https://openrouter.ai/api/v1/models | jq '.data | length'476
diff ask.json ask-switch.json2,3c2,3 < "model": "baidu/ernie-5.5-flash-preview:free", < "max_tokens": 400, --- > "model": "nvidia/nemotron-3.5-lightning:free", > "max_tokens": 600,
curl -s $OR/chat/completions -H "$H" -d @ask-switch.json | jq -r '.model, .provider'nvidia/nemotron-3.5-lightning:free Nvidia
And the bill? This call cost zero, because free models are free. For paid models, you prepay OpenRouter in credits, and it takes five and a half percent when you buy them.
jq '.usage | {prompt_tokens, completion_tokens, cost}' reply.json{ "prompt_tokens": 41, "completion_tokens": 75, "cost": 0 }
Models bill by tokens, small chunks of words, counted in and out. Dave asks OpenRouter's catalog for Claude Sonnet 4.5: three dollars per million tokens in, and fifteen out. The same price Anthropic lists, passed straight through.
curl -s $OR/models | jq '.data[] | select(.id == "anthropic/claude-sonnet-4.5") | .pricing | {prompt, completion}'{ "prompt": "0.000003", "completion": "0.000015" }
That's from OpenRouter's own FAQ: the fee is on buying credits, not on each model's price.

How far does free go? Fifty requests a day, at most twenty a minute. Buy ten dollars of credits once, and it's a thousand a day.

But these are free models, shared by everyone using them. Dave asks Google's free Gemma model the same question. Guess first: an answer, or an error? An error: four twenty-nine, too many requests. Not Dave's limit: the free pool at the provider is shared, and right now it's busy. A real assistant can't just stop there.
curl -s $OR/chat/completions -H "$H" -d @ask-busy.json | jq '.error | {code, message}'{ "code": 429, "message": "Provider returned error" }
So OpenRouter takes a list instead of one model. Gemma first, Baidu's model second. Same request, and this time an answer comes back, from the second model on the list.
jq '.models' ask-fallback.json[ "google/gemma-4-31b-it:free", "baidu/ernie-5.5-flash-preview:free" ]
curl -s $OR/chat/completions -H "$H" -d @ask-fallback.json | jq -r '.model, .provider'baidu/ernie-5.5-flash-preview:free Baidu
OpenRouter's docs say it plainly: if the first model returns an error, it tries the next one.

And that one key is the whole lock. Anyone holding it can spend from Dave's account. So OpenRouter lets you cap each key: Dave's has a limit of zero dollars, which is why only free models answer it.
curl -s $OR/key -H "$H" | jq '.data | {limit, usage}'{ "limit": 0, "usage": 0 }
Your AWS account
Now Bedrock. What changes when the gateway lives inside your own AWS account? First, a note: our lab has no Bedrock account, so Floci, a stand-in that imitates AWS, plays its part. The request is the real Bedrock one, but Floci passes it to a free model, so the words that come back aren't Claude's. There's no OpenRouter key here. Dave signs in as an AWS user, with AWS keys and a region, the group of AWS data centers his requests go to.
aws sts get-caller-identity --query Arn --output textarn:aws:iam::000000000000:user/dave
aws configure listNAME : VALUE : TYPE : LOCATION profile : <not set> : None : None access_key : ****************8G2S : shared-credentials-file : secret_key : ****************x7xG : shared-credentials-file : region : us-east-1 : config-file : ~/.aws/config
Which models can Dave call? Bedrock has its own catalog, listed per region. Floci's copy here lists one Anthropic model, the real one lists more. Many models work on first use, but older Anthropic models first need a one-time form in your account.
aws bedrock list-foundation-models --by-provider anthropic --query 'modelSummaries[].modelId'[ "anthropic.claude-sonnet-4-5-20250929-v1:0" ]
Bedrock names each model with an ID, like this one for Claude Sonnet. The question goes in its own message file. Then one call to Converse, Bedrock's single request shape for every chat model. The answer comes back, with the tokens counted in and out, which is what Bedrock bills you for.
M=anthropic.claude-sonnet-4-5-20250929-v1:0
aws bedrock-runtime converse --model-id $M --messages file://msg.json --inference-config maxTokens=400 > breply.json
jq -r '.output.message.content[0].text' breply.jsonThey use it to tighten wheel nuts to the manufacturer’s exact torque spec, ensuring even clamping force. This prevents loose wheels or over-tightened studs that could damage the wheel or lead to failure.
jq '.usage' breply.json{ "inputTokens": 41, "outputTokens": 88, "totalTokens": 129 }
AWS's guide: Converse works with every Bedrock model that takes messages, and calling it needs one permission: bedrock InvokeModel.

Side by side, the difference is how you prove who you are. OpenRouter wants one key, sent to one web address. Bedrock wants your AWS sign-in, for one region, and a model ID from its catalog. Both answered the same question.

That permission is the point. In a real AWS account, permissions live in IAM. A policy like this one says who may call which model. Here, that's Anthropic's models, in one region. Every call is signed with that user's keys, and AWS can log who called what. The stand-in doesn't check it, so we only show the policy.
cat invoke-policy.json{ "Version": "2012-10-17", "Statement": [{ "Effect": "Allow", "Action": "bedrock:InvokeModel", "Resource": "arn:aws:bedrock:us-east-1::foundation-model/anthropic.*" }] }
There's one more difference here. An app running on AWS doesn't need a stored key at all. It can run under a role, which is AWS's way of granting permissions to the app itself, and AWS hands it short-lived keys that expire on their own. With OpenRouter, the server keeps one long-lived key, and you guard it.

Data and the bill
So here's the first of the two questions: where may your data go? Dave's assistant will see the hangar's maintenance notes. With Bedrock, the question stays inside AWS, under the account Beth already has. With OpenRouter, it travels to OpenRouter, then on to the provider that runs the model. OpenRouter says it doesn't log prompts by default, but each provider has its own rules. Guess first: which is easier to explain to an auditor? Bedrock: one company, one account.

AWS says it directly: the model makers don't get access to your prompts and completions on Bedrock.

The second question: how many different models do you need to try, and how quickly do you want to switch? Bedrock bills per million tokens in and out, on the same AWS bill as everything else. OpenRouter charges the provider's own price, from prepaid credits. What OpenRouter adds is reach: hundreds of models with one key, with free ones to start.

Which one
So, two questions. If your data must stay in AWS, or your company already runs there, use Bedrock. You already know its permissions, its logs and its bill. If you want to try many models fast, switch with one line, or fall back to another model when one is busy, use OpenRouter.

Dave tells Beth: the hangar's records already live in AWS, so the assistant runs on Bedrock. And on his laptop, he keeps OpenRouter for trying new models first.

Recap
So: both are gateways to many models. Bedrock keeps it in your AWS account. OpenRouter gives you every model behind one key, and a fallback when one is busy.

If this made the choice easier, subscribing brings more side-by-sides like it.
The lab files and every command are linked in the description. Thanks for watching Cloud Explainers.
Sources
Demos: Docker containers on our own Mac standing in for a laptop and for Amazon Bedrock (Floci, a local AWS emulator); the hangar and its people are made up. Every command and output was real. Watch the full video on YouTube.