I’ve been entering my api key like this on a jupyter notebook.
import os
import replicate
os.environ[“REPLICATE_API_TOKEN”] = “”
api = replicate.Client(api_token=os.environ[“REPLICATE_API_TOKEN”])
but everytime I try to run a command I get the error ” ReplicateError Details:
title: Unauthenticated
status: 401
detail: You did not pass a valid authentication token”. Does anyone know how to fix this, I’ve tried changing the api token multiple times and I still get the same error? Thanks
Aditya Ap is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.