AI

AWS Bedrock vs Azure AI Foundry vs Vertex AI (2026)

One application, three clouds, and the model bill still comes back different. AWS Bedrock, Azure AI Foundry and Vertex AI on Google Cloud now sell overlapping catalogs of the same frontier models. The real decision has moved from which models you can get to where identity, agents, RAG and guardrails live, what a reserved-capacity commitment buys, and how each platform meters the same tokens.

Original content from computingforgeeks.com - post 186319

We built a small streaming benchmark harness against Bedrock and Vertex AI in November 2026 and ran the same three prompt families on the cheapest and flagship models of each cloud. Every market figure below carries its source and date. Azure we covered from the Microsoft documentation and the official Azure Retail Prices API, because our lab held no Azure account. Where a model refused our trial accounts, we recorded the refusal as a finding.

The comparison runs verdict first, then catalogs, pricing, commitments, regions, quotas, agents, RAG, fine-tuning, networking and SDKs. Whether you arrived from a search for bedrock vs vertex ai, aws bedrock vs azure ai foundry or azure ai foundry vs vertex ai, the same evidence settles it, closing with what we measured in both accounts.

Who should pick which platform

The honest answer depends less on benchmarks than on where your data and identity already live, because you can buy the same Claude or GPT tokens on all three. Here is how we would place teams as of November 2026:

  • Deep AWS shops: Bedrock. It is the only one of the three whose catalog spans every major frontier lab plus the Amazon Nova family, and Amazon told investors on its Q3 2026 call that Bedrock token volume grew nearly 17 times, with AWS reaching a $184 billion annualized run rate in the same quarter’s press release (October 29, 2026; Data Studios report of the call, earnings release). Its cross-region inference profiles give you EU or global residency without moving your endpoint, and IAM, CloudTrail and PrivateLink mean your existing governance stack works on day one.
  • Microsoft and OpenAI shops: Foundry. If your tenancy runs on Entra ID and your team lives in the Azure OpenAI SDK, the v1 OpenAI-compatible endpoint, hosted agents and Azure AI Search are the shortest path. Microsoft said on its FY2027 Q1 call that it now has over 120,000 Foundry customers with revenue more than tripling year over year (Motley Fool transcript, October 29, 2026).
  • Gemini and BigQuery shops: Vertex AI, renamed the Gemini Enterprise Agent Platform in 2026. If your warehouse is BigQuery and you want the in-house Google models with grounding against Google Search, this is the only door. Alphabet’s Q3 2026 earnings remarks on October 28, 2026 said Google Cloud revenue grew 103% (Alphabet Q3 2026 CEO remarks).
  • Multi-model and cost-sensitive teams: all three now ship an OpenAI-compatible endpoint, so an abstraction layer at the SDK boundary costs little. Bedrock’s catalog is the widest (215 models in our console count). Foundry sells the cheapest budget tier we found, GPT-6-luna at $0.10 per million input, and Vertex halves its own flash list price while the promo runs.
  • Regulated industries: all three can hold data in-region, but the mechanisms differ enough to matter. Bedrock routes cross-region inside a geography through CRIS profiles, Foundry confines processing with Data Zone deployments, and Vertex prices its global endpoint about 10% under its multi-region ones. Whichever you pick, expect the residency option to cost extra: a flat 10% over the global meter on Bedrock and Vertex, and 10 to 20% on Foundry’s Data Zone input meters.

If none of those describes you, the deciding factor is usually agents and RAG, not tokens. That is where the platforms diverge hardest, and the next table compresses the differences we verified this month.

The comparison at a glance

DimensionAWS BedrockAzure AI FoundryVertex AI (Gemini Enterprise Agent Platform)
Catalog breadth215 models, 19 providers in our console countDocs claim 10,000+ across providers and community; OpenAI family deepestGemini family plus partner models (Claude, Llama, Mistral, DeepSeek, Grok, Qwen)
First-party modelNova 2 family; Nova 2 Pro still previewGPT-6 family sold by Azure; MAI models first-partyGemini 4 Argon flagship, 3.8 Flash
Claude accessGlobal CRIS profiles; batch N/A on the 5.5 generationMarketplace offer, billed separately from your Azure metersPartner model, global endpoint, same list price as Bedrock
Residency mechanismGeo and In-region CRIS, +10% over GlobalData Zone and Regional deployments, 10-20% over GlobalMulti-region endpoints, ~10% over global since July 2026
Batch discount50% where supportedGlobal Batch 50%50% on Gemini; stacks with caching to 95% on Gemini 3+
Reserved capacityService tiers plus Provisioned Throughput, hourly unitsPTU at $1.00/hour global, 1-month and 1-year reservationsProvisioned Throughput per GSU-hour, 1-week to 1-year terms
Quota modelPer-model TPM in the service quotas reference7 subscription-wide tiers since May 2026Spend-based Standard PayGo tiers keyed to 30-day spend
AgentsAgentCore (Agents Classic in maintenance)Foundry Agent Service, hosted and voice agentsAgent Runtime and Agent Builder
RAGKnowledge Bases on OpenSearch ServerlessAzure AI Search, separate SKUAgent Search plus RAG Engine
Private accessPrivateLink interface endpoints, FIPS variantsPrivate Link plus VNet injectionVPC Service Controls plus Private Service Connect

