DevPrep

All topics › AI fundamentals for developers

How the model market works and how to choose a model for a task

Middle PRO

Essence

Models fall into three classes: closed models available only through a provider's API; open-weight models you can download and run yourself; and on-device models. No model is best at everything: choosing is a trade-off between quality, speed, cost, privacy and context size. The market changes every few months, so knowing how to choose matters more than remembering names.

The rest of this answer, with code and interview follow-ups, is in the DevPrep app.

Read the full answer in DevPrep

Practice this before your interview

DevPrep turns these answers into one-minute challenges: what does this code print, find the bug, mock interviews. One challenge a day.

Get DevPrep on the App Store