← AI Explained

The AI stack in 2026: chips, cloud, models, apps, and the API doorway between them

Every AI feature is a stack of four businesses: chips, cloud, models and apps, joined by one HTTPS doorway called the API. Here is who sits on each layer in November 2026, where the money and bottlenecks are, and how to build so one provider's bad day is not yours.

THE AI STACK, NOVEMBER 202601ChipsFLOPs and HBMNvidia: $89.0B data centre Q2Google TPU, AWS TrainiumAMD MI450, SK hynix HBM02Cloudrented GPU-hoursAWS, Azure, Google CloudCoreWeave, Nebius, Oracle$168B capex in Q3 (top 3)03Modelsfrontier and open labsAnthropic, OpenAI, GoogleDeepSeek, Moonshot, Z.aiopen weights on Hugging Face04Appswhat users tapChatGPT, Claude, Gemini appsCopilot, Cursor, your appagents and coding toolsAPIHTTPS + JSON: tokens in, tokens out
Four layers, top to bottom, with the API as the doorway between apps and models. Notice that most products only ever touch the doorway, while every number that sets their cost and reliability sits in the three layers below it.

Four layers, one doorway

Every AI feature you ship rests on four layers. At the bottom are chips: accelerators that do the matrix maths (measured in FLOPs, floating-point operations) and the high-bandwidth memory, or HBM, beside them that holds model weights. Above them, cloud data centres rent those chips by the GPU-hour. Models are the labs that turn rented compute into trained weights and serve them. At the top, apps are the products people tap.

Between apps and models sits the one interface most engineers ever touch, the API: an HTTPS endpoint that takes JSON in and returns JSON out, metered in tokens, the word fragments a model reads and writes. Each boundary has its own currency. Chips sell FLOPs and memory bandwidth to clouds, clouds sell GPU-hours to labs, labs sell tokens to apps, and apps sell outcomes to users. Margins, bottlenecks and outages all live at those boundaries.

LayerWho sits there nowWhat crosses the boundary above it
ChipsNvidia, AMD, Google TPU, AWS Trainium; SK hynix for HBMFLOPs and HBM, sold as systems to clouds
CloudAWS, Microsoft Azure, Google Cloud, Oracle; neoclouds such as CoreWeave and NebiusGPU-hours and capacity contracts, sold to labs
ModelsAnthropic, OpenAI, Google DeepMind; Chinese and open-weight labs such as DeepSeek, Moonshot AI and Z.aiTokens through the API, priced per million
AppsApple, Microsoft, GitHub, every startup with a chat boxFeatures and subscriptions, sold to users

Chips: where the margin is fattest

Nvidia still dominates the bottom layer. For the quarter ended 26 July 2026, it reported data centre revenue of $89.0 billion, up 117% on a year earlier and more than 92% of its $96.2 billion total, at a 75.0% gross margin. Its next platform, Vera Rubin, is in full production, the release says.

The alternatives are real. AMD reported record data centre revenue of $8.5 billion for its third quarter, up 97%, and said Anthropic, Meta, Microsoft, OpenAI and Oracle Cloud Infrastructure are already running workloads on its first Helios racks built on Instinct MI450 GPUs. Alphabet said TPU systems sales were a meaningful contributor to Google Cloud's growth, and Amazon said its TorchNeuron software made its Trainium accelerator easier to adopt. Anthropic's S-1 filing says it trains and serves Claude natively across four chip families: AWS Trainium, Google TPUs, Nvidia GPUs and AMD GPUs.

The tightest choke point is memory. Accelerators are only as fast as the HBM feeding them, and SK hynix said on 28 October that its HBM and DRAM are sold out through 2029, with supply expected to fall short of demand through 2030. Its third-quarter operating profit of 83.33 trillion won on 104.6 trillion won of revenue is a margin of roughly 80%. The constraint is supply, and every layer above pays for it.

Cloud: the capex wall and the power ceiling

The cloud layer turns chips into rentable capacity, and the bill is enormous. In the July to September quarter, Amazon, Alphabet and Microsoft spent a combined $168 billion on property and equipment, and Amazon's figure alone more than doubled from $35.1 billion a year earlier, as we covered in Big Tech's $168 billion quarter. Amazon still expects about $220 billion of cash capex in 2026, and Meta narrowed its 2026 range to $135 billion to $145 billion.

Q3 2026 CAPITAL SPENDING, $ BILLIONSAmazon$77.3BAlphabet$51.4BMicrosoft$39.4BMeta (incl. finance leases)$34.9B
Cash spent on property and equipment in the quarter, from each company's results. Meta's figure includes finance-lease principal, so the definitions are close but not identical. Notice that Amazon alone outspent Meta and Microsoft combined.

