Civitai · JSON Structure

Civitai Model Structure

Structural mapping of the Civitai Model resource — entity relationships, identifiers, and primary lookup paths.

Type: Properties: 0
Artificial IntelligenceImage-GenerationVideo GenerationStable DiffusionSDXLFluxLoRAModel HostingCommunityGenerative AI

Civitai Model Structure is a JSON Structure definition published by Civitai. It conforms to the https://json-structure.org/draft-01/schema meta-schema.

Meta-schema: https://json-structure.org/draft-01/schema

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/draft-01/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/civitai/main/json-structure/civitai-model-structure.json",
  "title": "Civitai Model Structure",
  "description": "Structural mapping of the Civitai Model resource — entity relationships, identifiers, and primary lookup paths.",
  "entity": "civitai:Model",
  "primaryKey": "id",
  "naturalKeys": ["name", "creator.username"],
  "relationships": [
    {
      "name": "modelVersions",
      "type": "hasMany",
      "target": "civitai:ModelVersion",
      "lookup": "/api/v1/model-versions/{id}"
    },
    {
      "name": "creator",
      "type": "belongsTo",
      "target": "civitai:Creator",
      "lookup": "/api/v1/creators?query={username}"
    },
    {
      "name": "tags",
      "type": "hasMany",
      "target": "civitai:Tag",
      "lookup": "/api/v1/tags?query={name}"
    },
    {
      "name": "images",
      "type": "hasMany",
      "target": "civitai:Image",
      "lookup": "/api/v1/images?modelId={id}"
    }
  ],
  "identifiers": {
    "id": "Civitai numeric model ID",
    "air": "AI Resource Identifier (urn:air:...) for a specific ModelVersion",
    "hashes": "Content-addressable file identifiers (AutoV1, AutoV2, SHA256, CRC32, Blake3)"
  },
  "lookupPaths": [
    "/api/v1/models/{id}",
    "/api/v1/model-versions/{id}",
    "/api/v1/model-versions/by-hash/{hash}"
  ]
}

Work with this as data

Every JSON Structure here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Structure
curl "https://apis.io/api/v1/json-structures/civitai-model-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.