Stable Diffusion is accessible at no charge, but is neither free (libre) software nor open source, as their “don’t use for bad things” clauses run afoul of “freedom 0” aka “no discrimination against fields of endeavour” fundamental to both notions.
They have no way to enforce that "no bad things" clause. In practice they provide a product with no restrictions. Unlike other AI image generators - there's no keyword filter - you can input whatever you want in there.
Is that a “copyright law is unsalvageable, screw it, do crimes” that I’m hearing? I am not ... unsympathetic to that viewpoint. Until I come across any evidence at all that the SD license was written with it in mind, though, I can only believe that they meant what they wrote (or others did at their behest), and that they really did want to prohibit uses they don’t like on pain of civil and criminal prosecution. That’s a stance the current legal realities permit, but I cannot with a straight face associate it with FOSS.