Demand is keeping pace for now. Google Cloud revenue grew 103% to $30.7 billion, Azure grew 48%, and AWS grew 39% to $46.0 billion in the quarter.

The ceiling above all of this is electricity. Gartner forecasts data centres will use 565 TWh in 2026, up from 447 TWh in 2025, with AI-optimised servers drawing 175 TWh, or 31%, and warns grid supply will fall short of planned construction. Anthropic's S-1 lists power and data centre capacity among its compute risks and says it has consistently operated where customer demand exceeds available compute.

Models: few labs, thin margins, more open weights

Training and serving a frontier model is the most capital-hungry job in software, which is why so few organisations do it. According to Fortune's reading of Anthropic's S-1, the company spent $5.6 billion on compute in the second quarter of 2026 while earning $11.6 billion of revenue, or $2.08 per compute dollar. The S-1 itself confirms the revenue and says it grew 1,368% year on year that quarter, while compute and infrastructure expenses grew 300%. Compute covers training as well as serving, so this is not a gross margin, but it shows how much of each dollar flows back down the stack.

ANTHROPIC, Q2 2026 REVENUE OF $11.6BCompute spending$5.6BEverything else$6.0B
Almost half of Anthropic's second-quarter revenue went back down the stack as compute, by Fortune's figures.

The other half of the model layer is open weights: models you can download and run yourself. Moonshot AI opened its Kimi K3.1 Pro repository on Hugging Face on 2 November, after claiming in its launch post that the model scored 65.7% on Terminal-Bench 4.0 against 66.4% for Claude Opus 5.5; Z.ai's GLM-5.3 and DeepSeek-V4.1-Flash are also on Hugging Face. On OpenRouter, a routing service that resells many models through one API, Chinese labs took 69% of tokens and open-weight models 72% in one September week, according to OpenRouter's own data. That is OpenRouter's traffic, not the whole market.

The API at the wire

Strip away the SDK and a model call is a single HTTPS POST. You send the model id, a token budget and a list of messages; you get back the generated content, a stop_reason and a usage block counting input and output tokens. This is the request from Anthropic's current quickstart, with the model, budget and prompt changed.

A Claude API request with curl
curl https://api.anthropic.com/v1/messages \
  -H "content-type: application/json" \
  -H "x-api-key: $ANTHROPIC_API_KEY" \
  -H "anthropic-version: 2026-10-21" \
  -d '{
    "model": "claude-sonnet-5-5",
    "max_tokens": 1024,
    "messages": [{"role": "user", "content": "Summarise this ticket in one line."}]
  }'

# The response is JSON too. Fields from the docs sample output:
#   "stop_reason": "end_turn",
#   "usage": {"input_tokens": 21, "output_tokens": 305}

On Anthropic's models overview, Claude Sonnet 5.5 costs $2 per million input tokens and $10 per million output tokens, Claude Opus 5.5 costs $4 and $20, and Claude Haiku 5.5 starts at $0.10 and $0.50. A request with 2,000 input tokens and 500 output tokens on Sonnet 5.5 costs $0.004 plus $0.005, just under one cent. Output costs five times as much as input, which matches the mechanics: the prompt is read in one parallel step called prefill, while each output token needs its own sequential pass, called decode. Batch requests are 50% off, and cached prompt reads cost 5% of the input price on Opus 5.5 and Sonnet 5.5.

Limits are the other half of the contract. Anthropic meters requests, input tokens and output tokens per minute for each model, refilled continuously like a token bucket; the Start tier allows 4,000 requests and 2,000,000 input tokens a minute on Sonnet 5.5. Cache reads do not count towards the input limit, so caching raises throughput as well as cutting cost. Exceeding a limit returns HTTP 429, usually with a retry-after header, while a 529 overloaded_error means the API is temporarily overloaded, which the errors reference says can happen under high traffic across all users.

ONE REQUEST, FROM PHONE TO ACCELERATOR AND BACKHTTPSPOST /v1/messagesscheduledtoken by tokenyou pay per tokenPhone appuser taps the buttonYour backendadds prompt + API keyapi.anthropic.comedge, auth, rate limitsInference fleetfour chip familiesPrefill + decoderead prompt, emit tokensSSE streamtokens back as eventsusage blockinput + output tokensAnswer on screenunder your logo
The path of a single tap. The API key stays on your server, never in the phone. The hot boxes are where you queue and are billed: the gateway enforces your limits, and decode time sets how fast tokens stream back.

One brain, many logos

The API makes it cheap to build on someone else's model, so many logos share few brains. Apple and Google said in a joint statement on 12 January that the next generation of Apple Foundation Models will be based on Google's Gemini models and cloud technology. Concentration also runs through the clouds: Anthropic's S-1 says about 48% of its revenue in the first half of 2026 came through cloud providers' marketplaces, and some of those providers also sell it compute and offer rival models.