Two rows carry the most money. Claude access differs structurally: on Bedrock and Vertex it is a first-class metered model, while on Foundry it arrives as a marketplace offer with separate billing. That matters when your finance team wants one invoice. The residency row repeats across all three platforms: a geographic guarantee costs about 10% more than global routing everywhere, so the choice is about mechanism, not price.

Architecture diagram of one application calling three managed model platforms: the Bedrock runtime endpoint and cross-region profiles in an AWS account, a Foundry project endpoint in an Azure tenant, and the global aiplatform endpoint in a Google Cloud project, each with its own Agent Runtime, RAG and model catalog

The picture above is the whole argument in one frame. Your application code sits outside all three clouds and speaks a nearly identical contract to each endpoint. Everything that makes the platforms different lives inside the account boundary: the identity model, the agent runtimes, the RAG stores and the model catalogs. Port the endpoint, and you keep the code but rebuild everything behind it.

Model catalogs and first-party stakes

The Bedrock catalog is the widest of the three by our count. The console in eu-west-1 showed 215 models, with the Serverless tab carrying 72 of them. The model cards page lists 19 providers from AI21 and Amazon through Writer and xAI, and the Anthropic provider filter alone narrows the list to 14. That breadth is real inventory, not marketing. In the same console the Kimi K3.1 card sits next to GPT-6.1, Claude Haiku 5.5, GLM 5.3, Grok 4.7 and Claude Sonnet 5.5. Menlo Ventures’ 2026 report, published November 3, puts Anthropic at 55% of enterprise LLM API spend and OpenAI at 31%, so the ability to serve both labs on one endpoint is a genuine commercial argument (Menlo Ventures, The State of Enterprise AI, 2026).

Amazon Bedrock Model catalog in eu-west-1 with the Serverless tab open, showing 215 models and provider filters for Anthropic, OpenAI, Moonshot AI and others
  1. 1Serverless tab
  2. 2Anthropic provider filter
  3. 3Kimi K3.1 card

The Foundry catalog story is different in kind. The Microsoft docs claim more than 10,000 models across providers and the community, but the models “sold by Azure” are the OpenAI family plus the in-house MAI line. Everything else, Claude included, is a partner or community model billed through Azure Marketplace. That two-track structure matters for procurement more than for engineering, because a marketplace entitlement is another approval and sometimes another billing relationship. GPT-6 models on Foundry also bill in two context tiers, ShortCo and LongCo, which is worth knowing before a long-context workload triples your input rate.

The Vertex catalog is the most first-party-weighted. The Gemini family runs from the flagship Gemini 4 Argon, with 1M-token output, down to 3.8 Flash. The partner-models page sells Claude, Llama, Mistral, DeepSeek, Grok, Qwen, Kimi and GLM as managed APIs at prices that largely match Bedrock. Independent benchmarks currently favor the Gemini 4 family: Artificial Analysis scored Gemini 4 Carbon at 59 on Intelligence Index v5, the top result of the current generation, when it published its review on October 28, 2026 (Artificial Analysis).

We confirmed both sides of that catalog from our own lab project. The publisher models API, which is what the Model Garden console page is backed by, listed the Anthropic partner models from claude-haiku-4-5 through claude-fable-5 and, under the google publisher, the gemini-3.8-flash and gemini-4-argon entries our benchmark used:

Terminal session listing the Vertex AI Model Garden catalog through the publisher models API, showing Anthropic Claude partner models from claude-haiku-4-5 through claude-fable-5 and the Gemini 3.8 Flash and Gemini 4 Argon entries under the google publisher

Listing is one thing and serving is another, which is exactly where our trial hit the wall: the same Anthropic models appeared in the catalog but refused to serve on a trial-quota project, a finding the benchmark section picks up.

What the same tokens cost

Where the platforms genuinely overlap on a model, the prices are close to identical. That tells you the labs set the floor and the clouds add little margin. We pulled every figure below from each vendor’s own price tables this month. The Bedrock figures are the US East (N. Virginia) list dated November 6, 2026 on the pricing page, a few points under the EU meters we benchmarked, and the Foundry row comes from the public Microsoft Retail Prices API rather than the JavaScript-walled pricing portal.

