🔑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

Paste the token in the app

Please open the app files, then open the api folder then open the APIConstants.kt file. api/APIConstants.kt

You can see the TOKEN_KEY variable, paste your key between these two parentheses " ", in other words, change the YOUR-OWN-API-KEY to your own token.

Last updated