Best open-source models for coding

The best open-source or open-weight coding models are ranked here by SWE-bench score per effective dollar, then compared by price, context, and host availability. The current classification is provisional: verify each model's licence before commercial use.

#ModelSWE-benchCheapest hostInput $/MTokOutput $/MTokHostsContext
1Kimi K2.573.8%TensorX$0.50$2.807
2Kimi K2.676.7%Inceptron$0.73$3.503262k
3DeepSeek V4 Pro 042377.6%Fireworks AI$1.32$3.4851.048576M
4GLM 5.174.2%Fireworks AI$1.40$4.401

How this ranking works

Models must have a benchmark score at or above the site's coding threshold. The ranking uses SWE-bench divided by effective blended token cost. Host prices are compared separately; a cheaper host does not imply that the model itself is licensed for commercial use.

Open-source and open-weight are not interchangeable legal categories. Check the model licence and the provider's hosting terms before using any model in a commercial product.