ModelBedrock, US East list (per 1M in / out)Foundry (per 1M in / out)Vertex (per 1M in / out)
Claude Sonnet 5.5$2.00 / $10.00 (Global CRIS)Marketplace offer, metered separately$2.00 / $10.00 (global endpoint)
First-party flagshipNova 2 Pro preview $1.375 / $11.00GPT-6.1-sol ShortCo $2.00 / $10.00, LongCo $4.00 / $15.00Gemini 4 Argon promo $2.00 / $10.00, rising to $4.00 / $20.00 on December 1
Budget tierNova 2 Lite $0.33 / $2.75GPT-6-luna ShortCo $0.10 / $0.50Gemini 3.8 Flash promo $0.75 / $3.75, rising to $1.50 / $7.50 on January 1
Open weightsgpt-oss-120b $0.15 / $0.60; Llama 4 Scout $0.17 / $0.66GPT family focus; open models via partnersgpt-oss-120b $0.09 / $0.36; Llama 4 Scout $0.25 / $0.70
Cached inputSonnet 5.5 cache read $0.10 (halved October 2026)Cached input ~10% of the input meterArgon cached input $0.10 promo; implicit caching 90% off by default

Three things in that table will move a real invoice:

  • The promo clock: the Vertex headline prices are time-boxed. The Gemini 4 Argon $2.00/$10.00 holds only through November 30, and the 3.8 Flash promo through December 31, so any budget modeled on today’s prices doubles when the promo lapses.
  • Cache behavior: the discounts stack differently. Bedrock charges explicit cache-write and cache-read rates, Foundry meters cached input at roughly a tenth of the input price, and Vertex runs implicit caching by default at 90% off. A workload with a large stable system prompt can halve its effective input cost on any of the three, but only if you structure prompts so the cache actually hits.
  • Hidden output tokens: the cheapest headline price is rarely the cheapest run, because thinking models bill output tokens you never see. Our benchmark below caught this in the wild.

Batch, reservations and committed capacity

Batch pricing has converged completely: all three platforms sell batch inference at 50% of the on-demand rate.

The spending behind all three is still climbing. Synergy Research Group’s Q3 2026 release (October 29, 2026) put quarterly cloud infrastructure revenues at $168 billion, up an unprecedented 55% year over year (Synergy Research Group). The differences are in the fine print. On Bedrock, the 50% applies wherever a model supports batch, and notably the newest Claude generation does not, since the pricing tables mark batch N/A for the 5.5-generation Claude models.

Vertex goes furthest on stacking: batch at 50% plus implicit caching at 90% off yields 95% off cached input tokens on Gemini 3 and newer models, and its batch jobs accept up to 200,000 requests with roughly 24-hour turnaround. Foundry’s Global Batch halves the standard price across the GPT family, and Flex processing gives you a similar half-price tier for non-urgent online traffic.

Committed capacity is where the platforms diverge in shape:

  • Bedrock: four service tiers (Reserved, Priority, Standard, Flex) plus classic Provisioned Throughput billed per model-unit hour. Reserved capacity is priced per 1K input and output TPM with 1-month or 3-month terms and a 99.5% uptime target, overflowing to Standard. One trap we verified in the docs: inference profiles don’t support Provisioned Throughput, so a CRIS-routed workload cannot sit on a PT commitment.
  • Foundry: PTUs at $1.00 per hour on the global meter from the Retail Prices API, with Data Zone around $1.10 to $1.20, plus Azure Reservations on 1-month or 1-year terms and spillover to pay-per-token when you exceed the reservation.
  • Vertex: Provisioned Throughput priced per GSU-hour, from $7.14 on a 1-week commitment down to $2.74 on a 1-year term at the global endpoint, with each model burning its GSUs at a published tokens-per-second rate.

We’d model committed capacity only once monthly spend on a single model family passes roughly $5,000, because below that the tier discounts rarely beat the flexibility of pay-per-token with batch and caching. The exception is a compliance-driven floor. If an SLA requires dedicated capacity, all three can sell it to you, and the Bedrock commitment is the one we verified as covering fine-tuned models, which its docs make mandatory for custom models anyway.

Regions, residency and cross-region routing

All three platforms separate where your endpoint lives from where your tokens are processed, and each prices that separation at about a 10% premium. Bedrock is the most explicit: a model ID prefix selects the routing scope, with eu. prefixes routing inside European regions, global. routing to any commercial region, and plain regional IDs staying in-region. The docs state there’s no additional routing cost for cross-region inference beyond the region you call from, and CloudTrail records the serving region in the event data. That event field is what an auditor will ask for.

