To use DALL-E 2 to generate images, you need to create an account on OpenAI DALL-E 2 service using your email id and phone number. After that, you can sign in and enter your text description to generate images or upload existing images to edit or generate variations based on them.