AI Cloud Platforms: Choosing and Comparing Providers
Every major cloud now sells the same four things â hosted frontier models, managed open models, rented accelerators, and the data plumbing around them â and the marketing pages look nearly identical. The differences only surface under your workload: how a provider batches requests, what happens to a GPU while your job queues, how egress and logging are priced, and whether the managed service you depend on can be replaced in a week. Choosing a platform is therefore less about which company is ahead this quarter and more about matching consumption models to traffic shapes, keeping data gravity in check, and knowing precisely what your architecture would cost at ten times today's volume.
Four Ways to Consume AI
Before comparing vendors, decide which consumption model fits. Each trades control against operational effort in a different place.
| Consumption model | You manage | Provider manages | Best fit |
|---|---|---|---|
| Hosted model API | Prompts, evaluation, fallbacks | Models, GPUs, scaling | Variable traffic, small teams |
| Managed endpoints | Traffic policy, tuning | Serving, autoscaling | Steady production with SLAs |
| GPU virtual machines | Serving stack, patching, queueing | Hardware and network | Custom inference, training |
| Platform orchestration | Pipelines, prompts, tools | Retrieval, agents, tracing | Fast assembly of RAG and agents |
The trap is choosing the top row for a workload that belongs in the bottom row, or the reverse. A research team renting clusters to run a batch fine-tune once a quarter is paying for an orchestration platform it will never exercise. A product team hand-rolling a serving stack on virtual machines at three in the morning is doing platform engineering as a hobby while a feature slips.
Managed Endpoints Versus Raw Accelerators
Managed endpoints convert infrastructure uncertainty into a per-token price. You get autoscaling, health checks, patching and usually a prompt cache, and you lose control over batching behavior, quantization choices and the exact model revision. Raw accelerators invert every one of those terms: you choose the weights and the engine, you pay for idle time, and you own the on-call rotation.
The crossover is predictable. At low or spiky utilization, managed endpoints win because someone else absorbs the valleys. As sustained load grows, the marginal cost of a token on dedicated hardware falls below the hosted rate â provided your engineering time is counted at something close to its real cost.
import statistics
def hosted_cost(prompt_tokens, completion_tokens, price_in, price_out):
return prompt_tokens / 1e6 * price_in + completion_tokens / 1e6 * price_out
def dedicated_cost(gpu_price_hr, hours, tokens_per_hr, engineer_hours, rate):
infra = gpu_price_hr * hours
labor = engineer_hours * rate
total = infra + labor
produced = tokens_per_hr * hours
return total, total / max(produced, 1) * 1e6
scenarios = [
("spiky chat (160M tokens/mo)", hosted_cost(120_000_000, 40_000_000, 3.0, 15.0)),
("steady batch (5.7B tokens/mo)", hosted_cost(4_800_000_000, 900_000_000, 3.0, 15.0)),
]
for label, price in scenarios:
print(f"{label:32s} hosted ${price:,.0f}/mo")
infra, per_million = dedicated_cost(gpu_price_hr=2.5, hours=720,
tokens_per_hr=3_000_000,
engineer_hours=60, rate=95)
print(f"{'dedicated two-GPU endpoint':32s} ${infra:,.0f}/mo (${per_million:.2f} per M tokens)")
Note the engineer hours in that calculation. Teams that leave them out consistently conclude that self-hosting is dramatically cheaper, then rediscover the cost when the serving stack needs a security patch during an incident.
Comparing Providers Without the Scoreboards
Provider comparisons degrade quickly into benchmark tables run on setups nobody can reproduce. A more durable comparison examines structure: where models run, how data moves, what the defaults are, and how their operational model feels on your worst day.
| Dimension | What to inspect | Why it matters |
|---|---|---|
| Model access | Frontier APIs plus open weights you can fine-tune | Avoids a rewrite when requirements change |
| Accelerator supply | Quotas, spot options, placement groups | Queue time decides training schedules |
| Data services | Managed vector search, warehouses, streaming | Retrieval architecture follows what exists |
| Networking | Region peering, egress pricing, private links | Cross-service chatty designs get expensive |
| Operations | Tracing, eval hooks, drift alerts | Debugging speed once live |
| Compliance | Certifications, residency, audit logging | Sometimes disqualifies a choice early |
Ask each shortlisted provider to run your pilot workload, not a demo. The information you want â cold start time, tail latency at your concurrency, a realistic monthly invoice â only appears when real traffic flows.
The Bill Nobody Modeled
Inference pricing is the visible line item and rarely the decisive one. Long contexts multiply input cost per request, retries under partial failures inflate token counts, and verbose system prompts can double your bill before a single user question arrives. Around the model sit the charges teams forget: embedding calls for retrieval, reranking models, storage for vectors and traces, log ingestion, cross-region traffic, and egress if you ever leave.
from dataclasses import dataclass, field
@dataclass
class MonthlyBill:
name: str
input_m: float
output_m: float
price_in: float
price_out: float
embedding_m: float = 0.0
embed_price: float = 0.10
storage_gb: float = 0.0
storage_price: float = 0.12
extras: dict = field(default_factory=dict)
def total(self) -> float:
base = self.input_m * self.price_in + self.output_m * self.price_out
base += self.embedding_m * self.embed_price
base += self.storage_gb * self.storage_price
base += sum(self.extras.values())
return base
def breakdown(self) -> dict:
return {
"generation": self.input_m * self.price_in + self.output_m * self.price_out,
"embeddings": self.embedding_m * self.embed_price,
"storage": self.storage_gb * self.storage_price,
**self.extras,
}
current = MonthlyBill("current", input_m=900, output_m=180, price_in=2.5,
price_out=10.0, embedding_m=120, storage_gb=400,
extras={"vector db": 180, "tracing": 95, "egress": 42})
trimmed = MonthlyBill("shorter prompts, cached", input_m=420, output_m=170,
price_in=2.5, price_out=10.0, embedding_m=120,
storage_gb=400, extras={"vector db": 180, "tracing": 95})
for bill in (current, trimmed):
print(bill.name, f"${bill.total():,.0f}", bill.breakdown())
The exercise of itemizing the bill usually reveals that prompt length and caching policy dominate, which are application decisions rather than vendor decisions. Negotiating a discount on generation while shipping an untruncated context window optimizes the smaller number.
Portability and Exit Plans
Lock-in in AI arrives in three flavors: proprietary model behaviors your prompts have adapted to, data formats such as vector indexes and trace stores tied to one service, and operational dependencies like guardrails or evaluators hosted by the vendor. All three are reasonable to accept â provided the exit cost is known rather than imagined.
Practical portability is a set of small disciplines. Keep prompts in your own repository with evaluation sets attached so switching models means re-running tests rather than rewriting behavior from scratch. Store documents and chunks in a neutral format with embeddings recomputable on demand. Route model calls through one internal interface so the provider is a configuration value. Export traces to storage you control. None of this prevents using a managed service; it just keeps the decision reversible.
Running a Bake-Off That Produces Answers
A useful evaluation compares providers on the tasks you will actually ship: your documents, your prompt patterns, your latency targets, and your failure costs. Start with a frozen set of thirty to fifty representative cases, scored by rubric plus a human pass on the disagreements. Include adversarial cases â ambiguous questions, missing context, hostile instructions â because those separate platforms that look equal on clean data.
Then run the same set through each candidate with identical parameters where possible, and record quality, p95 latency, error rate, and cost per resolved task. Quality differences of a few percent are often within noise at that sample size, which is itself a finding: when quality ties, decide on operations, price trajectory and the team's existing skills rather than on a leaderboard position.
Re-run the bake-off when you change model families or when drift shows up in production metrics. Providers change default model versions, pricing and limits without much ceremony, and a decision made eighteen months ago deserves a scheduled challenge rather than institutional memory.
Best Practices
- Choose the consumption model from traffic shape before comparing vendors
- Count engineering hours in self-hosting cost comparisons
- Itemize the full monthly bill â prompts, embeddings, storage, logs and egress
- Keep prompts, eval sets and document stores in formats you control
- Bake off providers on your own frozen cases and repeat it on a schedule
Key Takeaways
- Managed APIs buy operational ease; raw accelerators buy control at a staffing cost
- Long contexts and missing caches move the bill more than per-token rates do
- Compare structure â data services, networking, operations â not published leaderboards
- Portability comes from internal interfaces and neutral artifacts, not from avoiding vendors
- When quality ties, decide on operations, price trajectory and team fit
Extended Learning: Beyond the Basics
Key Concepts Summary
This lesson covers fundamental concepts that serve as building blocks for more advanced topics. Master these basics before moving to intermediate and advanced material.
Prerequisite Knowledge
Before studying this topic in depth, ensure you understand:
- Basic definitions and terminology
- Core formulas and their derivations
- Common applications in real-world scenarios
- Typical pitfalls and misconceptions
Step-by-Step Walkthrough
Let us work through a complete example to solidify understanding:
Step 1: Identify the problem type. Determine which category this problem falls into and which approach is most appropriate.
Step 2: Apply the relevant formula. Substitute known values into the appropriate equation, paying attention to units and constraints.
Step 3: Simplify and solve. Work through the algebra step by step, checking each intermediate result.
Step 4: Verify the answer. Check that the solution satisfies the original conditions and makes logical sense.
Common Mistakes to Avoid
- Misidentifying the problem type â Always start by categorizing the problem
- Incorrect formula application â Verify the formula applies to your specific case
- Unit errors â Always check units are consistent throughout
- Sign errors â Pay careful attention to positive and negative values
- Rounding too early â Keep full precision until the final answer
- Forgetting constraints â Check that solutions satisfy all given conditions
Real-World Applications
Understanding this concept is essential for:
- Advanced problem solving in examinations
- Building intuition for more complex topics
- Developing analytical thinking skills
- Applying mathematical reasoning to practical situations
Practice Exercises
- Basic: Solve 5 problems of increasing difficulty using the core concept.
- Intermediate: Apply the concept to word problems with multiple steps.
- Advanced: Combine this concept with 2-3 other topics in a comprehensive problem.
- Challenge: Create your own problem that requires this concept plus additional knowledge.
Interview and Exam Tips
- Common question patterns: Identify which exam or interview formats test this topic
- Time management: Practice completing problems within time constraints
- Common traps: Know the typical mistakes examiners set as distractors
- Verification strategy: Develop a quick method to check your answer
Related Topics
- Previous Topic â Build on the foundation laid here
- Next Topic â See how this concept extends to more advanced material
- Practice Problems â Additional exercises with solutions
- Video Explanation â Visual walkthrough of key concepts
Quick Reference Card
| Concept | Formula/Rule | Key Insight | Common Use |
|---|---|---|---|
| Core Definition | See main text | Understand the intuition | Foundation for all applications |
| Key Formula | See main text | Memorize the derivation | Direct problem solving |
| Special Case | See main text | Recognize when it applies | Simplifies complex problems |
| Edge Case | See main text | Know the limitations | Avoids errors |
Further Reading
For students who want to go deeper:
- Standard textbooks on the subject
- Research papers applying this concept
- Online courses with video explanations
- Practice problem collections with detailed solutions