The country’s top AI labs are undercutting US competitors and winning over developers by making their best models free.