Concepts / Foundation Models and Model APIs

Foundation Models and Model APIs

AI products are harder to maintain because the AI space moves very fast, and building on foundation models means committing to that pace.

  • Programming

Why an AI Product Is Never Finished

Many people think of a product as finished once it reaches its goal. In practice, planning has to look further ahead. You need to ask how the product might change over time and how it should be kept running and improved. For an AI product this question is harder than usual, because the field itself keeps shifting under your feet. The tools you choose this quarter may look very different a year from now, and the decisions you make today will shape how much effort maintenance requires later.

This article follows one line of reasoning. It starts with the speed of change in AI, then looks at which kinds of change are easy or hard to live with, then places AI engineering within the broader field of machine learning engineering, and finally describes the layered structure that AI applications are usually built on. Keep one question in mind as you read: when the ground keeps moving, what should a team re-check, and what can it safely ignore?

Speed as the Default Condition

The AI space has been moving incredibly fast over the last decade, and it is widely expected to keep moving fast for the next one. Building on top of foundation models therefore amounts to committing to a fast-moving environment. This is the core reason AI products are harder to maintain than conventional ones: the pace of the underlying technology is part of the deal you accept when you build on it.

Speed is not uniformly bad. Many of the changes are improvements. The limitations of many models are being addressed, context lengths are getting longer, and model outputs are getting better. A team that never updates is not automatically safe, because it misses these gains. A team that updates constantly is not automatically productive, because every update carries a workflow cost. Maintenance is the work of managing that tension.

The source illustrates the trend with a chart that tracks the cost of inference and the performance of models on Massive Multitask Language Understanding, a popular foundation model benchmark, between 2022 and 2024. The chart shows the cost of AI reasoning dropping rapidly over that period. The point to take from it is directional rather than a set of exact figures: the economics of building with models are shifting quickly.

Easy and Hard Changes to Absorb

Not all changes cost the same to live with. The useful distinction is between changes you can plan for as a technical task and changes that alter what you are allowed to do at all. The diagram below sorts the examples the source gives into those two groups. Read the left column as work you can schedule, and the right column as changes that can force a redesign or stop a product entirely.

API convergenceProviders offer similarAPIsRegulatory changeCan change what you may doAdjusting prompts andworkflowsEach model has its ownquirksCompute supplyrestrictionsHardware can becomeunavailableIntellectual propertyrulesOwnership of outputs may beuncertain
Which kinds of model or API changes can the product absorb with modest effort, and which can break the product or create legal and supply risk?

The easier group is not free. As model providers converge on the same API, it becomes easier to swap one model API for another. That convergence is a real benefit, but it does not remove the work entirely. Each model has its own quirks, strengths, and weaknesses, so developers who switch models will usually need to adjust their workflows, their prompts, and their data. Without proper infrastructure for versioning and evaluation, that adjustment can become a source of considerable frustration.

When Regulation Changes What You Can Build

The source singles out regulation as the main example of a change that is harder to adapt to. The key idea is that a swap of API is a technical change you can plan for, while a regulatory change can alter what you are allowed to do. Regulation affects the resources AI depends on, including compute, talent, and data, because technologies surrounding AI are considered national security issues in many countries.

Regulation can have large direct costs. The source gives the example of Europe's General Data Protection Regulation, which was estimated to cost businesses 9 billion dollars to become compliant with. Regulation can also change supply overnight. Compute availability can shift suddenly when new laws place more restrictions on who can buy and sell compute resources. The source cites a US executive order from October 2023 as an example of this kind of rule.

The practical consequence for a product team is stark. If the company that supplies your graphics processing units is suddenly barred from selling to your country, the product that depends on that hardware is in trouble. Intellectual property adds a further risk. Rules around intellectual property and AI usage are still evolving, and if you build your product on a model that was trained using other people's data, it is not obvious that you can always be certain your product's intellectual property will belong to you. The source reports that many intellectual-property-heavy companies, such as game studios, hesitate to use AI because they fear losing their intellectual property later on.

Weighing Host Versus Pay

The source describes a team deciding whether to host its own model or pay a model provider, and it asks you to reason through the decision before reading the answer. The source frames the lesson rather than a verdict: each technology investment needs an ongoing cost-benefit analysis, not a one-time decision. The worked example below applies that framing. It is an illustration built for this article, not a result the source reports.

Worked example

Reviewing a model investment over time

A team must choose between hosting its own model and paying a model provider. Reason through what to weigh, and what to re-check later.

  1. 1
    Name the capability gain

    List what the option gives you that matters to the product, such as output quality or context length. Improvements are real, so count them.

  2. 2
    Estimate the maintenance cost

    Hosting usually means you carry versioning, evaluation, and upkeep yourself. Paying a provider shifts some of that work but adds an external dependency.

  3. 3
    Estimate the switching cost

    Ask how much work it would take to move later. Converging APIs make swapping easier, but prompts, workflows, and data still need adjustment.

  4. 4
    Check the time dimension

    The source warns that a third-party provider may fail to secure funding and go out of business, leaving infrastructure built around a dependency that no longer exists. Ask what happens if the option disappears.

  5. 5
    Schedule the next review

    Because the best option today may become the worst option tomorrow, set a date to repeat this analysis rather than treating the choice as settled.

