"Kriss [sic] don't play with me you and that calmye are not allowed around my children," the rapper and presidential hopeful wrote. "Ya'll tried to lock me up."
He continued, "Everybody knows the movie get out is about me."
Referencing the couple's 6-year-old daughter, North West, and the sex tape Kim and then-boyfriend Ray J shot in 2007, Kanye then wrote, "I put my life on the line for my children that North's mother would never sell her sex rape [sic]."
"I put my life on my God that North's mom would never photograph her doing playboy and that's on God," he added. "I'm at the ranch... come and get me."
In 2007, Kim appeared on the cover of the December issue of Playboy magazine.
E! News has reached out to Kim and Kanye's teams for comment, but have not heard back.
Kanye, 43, also claimed, "Kim tried to bring a doctor to lock me up with a doctor."
Then, seemingly referencing the late South African leader Nelson Mandela, who spent 27 years in prison for treason before becoming the country's first Black president, he tweeted, "If I get locked up like Mandela Ya'll will know why."
"Kriss [sic] and Kim call me now," he wrote, before sharing a screengrab of a text message he allegedly sent to his mother-in-law.
"This is Ye," his message to Kris read. "You ready to talk now or are you still avoiding my calls [?]"
He then tweeted a photo alongside his and Kim's children, North, Saint West, 4, Chicago West, 2, and Psalm West, 1. "West children will never do playboy," Kanye captioned it.
West's Twitter rant comes in the midst of his ongoing presidential campaign. On Sunday, July 19, West held his first campaign rally in South Carolina, where he broke down in tears while recalling that he and Kim allegedly considered terminating her pregnancy.
"So even if my wife were to divorce me after this speech, she brought North into the world, even when I didn't want to," West said. "She stood up and she protected that child."
He referenced that moment on Twitter, writing, "Kim was trying to fly to Wyoming with a doctor to lock me up like on the movie Get Out because I cried about saving my daughter's life yesterday."
Among the other topics Kanye addressed online, he claimed Shia LaBeouf "never showed up" to a supposed photoshoot for his Yeezy partnership with Gap, and said Vogue editor-in-chief Anna Wintour looked at him "like [he] was crazy" for collaborating with the brand.
Kim and members of the Kardashian-Jenner family have not commented publicly on his latest remarks. A source previously told E! News Kim was "very concerned" for her husband of six years after his recent comments regarding his presidential aspirations made headlines.
"She understands that he goes through this from time to time," the insider explained at the time. "He's very passionate in everything he does, which Kim respects, but she doesn't always agree with his actions."
Kanye has since deleted several of his tweets.
Over the years, Kanye has been vocal about his struggles with mental health. The star, who was hospitalized in 2016, previously spoke out about bipolar disorder on David Letterman's Netflix series, My Next Guest Needs No Introduction.
"What I want to say about the bipolar thing is because it has the word 'bi' in it, it has the idea of, like, split personality. Well, that works for me because I'm a Gemini, but when you ramp up, it expresses your personality more," he shared. "You can become almost more adolescent in your expression or border into places. This is my specific experience that I've had over the past two years, because I've only been diagnosed for two years now."