xAI, the artificial intelligence company owned by SpaceX, has filed a federal lawsuit challenging a Minnesota law that would ban so-called “nudify” applications, setting the stage for another high-profile legal battle over the limits of AI regulation, free speech protections and the growing threat of AI-generated sexual abuse.
The lawsuit, filed Monday in federal court in Minnesota, names Keith Ellison as the defendant and argues that the state’s new law violates constitutional protections by imposing sweeping restrictions on AI-powered image generation.
In its complaint, xAI said the statute “imposes an overbroad, content-based ban on free speech and the tools of visual expression in a clumsy attempt to prohibit ‘nudification.'”
The Minnesota law, scheduled to take effect on Saturday, targets applications and websites that enable users to create non-consensual sexually explicit images using artificial intelligence. Companies whose platforms are used to generate prohibited deepfakes could face civil penalties of $500,000 for each violation, making it one of the toughest state-level AI enforcement measures in the United States.
The legislation was introduced by Erin Maye Quade after learning about a case in which a man allegedly used publicly available social media photographs to generate sexually explicit AI images and videos of more than 80 women without their knowledge or consent.
Supporters of the law argue that it fills a growing gap in existing criminal and civil protections as generative AI dramatically lowers the barriers to creating convincing synthetic intimate images.
xAI contends, however, that the law reaches far beyond its intended purpose.
According to the company, the penalties are so severe that a platform whose users generated 100,000 prohibited images could theoretically face $50 billion in fines, an outcome the company described as unconstitutional and economically unsustainable.
The lawsuit centers on the First Amendment, with xAI arguing that the legislation unlawfully restricts protected forms of expression by regulating the technology itself rather than punishing unlawful conduct.
The case is expected to become an important test of how U.S. courts balance constitutional free speech protections against growing efforts by lawmakers to regulate harmful uses of generative AI.
Compounding Sexual Images Legal Battles
The legal challenge also comes as xAI confronts broader scrutiny over how its AI systems are used.
The company is already facing a proposed class-action lawsuit alleging that its Grok chatbot and image generation tools were used to create child sexual abuse material (CSAM) and AI-generated sexual images based on real individuals without their consent. The lawsuit further alleges that xAI failed to report information about users responsible for generating the images to law enforcement authorities.
xAI has denied wrongdoing and says its policies explicitly prohibit users from creating nude or sexually explicit images of individuals without their consent. The company said in its Minnesota complaint that it has implemented extensive technological safeguards designed to prevent such content from being generated and has pursued legal action against users who deliberately bypass those protections.
AI developers are increasingly being confronted by moral and legal challenges. As image-generation models become increasingly sophisticated, companies face growing pressure to prevent misuse while preserving legitimate creative and commercial applications of the technology.
Lawmakers across the United States have accelerated efforts to regulate AI-generated deepfakes following a surge in cases involving non-consensual sexual imagery, political misinformation, financial fraud and identity theft. Regulators now see synthetic media as one of the most immediate public safety risks associated with generative AI because the technology enables highly realistic content to be produced quickly and at minimal cost.
Supporters of Minnesota’s law say that traditional legal remedies have struggled to keep pace with the speed and scale at which AI-generated abuse can spread online. Maye Quade compared the legislation to longstanding laws prohibiting voyeurism and the creation of intimate images without consent, arguing that the statute modernizes existing protections for the AI era rather than creating entirely new restrictions on speech.
In an emailed statement, she defended the legislation, saying it protects First Amendment rights while addressing image-based sexual abuse.
“It’s sad that the creators of nudification technology would rather protect their ill-gotten profits than protect us from image-based sexual abuse,” she said.
Minnesota Governor Tim Walz, a Democrat, also responded publicly to the lawsuit, writing on social media: “See you in court, creep.”
The Minnesota case is not xAI’s first attempt to challenge AI-related regulation.
The company previously sued to block a California law aimed at restricting AI-generated deepfakes in elections. That challenge achieved a partial victory after a federal judge struck down provisions that would have limited certain forms of AI-generated election content on First Amendment grounds.
The latest lawsuit underscores the increasingly complex legal challenges facing AI developers. As states move more aggressively than Congress to regulate emerging AI technologies, courts are likely to play a central role in determining where constitutional protections end and government oversight begins.






