14
Views
5
Comments
unable to use stable diffusion

Hi,

I was trying to mimic the code that is being presented in the video below:

https://youtu.be/dnJQejvCVyc?si=_hCVQ8PGXUYPH5XY

But when I run the code, I got the error "401 Unauthorized" as can be seen in the attached snapshot. Is it because I am using the free version of Service Studio as part of my learning efforts? Or the Stable Diffusion based forge component that I downloaded (for it to be used in the code) needs authorization?

Appreciate your answers/thoughts/replies/ideas.


Thanks



401.jpg
2023-11-20 06-53-17
Neha Rathore

Hi Prabhu,

401 error is when the request lacks valid authentication credentials for the target resource. 

So you might not have the access to the API they might be using.

If you can share the OML we can have a look and could help you.

Thanks

2023-12-08 17-21-38
Prabhu Sanguthiagarajan

Hi Neha,

Attaching the oml here.

Thanks

prodimage.oml
2023-11-20 06-53-17
Neha Rathore

Hi Prabhu,

You are not sending Auth_Token

This is necessary and also even you try to test this it is giving error.


Hope this helps

Thanks

2023-12-08 17-21-38
Prabhu Sanguthiagarajan

Hi Neha,

Thanks for looking into this. However, I am not that adept in APIs. Can you please let me know what token value I need to provide. Moreover, am I right in assuming that you are also encountering the same error as me?

Thanks


2023-11-20 06-53-17
Neha Rathore

Hi Prabhu,

Yes I am also facing the same issue, it will be better if you can explore this API

https://api.replicate.com/v1/predictions

Refer to this link.

https://replicate.com/docs/reference/http#authentication

Hope this helps

Thanks



Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.