Skip to content

Commit d4de328

Browse files
committed
Update README.md
1 parent 147d0d1 commit d4de328

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff 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

2931
Clone the project
@@ -34,6 +36,12 @@ Clone the project
3436

3537
Go 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
```

0 commit comments

Comments
 (0)