CivArchive
    Civitai API EZ Image Downloader - PY_Only
    NSFW
    Preview 87995157

    Civitai API EZ Image Downloader

    • Select by Model or User Name

    • Fast Download of all Images for a Model or User


    I created this as a way to quickly see all the high resolution images that had been posted to a given model without the need of clicking way to many buttons.

    Description

    FAQ

    Comments (28)

    iodrg244Jul 13, 2025· 2 reactions
    CivitAI

    nice. it works well. would it be difficult to add videos as a download option?

    Edit: user malfunction. It does download videos : )

    Felldude
    Author
    Jul 13, 2025· 1 reaction

    I think the API considers videos as images, I noticed videos are downloaded along with the images.

    iodrg244Jul 13, 2025· 1 reaction

    @Felldude ah my bad. I thought "none" would function as downloading all types, soft/mature/x but it looks like "X" serves that purpose. Thanks! Fantastic tool and fast.

    Tillea_VilleaJul 13, 2025· 2 reactions
    CivitAI

    How it use?

    Felldude
    Author
    Jul 13, 2025· 1 reaction

    from cmd or terminal "python Civitai_Image_API.py"

    iodrg244Jul 13, 2025

    file extension .py is associated with Python for me so I just double-click on the file in filemanager and it launches.

    Felldude
    Author
    Jul 13, 2025

    normally I include a .bat the makes a venv and installs the requirements but I did not on this...I might update it later

    spincritJul 20, 2025

    What do you mean "from cmd"?

    qekJul 21, 2025

    spincrit the Command Prompt app in Windows

    iodrg244Jul 13, 2025· 1 reaction
    CivitAI

    Another question. how many images = a "page"? I'm trying to download more than 200 image/videos in a single model ID. I was able to get 200. I started 2nd run with page 200 (all time) but wasn't able to download any more. Does it download most recent to oldest by default?

    I got error message:

    Error on page 200: 429 Client Error: Too Many Requests for url: https://civitai.com/api/v1/images?limit=200&page=200&modelId=1684874&nsfw=X&period=AllTime

    I know, classy : )

    when trying to run page 200 start 400 end. Maybe there's a timeout. I switched IP via VPN but got same message. I'm not sure what a "page" is in terms if images though, maybe I'm requesting a range beyond the total.

    Felldude
    Author
    Jul 13, 2025

    So you can request up to 200 images per page, although 100 seems to cause less errors, unless you know for a fact there are over 40k images on a given model 200 starting page is quite high

    Felldude
    Author
    Jul 13, 2025

    The limit is a per page limit and it is poorly explained in the gui

    iodrg244Jul 13, 2025· 1 reaction

    Thanks! so Limit 200, Page Start 1, Page End 2 would result in 400 images/videos? I did a second run with 200 Page start 2, End page 2 and it tapped out at 288 images (I'm assuming that's everything in the gallery). Thanks again for sharing this!

    Felldude
    Author
    Jul 13, 2025

    @iodrg244 Likely that is everything, unless you are running 100's of multiple request on the same IP you should only get rejected by the API when nothing is there. I

    druelchaosJul 14, 2025· 2 reactions
    CivitAI

    does it include metadata, like generation info ?

    Felldude
    Author
    Jul 16, 2025· 1 reaction

    I did not test that - it is sourcing the lower quality version of the image currently rather then the .png

    arrtJul 19, 2025

    Metadata is in EXIF no matter what as long as you're using the online generator for both downloads and the screen image, haven't checked with local gens.

    EDIT: goes for local gens as well, as long as it's meta the user submitted.

    GamaloniaJul 22, 2025· 1 reaction

    If the image has metadata included than = yes! Sometimes it hasn't.

    arrtJul 19, 2025· 2 reactions
    CivitAI

    Going to get a lot of traffic now with the UK restrictions.

    spincritJul 24, 2025

    And if only I had figured out how to download my entire gallery instead of just my most recent 200.

    spincritJul 19, 2025· 2 reactions
    CivitAI

    I, don't know how to use a .py. I thought it would be like, an exe or something.

    arrtJul 19, 2025

    need to install runtime first

    spincritJul 20, 2025

    unfortunately I have no idea how to use this

    spincritJul 20, 2025· 3 reactions
    CivitAI

    Alright with the UK ban coming up I really, REALLY need help from someone to tell me how to use this, I don't have any way to find out.

    Felldude
    Author
    Jul 20, 2025

    a video tutorial on installing python and basic requirements would be the way to go

    spincritJul 21, 2025

    Felldude Couldn't find anything along those lines and I'm running out of time. Every time I open this with python, cmd flashes and nothing further happens.

    Felldude
    Author
    Jul 21, 2025· 1 reaction

    spincrit The version with the bat should install everything for you and launch

    spincritJul 22, 2025

    Felldude What are you talking about?

    Other
    Other

    Details

    Downloads
    146
    Platform
    CivitAI
    Platform Status
    Available
    Created
    7/13/2025
    Updated
    9/12/2026
    Deleted
    -

    Files

    civitaiAPIEZImage_pyOnly.zip

    Mirrors

    CivitAI (1 mirrors)