The same docs carry a residency trap we verified: Claude Sonnet 5.5 and Haiku 5.5 have no single-region invocation anywhere, only global CRIS profiles. An EU residency requirement on those specific models is not satisfiable on Bedrock today. Plan around it by pinning the workload to Claude models that do offer Geo profiles, or to Nova and the other providers.

Bedrock system-defined inference profiles in eu-west-1, with EU Amazon Nova 2 Lite routing to six European regions
  1. 1System-defined tab
  2. 2CRIS profile ID
  3. 3Six EU routing regions

The screenshot above is the console view we worked from: the System-defined tab under Inference profiles, the CRIS profile ID for eu.amazon.nova-2-lite-v1:0, and the six EU routing regions the profile fans out to. Foundry handles the same problem with deployment types. A Global deployment routes anywhere for capacity, a Data Zone deployment confines processing to a listed zone such as the EU data boundary, and a Regional deployment keeps everything in the resource’s geography. Each step up costs roughly 10 to 20% in the meters we pulled, more on the token meters than on the PTU rate.

The Vertex mechanism is the endpoint itself: a single-region URL, multi-region URLs that constrain processing to the US or EU, and a global endpoint that routes worldwide at the lowest price. Since July 2026, Google prices the non-global endpoints about 10% above global for Gemini 3 and newer models, which puts all three vendors on the same premium. Our lab ran on the global endpoint for exactly this reason: same models, lowest meter.

Quotas and rate limits

This is the least glamorous section and the one most likely to page you at 2 a.m. The three vendors have converged on spend-linked quota tiers, but the mechanisms differ enough that a workload migrating between them will not carry its headroom across. Bedrock publishes per-model TPM in its service quotas reference, with cross-region profiles carrying their own higher limits: Claude Opus 5.5 gets 30 million cross-region TPM versus 15 million on-demand, and Nova 2 Lite carries 8 million cross-region TPM. Foundry moved to seven subscription-wide quota tiers in May 2026, where a tier-1 default for gpt-6 is 250K TPM at 250 RPM while gpt-4.1 gets 1 million TPM.

Vertex retired its fixed per-model table in favor of Standard PayGo tiers keyed to your organization’s rolling 30-day spend. At the entry tier that means 500,000 TPM for Pro and Argon models and 2 million TPM for Flash, rising twenty-fold and twenty-five-fold at the top tier. We hit the practical edge of this model during the benchmark: 12 of our 48 Gemini attempts on the trial project returned HTTP 429 RESOURCE_EXHAUSTED, about a quarter, spread across both models and all prompt families. Bedrock returned zero errors across 30 attempts.

The Google docs describe these 429s as temporary contention on shared capacity rather than a fixed quota, which is accurate but not comforting when your p99 depends on it. Production projects with real spend move up the tiers and see far less of this. The architectural lesson is the same on all three platforms: quota behavior under burst is part of the product, and retry with backoff is not optional middleware.

Agents, RAG and guardrails

The managed-agent layers are where the three platforms have invested most in 2026, and they are the least portable part of any of them. Bedrock retired its original Agents service into “Agents Classic” maintenance mode and moved new development to AgentCore. AgentCore spans a managed agent loop, a session-isolated serverless runtime, memory, an MCP gateway for your existing APIs, identity, code execution, browser automation and even agent payments. We walked the AgentCore command-line workflow end to end in our Amazon Bedrock AgentCore CLI guide. Its framework-agnostic design (any model, any framework, MCP and A2A protocols) is the closest thing to a portable agent substrate among the three.

Foundry Agent Service is the most productized of the three. It offers prompt agents built on the Responses API, voice-based agents, hosted agents that run in a Microsoft-managed sandbox, and Toolboxes that wrap your tools as managed MCP servers. Vertex answers with Agent Runtime (formerly Agent Engine) for deploying containerized agents, Agent Builder for the assembly layer, and a managed RAG Engine, all with full ADK integration and A2A support. All three now treat MCP as table stakes, which is the one genuinely portable piece. Your agent’s tool definitions travel; its runtime does not.

RAG pricing is where hidden costs live, and the structures differ enough to change architecture. Bedrock Knowledge Bases charge $5.00 per GB-month for the OpenSearch Serverless index, $1.00 per 1K standard retrieval queries and $4.00 per 1K for agentic retrieval. Agent Search on Vertex starts at $1.50 per 1K queries on the Standard edition and $4.00 on Enterprise, with grounding against Google Search at $14 per 1K queries for Gemini 3 and 4 models after 5,000 free monthly queries. The Foundry retrieval layer is Azure AI Search, a separate service with its own SKU pricing rather than a per-query model meter.

