File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,15 @@ This is a simple image generator using [OpenAI API](https://openai.com/api/). yo
1717## How to use
1818
1919- type a short description of the image or a keyword
20- - click on the generate button and wait for the images to load
20+ - click on the generate button and wait 3-5 seconds for the images to load
2121- you will get 3 images generated by the API
2222
2323## API Reference
2424
2525[ OpenAI API] ( https://openai.com/api/ )
2626
27+ ` Note: ` Sign up for an API key and add it to the ` api.js ` file
28+
2729## Run Locally
2830
2931Clone the project
@@ -34,6 +36,12 @@ Clone the project
3436
3537Go to the project directory
3638
39+ 1 . Create api.js file in the root directory and add your API key
40+
41+ ``` javascript
42+ const api = " YOUR_API_KEY" ;
43+ ```
44+
3745``` bash
3846 cd image-generator-openai
3947```
You can’t perform that action at this time.
0 commit comments