Civitai logo

Civitai

Free tier

Discover, share, and create AI-generated art with community-built models

Free tier available·All audiences·Powered by Stable Diffusion (community models)·API available

Key strengths

Largest community-driven repository of Stable Diffusion models, LoRAs, and checkpointsBuilt-in AI image and video generation powered by community modelsBuzz-based virtual economy for tipping creators and accessing premium featuresRich model discovery with detailed metadata, sample images, and community reviewsActive creator ecosystem with challenges, articles, and comics
Free tier + paid plans
San Francisco, USA
Founded 2022
No ratings yet

Civitai API & Developer Integration

REST API Overview

Civitai exposes a public REST API for querying the model repository. The base URL is:

https://civitai.com/api/v1

Key Endpoints

  • GET /models — List models with filters for query, tag, type, sort, period, nsfw, limit, and page.
  • GET /models/{modelId} — Retrieve detailed metadata for a specific model including versions, files, and download URLs.
  • GET /model-versions/{modelVersionId} — Fetch a specific model version, including SHA256 hashes and direct download links.
  • GET /images — Browse community images with filter support for model version, username, and content rating.

Example Request

curl "https://civitai.com/api/v1/models?limit=5&sort=Most+Downloaded&types=LORA" \
  -H "Authorization: Bearer YOUR_API_KEY"

Authentication

An API key (Bearer token) is required for authenticated requests and to access certain content. Keys are generated from your account settings.

Model File Downloads

Each model version object contains a files array with direct CDN download URLs, file sizes, and SHA256 hashes for integrity verification — useful for automating model pulls in CI pipelines or custom UIs.

API Status

A live API status page is available at civitai.com to monitor uptime and known issues before building dependent services.