Guardrails converge on capability while diverging on shape. Bedrock sells six policy types plus formal Automated Reasoning checks at $0.17 per 1K. Foundry ships content filtering with four severity levels plus Prompt Shields, and fully disabling filters requires Microsoft approval. Google’s Model Armor runs $0.10 per additional million tokens after 2 million free monthly. On all three, the filter layer is cheap relative to the tokens it protects, so there is rarely a cost argument against turning it on.

Fine-tuning and custom weights

If fine-tuning a frontier model is the goal, none of the three will let you. Claude is not fine-tunable on any of them, because the frontier Anthropic models are marketplace or partner offerings everywhere. Gemini tuning is limited to specific tiers, and Foundry tunes only the OpenAI models Microsoft has enabled. What the platforms do offer is supervised fine-tuning of smaller models and, on Bedrock, full weight import.

Custom Model Import on Bedrock takes Hugging Face-format weights from S3 up to 200 GB for text models and serves them on demand or on provisioned throughput. That is the only fully managed path of the three for running your own pretrained weights as an API. Vertex sells SFT across the Gemini 2.x and 3.5 Flash-Lite tiers plus open models, with training from $0.003 per 1K tokens on 3.5 Flash-Lite and tuned endpoints costing 1.5x base on non-global endpoints. The Foundry fine-tuning prices from the Retail API run $27.50 per 1M training tokens for GPT-4.1, or $12.50 on the 24-hour Developer deployment type.

The practical split we’d draw: most teams that think they need fine-tuning actually need RAG plus prompt caching, which all three provide, plus the evaluation tooling to prove it. Bedrock and Vertex both ship LLM-as-judge evaluation with custom metrics, and Foundry has the azure-ai-evaluation SDK with agentic evaluators. All three can score outputs from models hosted elsewhere if you bring your own inference data. Reserve fine-tuning for the cases where retrieval genuinely cannot express the behavior, and budget for the benchmark harness to prove the tuned model beats the prompted one.

Private networking and identity

Each platform keeps model traffic inside your network boundary through its native private-access mechanism. On Bedrock you create PrivateLink interface endpoints for the runtime, mantle and agent services, with FIPS variants in supported regions. The AWS data-protection docs describe per-provider model deployment accounts that isolate deployed models so providers have no access to customer prompts or logs, and Anthropic states the same in stronger words, claiming zero operator access to the inference infrastructure.

Vertex uses VPC Service Controls to fence the whole platform, with Private Service Connect offering a restricted VIP for on-premises routes. One gotcha is worth planning around: Agent Runtime provides no internet egress, so agents that need external APIs require a proxy VM you deploy. Foundry gives the account a private endpoint in your VNet, supports VNet injection for agent resources, and authenticates everything through Microsoft Entra ID with DefaultAzureCredential, which is the natural choice if your tenancy already runs on it.

Identity is the real switching cost. Bedrock wants IAM roles and policies, Foundry wants Entra service principals, Vertex wants Google service accounts with workload identity federation for CI. None of these map cleanly onto each other, so a multi-cloud deployment ends up maintaining three identity stacks for the same application. That is usually a stronger argument for picking one platform than any per-token price difference will ever be.

SDKs and the OpenAI-compatible path

All three platforms now expose OpenAI-compatible endpoints, so a thin abstraction at the client boundary gets you portability for the plain chat case. The demand is not in question: Stack Overflow’s 2025 Developer Survey, released July 29, 2025, found 84% of developers using or planning to use AI tools in their development process (Stack Overflow Developer Survey 2025, release post). Bedrock serves the OpenAI Chat Completions and Responses APIs on two endpoints. The runtime endpoint at bedrock-runtime.{region}.amazonaws.com/openai/v1/ authenticates with SigV4 or a Bedrock API key, and the newer mantle endpoint at bedrock-mantle.{region}.api.aws/v1/ additionally carries stored responses and background inference. Vertex serves the same contract at aiplatform.googleapis.com/v1/projects/{project}/locations/{location}/endpoints/openapi, and the Foundry v1 endpoint at https://{resource}.openai.azure.com/openai/v1/ is the native shape for the OpenAI SDKs.

The native APIs remain richer. The Converse API on Bedrock carries per-provider guardrail headers and prompt routing, the google-genai SDK on Vertex handles thinking budgets and grounding, and the Responses integration on Foundry is what its hosted agents build on. For CLI-driven workflows the platforms fade into the model layer: coding agents such as Claude Code sit on top of these endpoints. We keep our working notes in the Claude Code cheat sheet and a fuller comparison in OpenCode vs Claude Code vs Cursor vs Codex CLI. The same pattern applies to platform choice: the endpoint contract is portable, the managed capabilities around it are not.