Result

The decision is not a single permanent answer. The team chooses the option that fits today's trade-offs, records the assumptions behind it, and revisits them as cost, capability, and provider conditions change.

The Three Layers of the AI Application Stack

Once a team has committed to building an AI product, it needs to understand the engineering stack behind it. Any AI application stack has three layers: application development, model development, and infrastructure. Think of them as a vertical arrangement, with application development at the top and infrastructure at the bottom. The diagram shows that arrangement and the direction in which work usually moves.

ApplicationdevelopmentTop layer, where workusually startsModel developmentDescend here when the topneeds itInfrastructureBottom layer, reached whenrequireddescend as neededdescend as needed
What are the three layers of the stack, and in what order does a developer typically build through them?

The source explains the working order. When developing an AI application, you will likely start from the top layer and move down as needed. You do not have to master every lower layer before you begin. You should, however, be ready to descend into a lower layer when a problem at the top requires it. In other words, the stack is worked top-down, but it is not learned top-down in a strict sequence.

Where the Model API Sits

A Model API is the way an application reaches a foundation model that someone else hosts. The diagram traces one exchange: your application sends a request, the hosted model produces a result, and a response returns to your application. The point the diagram makes is where the external dependency sits. It lies between your product code and a model you do not control.

Your applicationYour product codeModel APIExternal interfaceHosted foundationmodelRun by the providerrequestruns the modelresponse
How does the application send a request to the hosted model and receive a response, and where does the external dependency sit?

This placement explains the maintenance problem. When the provider changes its model, its pricing, or its terms, your product feels it through the interface, even though your team did not write that change. That is why the earlier question of whether you can swap an API matters so much: the API is the seam where your product meets a dependency you do not own.

Where AI Engineering Comes From

AI engineering evolved out of ML engineering, and the two overlap heavily even where companies draw separate job lines. When a company starts experimenting with foundation models, it is natural for its existing machine learning team to lead that effort. The relationship between the two roles is therefore one of heritage and overlap rather than a clean separation.

Companies handle the two roles differently. Many organizations place AI engineering and ML engineering under the same umbrella, and some treat them as identical. Others publish separate job descriptions for AI engineering. Existing ML engineers can add AI engineering to their skill lists to widen their job prospects, and there are also AI engineers who arrive with no previous ML experience. The rapid growth of the field has produced a great deal of hype and fear of missing out, so the source advises focusing on the fundamental building blocks rather than trying to keep up with every new tool.

Mistakes Teams Make With Foundation Models

  • Common mistake

    Treating the product as finished at launch

    Why it fails

    The field keeps shifting, so decisions made today shape how much maintenance is needed later.

    Do this instead

    Plan for how the product will change and schedule regular reviews of its assumptions.

  • Common mistake

    Assuming a model swap is free because the APIs look alike

    What it looks like

    A team switches providers because the API calls look the same, then finds its prompts produce different outputs.

    Why it fails

    Each model has its own quirks, strengths, and weaknesses, so workflows, prompts, and data usually need adjustment.

    Do this instead

    Budget for adjustment work and put versioning and evaluation in place before switching.

  • Common mistake

    Ignoring legal and regulatory developments

    Why it fails

    Regulation can change what you are allowed to do and can suddenly restrict the compute your product relies on.

    Do this instead

    Treat legal change as part of maintenance, alongside technical change.

  • Common mistake

    Making a one-time investment decision and never revisiting it

    Why it fails

    The best option today may become the worst option tomorrow, and an external provider can fail.

    Do this instead

    Run a cost-benefit analysis on every technology investment and repeat it as conditions change.

  • Common mistake

    Trying to learn every tool before starting, instead of focusing on the fundamental building blocks

Checking Your Reasoning on a Provider Choice

MEDIUM

A team has built its infrastructure around a third-party model provider. Before deciding whether to keep relying on that provider, list the questions you would ask. Explain how each answer would change whether the investment still makes sense.

Hints
  • Think about the capability gain, the maintenance cost, and the switching cost.
  • Consider what would happen to the infrastructure if the provider went out of business.
  • A good answer ends with a date or trigger for the next review, not a permanent verdict.
EASY

Sort these changes into easier to absorb or harder to absorb, and give one reason for each: a provider converging on a common API, a new law restricting who can buy compute, and a new model that produces better outputs but has different prompt behavior.

Hints
  • Ask whether the change is a technical task you can plan for or a change to what you are allowed to do.
  • A better model can still be harder to adopt if it requires workflow changes.

Key Takeaways

  • AI products are harder to maintain because the field moves very fast, and building on foundation models means committing to that pace, including both improvements and friction.
  • Changes such as API convergence are relatively easy to absorb, while regulatory and intellectual property changes can be hard or even fatal to a product.
  • Every technology investment needs an ongoing cost-benefit analysis, because the best option today may become the worst option tomorrow.
  • AI engineering evolved out of ML engineering and overlaps heavily with it. The AI application stack has three layers, application development, model development, and infrastructure, and a developer usually starts at the top and descends as needed.

Related concepts

More concepts starting with F