Choosing an LLM: Open vs Closed Models, Size, Cost, Speed, Context and Licenses for Your Project

LLM Development 45 min min read Updated: Nov 21, 2026 Beginner
Choosing an LLM: Open vs Closed Models, Size, Cost, Speed, Context and Licenses for Your Project
Beginner Topic 3 of 3

There Is No Best Model

New models appear often, so any list of names goes out of date quickly. Instead of memorizing names, learn how to choose. Test two or three models on your own task and compare.

Closed vs Open Models

Closed (API)Open weights
How you use itSend requests to the providerDownload and run it yourself or on rented servers
SetupVery easyMore work: GPUs, serving software
ControlProvider controls updatesYou control the version
PrivacyData goes to the provider, so read the termsData can stay on your servers
CostPay per tokenPay for hardware or hosting
CustomizingPrompting, sometimes fine-tuningFull fine-tuning is possible
Open weights Many open models share weights but not all training data, and licenses differ. Read each license for commercial use limits.

What to Compare

  • Quality on your own examples
  • Latency: how fast the first token and the full reply arrive
  • Price per input and output token
  • Context window: how much text fits in one request
  • Features: tool calling, JSON mode, image input
  • Privacy and region rules for your data
  • Reliability and rate limits

A Simple Scoring Demo

Give each candidate a score from 1 to 5 for each need, set weights for what matters to you, and compute a total.

python weights = {"quality": 5, "cost": 3, "speed": 2, "privacy": 4} models = { "Model A (big API)": {"quality": 5, "cost": 2, "speed": 3, "privacy": 2}, "Model B (small API)": {"quality": 3, "cost": 5, "speed": 5, "privacy": 2}, "Model C (self-hosted)": {"quality": 3, "cost": 3, "speed": 3, "privacy": 5}, } for name, s in models.items(): total = sum(weights[k] * s[k] for k in weights) print(name, total)
Result

Model A (big API) 45 | Model B (small API) 48 | Model C (self-hosted) 50

The best model depends on the weights. If privacy matters most, the self-hosted option rises. Change the weights and see.

Use a Small Test Set

  1. Collect 20 real examples of your task
  2. Write what a good answer looks like
  3. Run each model on all 20
  4. Compare quality, speed and cost
  5. Choose the cheapest model that passes
Start small A smaller, cheaper model is often enough for simple tasks such as classification or extraction. Save the large model for hard reasoning.
Prices and limits change Check the provider's pricing and model pages the day you build. Do not copy numbers from old articles.

Practice

  1. Pick a task you care about
  2. Write five sample inputs and ideal outputs
  3. Change the weights in the demo to match your project

Conclusion

Choose by testing on your own data, then balance quality, cost, speed and privacy.

Quick Summary: Open vs closed; criteria; weighted score; small test set.

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators