In recent weeks, users on X have been prompting Grok AI, Elon Musk’s artificial intelligence chatbot and text-to-image tool, to generate images of women in bikinis and similar attire.
These prompts have sparked debate online, not only about the ethics of using AI to create images of presumed real people, but also about the legal implications of creating and circulating such content in jurisdictions like Kenya.
While bikini images themselves may seem inappropriate to many, the broader issue of creating and sharing images of people without their consent, especially intimate or sexually suggestive depictions, intersects with Kenyan laws on cybercrime, privacy, obscenity, and child protection.
Kenya’s legal framework governing digital content is anchored significantly in the Computer Misuse and Cybercrimes Act, 2018.
Section 37 of this Act criminalises the transfer, publication, or dissemination of “the intimate or obscene image of another person” without that person’s consent, including making such a depiction available for download or distribution through digital networks.
Conviction can result in a fine of up to Ksh 200,000, imprisonment for up to two years, or both.
The Cybercrimes Act applies regardless of whether the original image was taken by the offender, shared by someone else, or generated through tools like Grok AI.
If an AI-generated image depicts a real, identifiable person in a way that could be considered intimate, obscene, or offensive and is disseminated without consent, it could fall within these prohibitions.
Also Read: EXPLAINER: How Kenya’s Proposed Police Digital Intelligence Unit Would Work and Where It Stops
Beyond the Cybercrimes Act, Kenya’s Constitution (Article 31(c)) guarantees the right to privacy, including control over one’s personal information and images.
Unauthorised publication of images that depict a person in a private or intimate context can therefore be actionable not only under the Cybercrimes Act, but also as a breach of constitutional privacy rights.
Complementing cybercrime and constitutional protections, the Penal Code and media laws also regulate the distribution of obscene material.
Section 181(1)(a) of the Penal Code criminalises possession, trade, or distribution of “obscene cinematograph films” that tend to corrupt morals, and while this traditionally applied to films and printed media, similar principles may be invoked for visual media that are obscene or intended to degrade.
Kenyan law imposes rigorous penalties for depictions involving minors.
The Sexual Offences Act 2006 criminalises possession, exhibition, distribution, and creation of indecent images of children.
Penalties include imprisonment and substantial fines.
Any AI content that depicts minors, real or AI-generated in realistic form, in sexualised contexts would likely trigger these provisions, given their focus on protecting children from sexual exploitation.
Also Read: Ruto’s Govt to Establish a “Social Media” Police Unit Before 2027
Legality does not operate in isolation from societal norms and platform rules.
Even if a bikini image is not classified as inappropriate under legal definitions, capturing or generating images that impersonate or exploit real individuals without consent violates privacy norms and could expose individuals to reputational harm.
While Kenyan law focuses primarily on unlawful dissemination and obscene content, model releases and consent practices remain vital in any image production or sharing context.
Social media platforms themselves have terms of service that may prohibit non-consensual imagery and give users avenues to report and remove such content, even absent explicit local law enforcement action.
Follow our WhatsApp Channel and WhatsApp Community for instant news updates

Compilation of Top Social Media Platforms. PHOTO/ Courtesy.