Hence 1 is the better choice when license terms decide the question. It is Apache 2.0, with commercial use, modification and self-hosting all allowed. Codestral is the better choice if you want Mistral's hosted API and have checked its terms for your use. We did not run Codestral in our benchmark harness, so this page compares licensing, scope and hosting, not accuracy.
Coline builds Hence 1 and writes this page.
| Hence 1 | Codestral | |
|---|---|---|
| License | Apache 2.0 | Mistral's terms, which vary by release. The original 22B weights were under the Mistral AI Non-Production License. |
| Main job | Fill-in-the-middle, next-edit, prose writing, confidence gate | Code completion with fill-in-the-middle |
| Parameters | 27B | Varies by release |
| Hosting | Weights on Hugging Face; vLLM reference config | Mistral's API; self-hosting depends on the release and its license |
| Hardware | About 60 GB VRAM at bf16 | Depends on the release |
| Benchmarks in this comparison | Measured, see Hence 1 benchmarks | Not measured |
Licensing is the main difference
Hence 1 is released under Apache 2.0. That license allows commercial use, modification, redistribution and self-hosting. Its base model, Qwen3.8-27B, is also Apache 2.0. The Hugging Face release includes a NOTICE file for attribution.
Codestral's license depends on the release. Mistral released the original Codestral 22B weights under its Mistral AI Non-Production License, which does not permit commercial production use. Later Codestral models have been offered through Mistral's API under its commercial terms. Terms change, so check Mistral's current license page for the exact version and use you have in mind before you ship.
Scope: completion versus completion plus edits
Codestral is a code completion model. Hence 1 handles three jobs in one model: fill-in-the-middle completion for code, next-edit prediction as SEARCH and REPLACE blocks, and prose writing across docs, notes, messages, tasks, task properties and calendar. Its confidence gate decides whether each suggestion appears, and its quiet rate is 99.2% in our tests.
Those extras cost something. The gate holds the full suggestion until it finishes, so you see nothing until then. Hence 1 shows a suggestion on 74.5% of cases where one is wanted. If you only need code completion, a code-only model is a simpler thing to run and reason about.
Hosting
Hence 1's weights are 55.6 GB in bf16 across 18 files. The official serving setup is vLLM 0.34 on an A100 80 GB, with prefix caching and MTP speculative decoding. The confidence gate is fitted to the exact bf16 weights, so quantized builds need their own calibration. There is no standalone public API for Hence 1 at launch. It is live inside Coline Tab for every workspace.
Codestral is hosted by Mistral through an API, so you need no GPU of your own. Your code then goes to that hosted service. For self-hosting, check which Codestral release you can legally run before you plan the hardware.
Where Codestral may be better
- You don't want to run a GPU. A hosted API is simpler than serving a 27B model.
- You need a code-only model with a narrower scope and fewer moving parts.
- You already have a Mistral agreement, and its terms fit your use.
We have no measured Codestral numbers, so we cannot say whether it beats Hence 1 on accuracy. Treat any accuracy claim about Codestral in this comparison as unverified.
What a hosted API changes
A hosted API removes the GPU decision. You rely on the provider's terms and pricing, you get whichever model version the provider ships, and your requests reach the provider's infrastructure. Hence 1 reverses each of those. You choose the hardware, you pin the exact weights you tested, and the requests stay on servers you run.
A checklist before you choose
- Confirm the exact Codestral release you would use and its license on Mistral's current pages.
- Confirm that your own data policies allow code to go to a hosted service, if that is the Codestral route.
- Decide whether you need writing support. Codestral covers the code half of the job; Hence 1 covers both.
- Price the hardware for Hence 1: about 60 GB of VRAM at bf16 for the self-hosted route.
- Run both on your own edits. Codestral was not in our harness, so your results will be the only results for it.
Why prefix caching matters for hosting
The reference command turns on prefix caching, and it changes the latency you see in an editor. On the Coline production endpoint, a later keystroke in the same context takes a p50 of 0.36 s to first token and 0.73 s for the whole suggestion, while a new prompt takes 0.73 s to first token and 1.11 s for the whole suggestion. Those figures come from an A100 80 GB running vLLM 0.34 with speculative decoding. A hosted API will have its own latency profile, which you should measure on your own network before you compare them.
Which to pick
Pick Hence 1 if you need a self-hostable model under Apache 2.0 and you can serve about 60 GB of VRAM. Pick Codestral if a hosted API is the right fit and its current terms work for you. Hence 1 is the model page. The Hence 1 release post covers the training and the gate, and the weights on Hugging Face include the NOTICE file.
Related: open-source autocomplete models, Apache 2.0 autocomplete models, self-hosted AI autocomplete, Hence 1 vs StarCoder2, fill-in-the-middle models compared, run Hence 1 with vLLM