Model vs Application vs Interface

Updated · 6 min read

Is a chat assistant the same thing as its model? Srihitha's team in San Francisco is choosing an AI tool, and one colleague says "the app is great, so the model must be great". Not necessarily. The app you see is built from several parts, and the model is only one of them. A great model inside a poor app still gives a poor experience, and the other way around.

This lesson separates the parts with an analogy you already know: a restaurant.

The Restaurant Analogy

An AI product is more than its model, as a restaurant is more than its chef
RestaurantAI systemWhat it does
The chef's learned skillModelProduces the output from learned patterns
The whole serviceApplicationEverything built around the model: rules, checks, history, payments
The menu and counterInterfaceWhat people see and use: a chat window, a button, a voice
The waiterAPICarries requests to the model and results back, between programs
Ingredients and recipesDataWhat the model learned from, and what the app uses
The kitchen and equipmentInfrastructureThe computers, chips and data centers everything runs on

Like every analogy, it isn't perfect: a model doesn't cook, and an API can serve thousands of programs at once. But it keeps the parts apart, and one model can sit behind many different applications, just as one chef's skill can serve a restaurant, a catering service and a cooking class.

A Chat Assistant, Part by Part

PartIn a chat assistant
ModelA large language model that writes the reply
ApplicationSaves your conversation history, checks for unsafe requests, adds tools such as web search or file reading, applies usage limits
InterfaceThe chat window on the website, the phone app, or a voice
APILets developers' own programs send requests to the same model, without the chat window
InfrastructureData centers full of specialized chips

The same model can feel very different in two applications: one might add web search and a long memory, another might add strict safety rules for a school. That is why "which model?" and "which app?" are separate questions.

Seeing the Split in Code

Even a tiny program shows the split. Here, the model is one line of learned arithmetic; the application checks the input, calls the model and explains the result:

Python
def price_model(area):
    """The model: one learned parameter, used to make a prediction."""
    return 237 * area
 
def price_app(user_text):
    """The application: checks the input, calls the model, explains the result."""
    area = int(user_text.replace(",", ""))
    if area <= 0:
        return "Please enter an area greater than zero."
    return f"Estimated price: ${price_model(area):,} (a best guess, not an appraisal)"
 
print(price_app("1,200"))
print(price_app("0"))
Output
Estimated price: $284,400 (a best guess, not an appraisal)
Please enter an area greater than zero.

The check for zero and the "best guess" note are application work, not model work. In real products, most of the code is application code around the model.

Common Mistakes

Using "ChatGPT", "the model" and "the app" as if they were one thing. A brand name usually means an application, which may use several models.

Judging a model only by one app. The same model can perform differently in apps with different instructions, tools and limits.

Forgetting the infrastructure. Running large models needs expensive hardware, which shapes their price and speed.

Interview Corner

What is the difference between a model and an application?

The model is the learned system that produces outputs, such as a language model writing text. The application is the product built around it: input checks, conversation history, safety rules, tools and the interface people use.

What is an API, in this context?

An Application Programming Interface: a defined way for one program to send requests to another and get results back. A model API lets developers' programs use a model directly, without a chat window. A later chapter covers APIs in detail.

Practice

Exercise: take apart an AI app. Choose an AI app you use. Using the restaurant table, write down what you think its model, application, interface, data and infrastructure are. Then list two things the app does that the model alone could not do, such as saving your history.

Check your understanding:

  1. In the restaurant analogy, what is the model, and what is the API?
  2. Name three things an application adds around a model.
  3. Why can the same model feel different in two apps?

Quick check: model vs application

4 questions
1In the restaurant analogy, what is the model?
2Which of these is application work, not model work?
3What does an API do?
4Two apps use the same model but behave differently. Why?

Key Takeaways

Quick reference

TermMeaning
ModelThe learned system that produces outputs
ApplicationThe product built around the model
InterfaceWhat people see and use, such as a chat window
APIA defined way for programs to send requests and get results
InfrastructureThe computers and data centers everything runs on

Was this tutorial helpful?

Lesson 15 of 186