---
title: "Comment by Favourite Jome on \"ScriptGenie: ai-powered scriptwriting for short videos\" | Hashnode"
description: "I see myself using ScriptGenie; however, I couldn't set up the Groq model; I keep getting the error saying, \"the model does not exist or you do not have access"
url: "https://hashnode.com/posts/scriptgenie-ai-powered-scriptwriting-for-short-videos/66a610db9eca075a951017ba/comment/66a6b771c4f37ac3c8c253bf"
---

[Discussion](https://hashnode.com/posts/scriptgenie-ai-powered-scriptwriting-for-short-videos/66a610db9eca075a951017ba)

Comment [ScriptGenie: ai-powered scriptwriting for short videos](https://hashnode.com/posts/scriptgenie-ai-powered-scriptwriting-for-short-videos/66a610db9eca075a951017ba)

[Favourite Jome](https://hashnode.com/@Favourite)

[Jul 28, 2024](https://hashnode.com/posts/scriptgenie-ai-powered-scriptwriting-for-short-videos/66a610db9eca075a951017ba/comment/66a6b771c4f37ac3c8c253bf)

I see myself using ScriptGenie; however, I couldn't set up the Groq model; I keep getting the error saying, _"the model does not exist or you do not have access to it."_

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1722201828583/f4e1b422-7c13-4ffa-adac-439ad1920a1d.png)

If you could clarify how to set it up clearly, it would be a big help. Cool project nonetheless.

[Enrique Cardoza](https://hashnode.com/@thatCardoza)

[Jul 28, 2024](https://hashnode.com/posts/scriptgenie-ai-powered-scriptwriting-for-short-videos/66a610db9eca075a951017ba/comment/66a6b771c4f37ac3c8c253bf#reply-66a6cf3bd403dbc4778a567d)

thanks for testing it.

did you add the '.env.local' at the root of the folder?

[Enrique Cardoza](https://hashnode.com/@thatCardoza)

[Jul 28, 2024](https://hashnode.com/posts/scriptgenie-ai-powered-scriptwriting-for-short-videos/66a610db9eca075a951017ba/comment/66a6b771c4f37ac3c8c253bf#reply-66a6cfd8eee0303c0e0ed86e)

If you have already set up the '.env.local' file you need to add the environment variables in Step 3:

[cardoza.hashnode.dev/scriptgenie-ai-powered-scrip…](https://cardoza.hashnode.dev/scriptgenie-ai-powered-scriptwriting-for-short-videos#heading-3-define-your-environment-variables)

For the Groq API key, you only need to create an account and create a new on.

Let me know if you need some assistant with it.

[Favourite Jome](https://hashnode.com/@Favourite)

[Enrique Cardoza](https://hashnode.com/@thatCardoza)

[Jul 28, 2024](https://hashnode.com/posts/scriptgenie-ai-powered-scriptwriting-for-short-videos/66a610db9eca075a951017ba/comment/66a6b771c4f37ac3c8c253bf#reply-66a6d59701d5b9f10765a3f1)

in case you are trying to use keywords for tacking your metrics, you will need to go through an account validation process.

but for using it with Groq, make sure your model is configured like this on `src/app/actions.tsx`:

```
const model = groq('llama3-70b-8192')
```

Step 5 is completely optional to run the app on local. Feel free to run it following from step 1 to 4.

[cardoza.hashnode.dev/scriptgenie-ai-powered-scrip…](https://cardoza.hashnode.dev/scriptgenie-ai-powered-scriptwriting-for-short-videos#heading-how-to-use-it-locally)