Bedrock vs Vertex AI: what we measured in both accounts

The shared-model test came first, and both clouds refused it. Our Bedrock lab account held an enablement request for Claude Sonnet 5.5 that never completed: the console showed the request and the API kept returning AccessDeniedException. Our Vertex trial project could see the Claude partner models in Model Garden but could not invoke one. So the like-for-like comparison we planned became a first-party comparison instead, which is arguably more useful, because these are the models each platform pushes you toward by default. We kept the refusal outputs as evidence:

Terminal session showing the shared Claude model refused on both clouds: an AccessDeniedException from the Bedrock account and a 404 model-not-found response from the Vertex trial project

The harness itself is deliberately small. Three prompt families (an explanation, a debugging triage, a code-generation task) went to each model. On Bedrock, Nova 2 Lite and Kimi K3.1 streamed five runs per family in one run set through the Converse streaming API. On Vertex, the two Gemini models took 48 attempts between them through streamGenerateContent (30 for Argon, 18 for Flash), split across two run sets about an hour apart. Time to first token and total latency come from wall-clock timing around the stream, and tokens and cost come from each response’s own usage block at that day’s list prices. The measurement loop on Bedrock looks like this:

import boto3, time

brt = boto3.client('bedrock-runtime', region_name='eu-west-1')

t0 = time.perf_counter()
ttft = None
stream = brt.converse_stream(
    modelId='eu.amazon.nova-2-lite-v1:0',
    messages=[{'role': 'user', 'content': [{'text': prompt}]}],
    inferenceConfig={'maxTokens': 512, 'temperature': 0.2},
)
for ev in stream['stream']:
    if 'contentBlockDelta' in ev:
        if ttft is None:
            ttft = time.perf_counter() - t0
    elif 'metadata' in ev:
        usage = ev['metadata']['usage']

And the Vertex side differs mainly in configuration, because 3.8 Flash is a thinking model and burns output tokens on hidden reasoning unless you switch the thinking budget off. Argon is the opposite case: it rejects thinkingBudget with HTTP 400 (“Thinking budget is not supported for this model. Use thinking level instead”), so the setting goes on Flash only. The harness calls the REST streamGenerateContent endpoint directly with an access token from gcloud, and this is the script exactly as we ran it, with the project read from your gcloud config:

import json, os, statistics, subprocess, sys, time, urllib.request

PROJECT = os.environ['PROJECT_ID']
PRICES = {'gemini-4-argon': (2.00, 10.00), 'gemini-3.8-flash': (0.75, 3.75)}
PROMPTS = {
    'explain': 'Explain how a Linux kernel OOM killer picks its victim, in about 300 words.',
    'debug': 'A systemd service exits with status 203/EXEC right after a deploy. List the likely causes and the command that confirms each one.',
    'codegen': 'Write a Python function that retries an HTTP GET with exponential backoff and jitter, with type hints.',
}
RUNS = int(sys.argv[1]) if len(sys.argv) > 1 else 2

token = subprocess.check_output(['gcloud', 'auth', 'print-access-token'], text=True).strip()


def run(model, prompt):
    url = (f'https://aiplatform.googleapis.com/v1/projects/{PROJECT}/locations/global/'
           f'publishers/google/models/{model}:streamGenerateContent?alt=sse')
    body = {
        'contents': [{'role': 'user', 'parts': [{'text': prompt}]}],
        'generationConfig': {'maxOutputTokens': 2048, 'temperature': 0.2},
    }
    if 'flash' in model:
        body['generationConfig']['thinkingConfig'] = {'thinkingBudget': 0}
    req = urllib.request.Request(url, data=json.dumps(body).encode(), method='POST',
                                 headers={'Authorization': f'Bearer {token}',
                                          'Content-Type': 'application/json'})
    t0 = time.perf_counter()
    ttft, usage = None, {}
    with urllib.request.urlopen(req, timeout=120) as resp:
        for raw in resp:
            line = raw.decode().strip()
            if not line.startswith('data:'):
                continue
            chunk = json.loads(line[5:])
            if ttft is None and chunk.get('candidates'):
                ttft = time.perf_counter() - t0
            usage = chunk.get('usageMetadata', usage)
    total = time.perf_counter() - t0
    tin, tout = usage.get('promptTokenCount', 0), usage.get('candidatesTokenCount', 0)
    pin, pout = PRICES[model]
    cost = (tin * pin + tout * pout) / 1e6
    return ttft, total, tin, tout, tout / (total - ttft), cost


