Wiz Khalifa and Amber Rose

Amber Rose and Wiz Khalifa are calling a truce in their nasty custody battle, for the sake of their son.

According to TMZ, the former couple have agreed to co-parent 2-year-old Sebastian.

Wiz and Amber have been at each other’s throats since splitting last fall.

Just last month, the rapper filed legal documents requesting more custody, claiming Amber was an unfit mother. He accused her of staying out all night, while staff took care of their son, among other things.

A new song by Wiz called “See You Again,” off the Furious 7 soundtrack, helped the pair bury the hatchet.

On it, he spits: How could we not talk about family when family’s all that we got? / Everything I went through you were standing there by my side / And now you gonna be with me for the last ride.”

TMZ says Wiz asked Amber to listen to the song, and after she heard it, she tearfully called him back and they agreed to work as parents to care for Sebastian.