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
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.
Hi Neha,
Attaching the oml here.
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 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?
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