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 import login

login()

Import Your CivitAI API Token and Next, Download a model

from civitai_downloader import login
from civitai_downloader import civitai_download, url_download

login()

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

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

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.4.7.tar.gz (57.9 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.4.7-py3-none-any.whl (57.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: civitai_model_downloader-0.4.7.tar.gz
  • Upload date:
  • Size: 57.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for civitai_model_downloader-0.4.7.tar.gz
Algorithm Hash digest
SHA256 f91ad14299dcff41aba401297742e683055237d864caf98f20a0b45b2e8aad08
MD5 68c019d4a6e2079ce563eace26c0385f
BLAKE2b-256 d5857a9669c06c2f6539b3774d8b65635f00489f57a94de305bb4a2bbb63865e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for civitai_model_downloader-0.4.7-py3-none-any.whl
Algorithm Hash digest
SHA256 3066e2e0dc5f09b198464d90adc4c18429cf653ad85767722bc60f6b8957b738
MD5 66cdb6e5a1264487c14bc0e0712d3716
BLAKE2b-256 ad88c05d39f901734195ce3c366e9209a03cd5e6d3d85adb99f1f652655589a4

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