This is an experimental iOS App that make use of the OpenAI API to generate images. The app allows the user to generate an image from a description and save it to the Photo Library.
- A valid OpenAI API key
- Xcode 14.0 or later
- A simulator running iOS 16.0 or later
- Clone the repository and open it in Xcode.
- Create a new plist file called OpenAI-Info.plist.
- Add a new key/value pair to OpenAI-Info.plist (chose
API_KEY
for the name of the key).1 - Generate an OpenAI API key and add it to the project as a
String
type in theValue
field of the newly created plist file. - Build and run the app.
- Images are limited to 1024x1024 pixels due to OpenAI API constraints.
- Real-time geenration using DALL·E 2 API is still far from perfect, so please use it with some expectations.
- Free trial of OpenAI APIs includes 3 months of usage and $18.00.
- This is an experimental app and should be used with caution.
- OpenAI provides no dependencies or guarantees regarding the accuracy or reliability of the results generated by the API.
- All code here is released under the MIT license, which permits commercial use, modification, distribution, and private use.