Concentration turns one incident into many. On 3 September, Anthropic's status page logged raised error rates from 13:26 UTC until impact ended at 16:16 UTC, affecting claude.ai, the Claude API, Claude Code and Claude Cowork. The same morning, Gizmodo reported, OpenAI attributed a ChatGPT and Codex disruption to a routing error, xAI blamed an outage at its Memphis compute centre, and users reported problems with Gemini, while Google did not respond to Gizmodo. No shared cause has been established.

The incident also shows how to design. Anthropic's exhaustive list of affected models named Claude Mythos 5.1, Fable 5.1, Mythos 5, Fable 5, Opus 5, Opus 4.8 and Opus 4.6; Opus 5.5, Sonnet 5.5 and Haiku 5.5 were not on it. An app able to switch to one of those would most likely have stayed up, while one hard-wired to an affected id was exposed for up to nearly three hours.

Choosing your layer and de-risking the doorway

Most teams should sit at the app layer and buy tokens, because the layers below need capital, supply contracts and power that a product team cannot get. The decision worth making on purpose is how many doorways you keep open. We think every production AI feature should launch with at least two tested routes, because the incidents above show the cheapest outage insurance is a second model id you have already evaluated.

A FALLBACK PATH THAT SURVIVES ONE BAD AFTERNOONfirst try5xx, 529, refusalvendor-wide errorsstill failingall routes downnightlyYour appone call: ask()Your LLM gatewayroutes, logs, budgetsPrimary modelClaude APISibling modelsame vendor, other idSame model, Bedrockother cloud, same bodyAnother labrouter or open weightsDegraded modecache, queue, apologiseEval suiteproves each route works
Escalate from the cheapest switch to the most expensive. A sibling model fixes a single-model incident, another cloud fixes a vendor control-plane problem, and only a second lab or your own weights cover a vendor-wide model failure. Evals make each route safe.
  1. Own a thin gateway. Route every model call through one internal function or service that holds keys, logs request-id, counts tokens and picks the route, so swapping a model becomes a config change, not a release.
  2. Fall back by model first. A sibling model from the same vendor speaks the same request format, so prompts and tools mostly carry over.
  3. Then by cloud. Claude is served on Amazon Bedrock with the same Messages API body, plus Google Cloud and Microsoft Foundry. Bedrock's global endpoint routes across regions; regional endpoints, for data residency, carry a 10% price premium.
  4. Then by lab. OpenRouter's models array tries the next model on errors such as rate limits, downtime and context-length failures, and bills the model that actually answered. Prompts do not port perfectly between labs, so test this route on your own evals first.
  5. Keep open weights as the last resort. Revolut told AI Engineer NYC that it serves GLM-5.3 to about 2,000 engineers on 56 Nvidia B200 GPUs at a blended cost near $0.30 per million tokens, and The Register reported that self-hosting cost about a tenth of Claude Code or Codex. The talk page warns those numbers reflect Revolut's own utilisation, and a fixed cluster costs the same at 3 a.m. as at noon; our Revolut write-up covers when that trade pays.
  6. Design the degraded mode. Decide in advance what happens when every route fails: serve a cached answer, queue the job, or hide the button with an honest message.
Client-side fallback across models and clouds (illustrative)
import anthropic
from anthropic import Anthropic, AnthropicBedrockMantle

first_party = Anthropic(max_retries=1, timeout=30.0)    # fail fast, then move on
bedrock = AnthropicBedrockMantle(aws_region="us-east-1")  # same Messages API body

ROUTES = [
    (first_party, "claude-sonnet-5-5"),          # primary
    (first_party, "claude-opus-5-5"),            # sibling model, same vendor
    (bedrock, "anthropic.claude-sonnet-5-5"),    # same model, different cloud
]

def ask(messages, max_tokens=1024):
    last_error = None
    for client, model in ROUTES:
        try:
            msg = client.messages.create(model=model, max_tokens=max_tokens, messages=messages)
        except anthropic.RateLimitError as e:          # 429; a spend-cap 429 never clears by retrying
            last_error = e
            continue
        except (anthropic.InternalServerError,         # 500, 529 overloaded and other 5xx
                anthropic.APITimeoutError,             # request timed out
                anthropic.APIConnectionError) as e:    # network failures
            last_error = e
            continue
        if msg.stop_reason == "refusal":               # a 200 response, not an exception
            last_error = RuntimeError(f"{model} declined")
            continue
        return model, msg                              # log which route answered
    raise last_error                                   # caller switches to degraded mode

A production version adds a circuit breaker, so a failing route is skipped for a few minutes rather than retried on every request, plus per-route budgets and an alert whenever traffic leaves the primary route. The test that matters: point the primary route at a closed port in staging and confirm users still get an answer. For how the layer under the doorway behaves under load, read how LLM inference works next.