print(f'{"model":<17}{"prompt":<9}{"run":>3}{"ttft_s":>8}{"total_s":>9}{"in":>5}{"out":>6}{"tok/s":>8}{"cost_usd":>10}')
for model in PRICES:
    for name, prompt in PROMPTS.items():
        rows = []
        for i in range(1, RUNS + 1):
            try:
                r = run(model, prompt)
            except urllib.error.HTTPError as e:
                print(f'{model:<17}{name:<9}{i:>3}  HTTP {e.code} {e.reason}')
                continue
            except TimeoutError:
                print(f'{model:<17}{name:<9}{i:>3}  no response in 120 s')
                continue
            rows.append(r)
            ttft, total, tin, tout, tps, cost = r
            print(f'{model:<17}{name:<9}{i:>3}{ttft:>8.3f}{total:>9.2f}{tin:>5}{tout:>6}{tps:>8.1f}{cost:>10.5f}')
        if rows:
            print(f'{"":<17}{"median":<9}{"":>3}{statistics.median(r[0] for r in rows):>8.3f}'
                  f'{statistics.median(r[1] for r in rows):>9.2f}')

On Bedrock, Nova 2 Lite through the EU cross-region profile was in a different latency league from everything else we tested. Median time to first token came in at 0.452 seconds on the explanation prompt, 0.465 on debugging and 0.453 on code generation, with output streaming at 127 to 165 tokens per second. Each run cost between $0.00101 and $0.00150:

Terminal session streaming Nova 2 Lite through the Bedrock Converse API in eu-west-1, with median time to first token of about 0.45 seconds across three prompt families

The same model answered interactively in the chat playground, and the console’s own meter agrees with our harness. We left the model selector on Nova 2 Lite, pressed the Run button, and the response footer’s token counts and latency line reported 112 input and 164 output tokens at 1,050 milliseconds:

Bedrock chat playground answering a cross-region inference profile question with Nova 2 Lite, showing input and output token counts and 1050 ms latency
  1. 1Model selector
  2. 2Token counts and latency
  3. 3Run button

Kimi K3.1 on the Bedrock global profile was slow to start. Its median TTFT sat at 4.005 seconds on explanations, and once the first token arrived the rest of the response came almost all at once. Its 825 to 1,234 output tokens per second therefore reflect how the stream was chunked, not how fast the model generates, so don’t compare them with the streamed rates from Nova or Argon.

Its cost per run ran about eight times the Nova figure at $0.008, partly because the model hit its 512-token output cap on every single run, a cap Nova’s and Argon’s debugging runs also touched. The terminal capture shows one of those runs:

Terminal session streaming Kimi K3.1 through the Bedrock Converse API with the global cross-region profile, showing about 4 seconds to first token and roughly 850 output tokens per second

The Vertex results need two caveats before the numbers. The 429 contention described above removed about a quarter of Gemini attempts from the clean set, and two Argon runs hit server-side queueing (one 64-second, one 31-second TTFT) that we excluded as outliers rather than medians.

Within the clean runs, Gemini 4 Argon medians sat at 3.148 seconds TTFT on explanations, 3.512 on debugging and 3.458 on code generation, at 48 to 83 output tokens per second and $0.00169 to $0.00524 per run.

Gemini 3.8 Flash with thinking disabled was the strangest result in the set. Its median TTFT was 6.097 seconds on explanations and 13.248 on debugging. On the code-generation prompt the whole response landed in one burst (median TTFT 6.185 seconds against 6.28 seconds total), so its 1,057 tokens per second is a buffering artifact rather than a generation speed. A model that plans briefly before answering, even with the thinking budget off, pays a queueing tax on shared trial capacity that the Nova model on Bedrock simply did not exhibit.

To show the Vertex side in the same form as the Bedrock captures, we ran the script above again on November 11, 2026, two runs per family, from a second Google Cloud trial project and with the output cap raised to 2,048 tokens. These runs are a spot check, so they are not part of the medians in the table below. Flash came in at 1.8 to 2.6 seconds to first token this time. Argon queued again: it took 68 to 119 seconds to first token on three of its six calls and gave no response at all inside 120 seconds on a fourth:

Terminal session running vertex_bench.py against Vertex streamGenerateContent on the global endpoint, printing time to first token, total time, input and output tokens, tokens per second and cost per run for Gemini 4 Argon and Gemini 3.8 Flash on three prompts

The costs line up with the list prices: about $0.0017 for a 450-token Flash answer and about $0.0046 for an Argon answer of the same length. Argon’s queueing, on the other hand, came back on a different project two days later, so treat it as how Argon behaves on trial capacity rather than a one-off.

