“Open-source LLM” usually means open-weight: the model weights are downloadable, so you can run, fine-tune and host the model yourself. The license decides what you are actually allowed to do with it, and the licenses differ more than people expect. This guide maps the main families for chat and code. For the practical side of running them on your own hardware, see Best local LLM.
The main families at a glance
| Family | Maker | Strengths | License notes (high level) | API price |
|---|---|---|---|---|
| Llama | Meta | Broad ecosystem, many fine-tunes | Custom Meta license with use and scale conditions | price not verified |
| Qwen | Alibaba | Strong code and multilingual, many sizes | Mostly Apache 2.0; check each model card | price not verified |
| DeepSeek | DeepSeek | Reasoning and code at low cost | MIT license on recent releases; check model card | See DeepSeek pricing |
| Mistral | Mistral AI | Efficient models, European provider | Mix of Apache 2.0 and commercial licenses | price not verified |
| Gemma | Small, capable models for laptops | Gemma terms of use | price not verified |
We list API prices only where our pricing data has a verified rate. Hosted prices for open-weight models also vary by provider, so the same model can cost very different amounts.
Llama
Llama has the largest community of fine-tunes, tools and tutorials, which makes it a safe default. The license is not a standard open-source license: it includes an acceptable-use policy and conditions for very large companies. Fine for most individuals and businesses, but read it before shipping a product.
Qwen
Qwen covers everything from tiny models to very large mixture-of-experts releases, and its coder variants are among the most popular for local coding assistants. Many Qwen models use Apache 2.0, the most permissive common license, but check each model card.
DeepSeek
DeepSeek made its name with reasoning models released openly and a low-cost API. If you want frontier-like reasoning without hosting, its API is often the cheapest route; verified rates are on our DeepSeek pricing page. Its consumer chat app pricing is price not verified. Some organizations restrict use of its hosted service for data-residency reasons; self-hosting the weights avoids that.
Mistral
Mistral releases a mix of open-weight and commercial models. Its open models are efficient for their size. It also runs Le Chat, a consumer assistant: Le Chat Pro is $14.99/mo. See Le Chat pricing.
Gemma
Gemma is Google’s family of small open models, built for laptops and phones. Its terms of use are Google-specific rather than a standard license. It is a strong pick when memory is tight.
How to choose
- License first if you are building a product: Apache 2.0 and MIT are simplest.
- Size second: pick the largest model your hardware or budget handles. A good 30B model usually beats a great 7B model.
- Job third: coder variants for code, instruct variants for chat, reasoning variants for multi-step problems.
- Test on your own prompts. Leaderboards shift monthly; your use case is the benchmark that matters.
If you would rather call these models than host them, an aggregator like OpenRouter gives one API across many of them; its free plan allows 50 requests. See Free LLM API and Cheapest LLM API.