Natural language text with specific characteristics or styles

Hi, I am Emmanuel Katto from UK. I wanna know how can developers effectively utilize OpenAI’s API to generate natural language text with specific characteristics or styles, such as formal, casual, humorous, or technical?