Kesha is suing Dr. Luke for allegedly abusing her for almost 10 years.

The 'Tik Tok' hitmaker, who sought treatment in rehab for an eating disorder earlier this year, has filed a lawsuit against her record company boss and music producer - real name Lukasz Gottwald - claiming he began abusing her sexually, physically, verbally and emotionally shortly after she signed a contract with him when she was 18.

In court documents, obtained by gossip website, the 27-year-old singer, who is signed to Dr. Luke's record label Kemosabe Records, alleges he made repeated sexual advances toward her and forced her to use drugs and alcohol.

She claims he once forced her to snort an unknown substance before they boarded a flight together and says he forced himself on her while she was under the influence of the drug, and also alleges he once attacked her at his house in Malibu, California, where he was ''violently thrashing his arms at her.''

On another occasion, the blonde beauty claims she suffered memory loss after Dr. Luke, 41, gave her ''sober pills'' after forcing her to drink alcohol with him.

Kesha blames the music producer, who has also worked with Katy Perry, Pink and Kelly Clarkson, for her body image issues, claiming he once said to her: ''You are not that pretty, you are not that talented, you are just lucky to have me.''

The 'Blow' singer is asking a judge to release her from her contract with Luke.

Her lawyer, Mark Geragos, said: ''This lawsuit is a wholehearted effort by Kesha to regain control of her music career and her personal freedom after suffering for ten years as a victim of mental manipulation, emotional abuse and an instance of sexual assault at the hands of Dr. Luke.''

He added: ''The facts presented in our lawsuit paint a picture of a man who is controlling and willing to commit horrible acts of abuse in an attempt to intimidate an impressionable, talented, young female artist into submission for his personal gain. Kesha is focused on moving her life and her career beyond this terrible time.''

Dr. Luke has yet to comment on the allegations.