Negative prompts for the inference api

Does this also work for Stable Diffusion 1-5, or just 2?