🔑Get API key

In order to generate art from text we need an AI model called Stable Diffusion.

Get the token from replicate

Please go to this website: https://replicate.com/stability-ai/stable-diffusion, and click on Run With Api. It will ask you to login with Github, so just do it.

After you create an account using Github, please head to your account page and copy the TOKEN given to you from here https://replicate.com/stability-ai/stable-diffusion

Secure you api key

to prevent your api key from getting leaked, we will paste it in firebase so that no one can get it.

firest step go to your firebase dashboard -> firestore

create new collection named api. inside that collection, create new document called key, then add new field in that document, call it key and give it a value like this:

Token (Your api key)

Last updated