Kesha is not backing down from her legal battle against her producer Lukasz "Dr. Luke" Gottwald. The "Tik Tok" singer posted a powerful message on Instagram on Sunday, in which she says she was privately offered her "freedom" from Dr. Luke and her record label if she would deny her rape allegations and publicly apologize for them.

"So. I got offered my freedom IF i were to lie," Kesha wrote. "I would have to APOLOGIZE publicly and say that I never got raped. THIS IS WHAT HAPPENS behind closed doors. I will not take back the TRUTH. I would rather let the truth ruin my career than lie for a monster ever again."

Kesha appeals court ruling forcing her to work with Dr. Luke

The singer was denied an injunction in February that would release her from her record contract with Dr. Luke and Sony Music, after she alleged that Dr. Luke drugged and raped her, and was also verbally abusive during their years working together. Kesha said that her fight against Dr. Luke was "bigger than just me" in her first public statement following the court hearing.

Dr. Luke also tweeted after the hearing, denying all of Kesha's claims. "I didn't rape Kesha and I have never had sex with her," he wrote. "Kesha and I were friends for many years and she was like my little sister."

For now, the legal battle continues as Kesha has filed an appeal.

WATCH: Adam Lambert says Kesha is doing "really well" amid legal battle