Skip to main content

A package to download models from CivitAI

Project description

Model Downloader for CivitAI

Model Downloader Package for Python Developer and CLI for CivitAI.

It is recommanded on Amazon Web Services, Microsoft Azure, Google Cloud Platform.

How to Use

First, Install civitai-model-downloader

# Install from PyPI
pip3 install civitai-model-downloader

# Install from GitHub
pip3 install git+https://github.com/bean980310/civitai-downloader.git

# Install from Source
git clone https://github.com/bean980310/civitai-downloader.git
cd civitai-downloader
pip3 install -e .

and, Insert your Access token

from civitai_downloader.token.token import prompt_for_civitai_token

prompt_for_civitai_token()

Import Your CivitAI API Token and Next, Download a model

from civitai_downloader.token.token import get_token
from civitai_downloader.download.download import civitai_download, url_download

token=get_token()

# example
url_download(url="https://civitai.com/api/download/models/90854", local_dir="./models/checkpoints/sd15", token=token)

# or
civitai_download(model_id=90854, local_dir="./models/checkpoints/sd15", token=token)

Also, you can use to civitai-downloader command line

# example
civitai-downloader-cli download 90854

# prefix local dir
civitai-downloader-cli download 90854 --local-dir ./models/checkpoints/sd15

# to use url
civitai-downloader-cli url-download https://civitai.com/api/download/models/90854

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

civitai_model_downloader-0.3.14.tar.gz (46.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

civitai_model_downloader-0.3.14-py3-none-any.whl (37.7 kB view details)

Uploaded Python 3

File details

Details for the file civitai_model_downloader-0.3.14.tar.gz.

File metadata

File hashes

Hashes for civitai_model_downloader-0.3.14.tar.gz
Algorithm Hash digest
SHA256 75eaaf46aeb9379ade18033fb80563f0ffcb17052495142dca90c4563c4d1d46
MD5 bfb467cc2229805088eb91126cfdf63d
BLAKE2b-256 8b8e3ed0f969379cd1d02a2b61b61ca07f548f50d0fe49b2929790661d2bd4b2

See more details on using hashes here.

File details

Details for the file civitai_model_downloader-0.3.14-py3-none-any.whl.

File metadata

File hashes

Hashes for civitai_model_downloader-0.3.14-py3-none-any.whl
Algorithm Hash digest
SHA256 919d22b041171355994d667041c65a79201bf851a7f655b30038a0b1987e37a6
MD5 83bd1615b1fa9a55e22a940a2411952b
BLAKE2b-256 fc34c0661327e692a4b3c295ff27070a00523cf3b70d7bfa706536adadfbddae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page