Generating images using the most famous model, DALL.E, by integrating OpenAI API.
1- Sign up for OpenAI
2- Generate your secret API-key using the api-key generator in this link
3- Refer to this Notebook and paste your secret API-key into my_api_key variable.
4- You're ready to generate images using texts:)
The image below was an example when:
openai.Image.create(prompt = "Biomedical Engineer works with the medical imaging system",
n = 4,
size = "1024x1024"
)
- OpenAI API Documentation, Libraries, Python Bindings [Accessed at 11-Jan-2023]
- OpenAI API Documentation, Guides, Image Generation [Accessed at 11-Jan-2023]
- OpenAI API Documentation, API Reference, Authentication [Accessed at 11-Jan-2023]
- OpenAI API Repository, OpenAI Python [Accessed at 11-Jan-2023]