Tex. Penal Code § 21.165 — TX Code / Code pe / Chapter 21 / Section 21.165
§ 21.165. UNLAWFUL PRODUCTION OR DISTRIBUTION OF CERTAIN SEXUALLY EXPLICIT MEDIA.
Status: in_force

(a) In this section:

(1) "Deep fake media" means a visual depiction created or altered through the use of software, machine learning, artificial intelligence, or any other computer-generated or technological means, including by adapting, modifying, manipulating, or altering an authentic visual depiction manually or through an automated process, that appears to a reasonable person to depict a real person, indistinguishable from an authentic visual depiction of the real person, performing an action that did not occur in reality.

(2) "Intimate parts" and "sexual conduct" have the meanings assigned by Section 21.16.

(3) "Visual depiction" means a photograph, motion picture film, videotape, digital image or video, or other visual recording.

(b) A person commits an offense if, without the effective consent of the person appearing to be depicted, the person knowingly produces or distributes by electronic means deep fake media that appears to depict the person:

(1) with visible computer-generated intimate parts or with the visible intimate parts of another human being as the intimate parts of the person; or

(2) engaging in sexual conduct in which the person did not engage.

(b-1) A person commits an offense if the person intentionally threatens to produce or distribute deep fake media with the intent to coerce, extort, harass, or intimidate another person.

(b-2) Consent required by Subsection (b) is valid only if the person appearing to be depicted knowingly and voluntarily signed a written agreement that was drafted in plain language. The agreement must include:

(1) a general description of the deep fake media; and

(2) if applicable, the audiovisual work into which the deep fake media will be incorporated.

(c) An offense under Subsection (b) is a Class A misdemeanor, except that the offense is a felony of the third degree if it is shown on the trial of the offense that:

(1) the actor has been previously convicted of an offense under this section; or

(2) the person appearing to be depicted is younger than 18 years of age.

(c-1) An offense under Subsection (b-1) is a Class B misdemeanor, except that the offense is a Class A misdemeanor if it is shown on the trial of the offense that:

(1) the actor has been previously convicted of an offense under this section; or

(2) the actor threatened to produce or distribute deep fake media appearing to depict a person younger than 18 years of age.

(c-2) It is not a defense to prosecution under this section that the deep fake media:

(1) contains a disclaimer stating that the media was unauthorized or that the person appearing to be depicted did not participate in the creation or development of the deep fake media; or

(2) indicates, through a label or otherwise, that the depiction is not authentic.

(c-3) It is an affirmative defense to prosecution under this section that the production or distribution of the deep fake media occurs in the course of:

(1) lawful and common practices of law enforcement;

(2) reporting unlawful activity; or

(3) a legal proceeding, if the production or distribution is permitted or required by law.

(c-4) It is an affirmative defense to prosecution under Subsection (b) that the actor:

(1) is an Internet service provider, cloud service provider, cybersecurity service provider, communication service provider, or telecommunications network that transmits data; and

(2) acted solely in a technical, automatic, or intermediate nature.

(c-5) It is an affirmative defense to prosecution under Subsection (b) that the actor:

(1) is a provider or developer of a publicly accessible artificial intelligence application or software that was used in the creation of the deep fake media;

(2) included a prohibition against the creation of deep fake media prohibited by this section in the actor's terms and conditions or user policies that are required to be acknowledged by a user before the user is granted access to the artificial intelligence application or software; and

(3) took affirmative steps to prevent the creation of deep fake media prohibited by this section through technological tools, such as:

(A) training the artificial intelligence application or software to identify deep fake media prohibited by this section;

(B) providing effective reporting tools for deep fake media prohibited by this section;

(C) filtering deep fake media prohibited by this section created by the artificial intelligence application or software before the media is shown to a user; and

(D) filtering deep fake media prohibited by this section from the artificial intelligence application or software data set before the data set is used to train the application or software.

(d) If conduct that constitutes an offense under this section also constitutes an offense under another law, the actor may be prosecuted under this section or the other law.

(e) The court shall order a defendant convicted of an offense under this section to make restitution to the victim of the offense for any psychological, financial, or reputational harm incurred by the victim as a result of the offense.