Health insurance is mandatory, even if the costs are a deterrent. The amount is based on your income.
Health insurance is a barrier for many sex workers, which is why they work uninsured. So you are unprotected in the event of accidents and illness and the costs can explode. Fortunately, there is a network of health offices and advice centers in Germany where you can ask for help. Health authorities generally offer free and anonymous advice and examinations.