Frei can mean “free of charge” only in the context of public services, e.g. freie Krankenversorgung ("free medical care"), and in some fixed expressions such as Freibier ‎(“free beer”) or freie Kost und Logis ‎(“free board and lodge”). Otherwise, frei is not applicable in this sense. Instead, kostenlos should be used.