Hi! Sometimes I can download models from Civitai, using wget. But other times, I can´t. Example:

Solution:
curl -LOJH "Authorization: Bearer xxxxxx" https://civitai.com/api/download/models/342732?type=Model&format=SafeTensor&size=pruned&fp=fp16
curl -LOJH "Authorization: Bearer xxxxxx" https://civitai.com/api/download/models/342732?type=Model&format=SafeTensor&size=pruned&fp=fp16
you would need generate own API key and replace xxxxxx...
Jump to solution
8 Replies
Madiator2011
Madiator20119mo ago
some models on civatic requires login before download
ricardo_neurona
ricardo_neuronaOP9mo ago
But I am logged in... And I can download it in local, but no wget to runpod
Madiator2011
Madiator20119mo ago
cause on runpod you are on another machine
Solution
Madiator2011
Madiator20119mo ago
curl -LOJH "Authorization: Bearer xxxxxx" https://civitai.com/api/download/models/342732?type=Model&format=SafeTensor&size=pruned&fp=fp16
curl -LOJH "Authorization: Bearer xxxxxx" https://civitai.com/api/download/models/342732?type=Model&format=SafeTensor&size=pruned&fp=fp16
you would need generate own API key and replace xxxxxx
ricardo_neurona
ricardo_neuronaOP9mo ago
Thanks! gonna try this It works! Thanks so much. But why is not working using wget?
Madiator2011
Madiator20119mo ago
@ricardo_neurona for wget you would need something like this but not sure it will work wget --header="Authorization: Bearer xxxxxx" --content-disposition "https://civitai.com/api/download/models/342732?type=Model&format=SafeTensor&size=pruned&fp=fp16"
ricardo_neurona
ricardo_neuronaOP9mo ago
🙌
Refime
Refime9mo ago
@Nima perfect
Want results from more Discord servers?
Add your server