ModelPrompt familyClean runsMedian TTFTMedian totalOutput tok/sCost per run
Nova 2 Lite (eu CRIS)explain50.452 s3.45 s127$0.00101
Nova 2 Lite (eu CRIS)debug50.465 s4.20 s137$0.00150
Nova 2 Lite (eu CRIS)codegen50.453 s2.73 s165$0.00109
Kimi K3.1 (global)explain54.005 s4.72 s825$0.00801
Kimi K3.1 (global)debug54.478 s4.91 s885$0.00802
Kimi K3.1 (global)codegen54.373 s4.78 s1,234$0.00803
Gemini 4 Argonexplain73.148 s9.71 s48$0.00333
Gemini 4 Argondebug73.512 s12.05 s65$0.00524
Gemini 4 Argoncodegen73.458 s5.46 s83$0.00169
Gemini 3.8 Flashexplain46.097 s8.72 s93$0.00109
Gemini 3.8 Flashdebug513.248 s15.91 s169$0.00210
Gemini 3.8 Flashcodegen56.185 s6.28 s1,057$0.00070

Plotted per prompt family, the median time to first token separates the two clouds more clearly than the table does:

🔴 Live TV: bedrock vs azure ai foundry vs vertex ai - Pertandingan Hari IniNova 2 Lite on Bedrock answers in under half a second on every prompt, while the three Vertex models sit between 3 and 13 seconds and flash is the slowest to first token on the debug prompt.02468101214median TTFT (s)Kimi K3.1Nova 2 Litegemini-3.8-flashgemini-4-argoncodegendebugexplainprompt familycodegendebugexplainprompt familycodegendebugexplainprompt familycodegendebugexplainprompt familyBedrockVertex🔴 Live TV: bedrock vs azure ai foundry vs vertex ai - Pertandingan Hari IniNova 2 Lite on Bedrock answers in under half a second on every prompt, while the three Vertex models sit between 3 and 13 seconds and flash is the slowest to first token on the debug prompt.02468101214median TTFT (s)Kimi K3.1Nova 2 Litegemini-3.8-flashgemini-4-argoncodegendebugexplainprompt familycodegendebugexplainprompt familycodegendebugexplainprompt familycodegendebugexplainprompt familyBedrockVertex
Median time to first token by prompt family

Read the chart as a capacity story, not a model-quality story. The budget model on Bedrock answered from a cold EU cross-region route in under half a second, while the flagship and flash models on Vertex queued for seconds on shared trial capacity. On any production account with paid tiers, those Vertex medians would tighten considerably, and that is the honest caveat to carry out of this section. What the numbers do establish is platform behavior at the entry point every team actually starts from: a fresh account, list prices, no reservations.

Where each platform still bites

Every platform we tested carried at least one trap worth naming before you commit:

  • Bedrock: the Claude enablement queue and the batch gap on its newest generation. If your workload assumes day-one Claude access or half-price Claude batch, verify both against your account before you architect around them.
  • Vertex: the promo clock plus shared-capacity contention on entry accounts. Together they make the headline prices look better than a December invoice will.
  • Foundry: structural rather than operational. The models your finance team will care most about (Claude, and anything on the partner track) bill outside your normal meters, so cost attribution needs the marketplace ledger, not the Azure bill alone.

The scaling path we’d recommend is the same on all three, because the pricing structures have converged even where the services have not. Start on-demand with batch and caching tuned. Move a stable workload to committed capacity only when a single model family’s monthly spend justifies the discount. Keep the agent and RAG layers behind your own interfaces so a future migration replaces a runtime rather than a product.

Teams certifying on these platforms tend to prepare from our roundups of AWS certification preparation books and Google Cloud certification preparation books, but the skill that actually transfers between Bedrock, Foundry and Vertex is narrower than any exam. It is the ability to read a quota table and a price meter and know which one will page you first.

References

Keep reading

Open Source LLM Comparison Table (2026) AI Open Source LLM Comparison Table (2026) Ollama Models Cheat Sheet: Best Models by VRAM, Tested (PDF) AI Ollama Models Cheat Sheet: Best Models by VRAM, Tested (PDF) OpenCode CLI Cheat Sheet: Commands, Sessions and Fixes (PDF) AI OpenCode CLI Cheat Sheet: Commands, Sessions and Fixes (PDF) Install InvokeAI 7 on Linux with NVIDIA: Tested VRAM per Model AI Install InvokeAI 7 on Linux with NVIDIA: Tested VRAM per Model Install openSUSE with Claude Code: Agama MCP Server Tested AI Install openSUSE with Claude Code: Agama MCP Server Tested How To Rename IAM User name on AWS AWS How To Rename IAM User name on AWS

Leave a Comment

Press ESC to close