Skip to content

Site API Guide ​

This section covers everything you need to start building against the Civitai site API: generating a token, making your first request, paginating results, handling errors, and working with AIR identifiers. It is also where the civitai CLI is documented.

The REST API ​

For a per-endpoint breakdown (parameters, response fields, examples), see the Reference.

The civitai CLI ​

The same binary reads these endpoints, downloads model files, and runs generations on your own account.

To author and ship a Civitai App with the same binary, see the Apps guide.

Civitai Developer Documentation