According to the provisions of the Marriage Law of the People's Republic of China:
Twenty-fifth children born out of wedlock enjoy the same rights as children born in wedlock, and no one may harm or discriminate against them.
A biological father or mother who does not directly raise a child born out of wedlock shall bear the living expenses and education expenses of the child until the child can live independently.