Open formulake opened 1 month ago
Replicate black-forest-labs/flux-pro ReplicateError Details: title: Unauthenticated status: 401 detail: You did not pass a valid authentication token
I followed the steps to set the API as instructed and tried two different tokens but it keeps throwing this back at me.
Exactly the same issue and tried 2 tokens.
running on ComfyUI_windows_portable
set REPLICATE_API_TOKEN="****************************" .\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build --disable-auto-launch pause
HTTP Request: POST https://api.replicate.com/v1/predictions "HTTP/1.1 401 Unauthorized" !!! Exception during processing !!! ReplicateError Details: title: Unauthenticated status: 401 detail: You did not pass a valid authentication token
OK!! worked it out after messing about I realised that you shouldnt have quotation marks!!
Create new bat file called
run_replicate.bat
add the follwing with your api key without " "
set REPLICATE_API_TOKEN=1233987abcdefg
.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build
run the file with run_replicate.bat
on Mac there is no bat files so you would need to type it into terminal. Navigate to username Comfyui %
folder on terminal and copy paste the line below adding your api key
set REPLICATE_API_TOKEN=1233987abcdefg python3 main.py
on my mac its python3 but could be whatever you installed. py, python are other options
SIDE NOTE: now its working, not sure if its possible, but this would be so cool if we can run controlnets etc and then just use the processing power at replicate
Hi! I work with Pinokio, and I tried EVERYTHING to add an API token, with no success so far. I tried adding it in the "ENVIRONMENT" file in Pinokio (both in the app folder and in ComfyUI folder), but I still get this error (the same as formulake,:
Replicate black-forest-labs/flux-pro ReplicateError Details: title: Unauthenticated status: 401 detail: You did not pass a valid authentication token
What did I do wrong?
I finally had to create an environment variable in Windows to get this working. Hit the windows key and type environment variable to bring up the box. You want to create a new user variable with the variable name as REPLICATE_API_TOKEN and the value set to your key. On MacOS, I had to modify the ZSH file and create the environment variable. It started working fine after that.
Thanks for your reply, but this doesn't work (I tried on 2 different computers). At least with Pinokio. I also modified the "ENVIRONMENT" file in Pinokio (both in the app and/or in the comfyUI folder), but still doesn't work for now... :'(
Replicate black-forest-labs/flux-pro ReplicateError Details: title: Unauthenticated status: 401 detail: You did not pass a valid authentication token
I followed the steps to set the API as instructed and tried two different tokens but it keeps throwing this back at me.