Civitai model version API

Use the Civitai model version API to retrieve model or version metadata and published resource information. Choose the documented selection using source record ID (id), model-file hash (hash); refine the result with adult-content inclusion flag (include_nsfw). Inspect model versions and file metadata, compare base-model compatibility and locate published download references. Results are model-resource metadata and version references. Generation support flags describe the source model and do not execute inference, training or image generation. The detail page provides the supported parameters, request examples, available response examples and usage pricing for this operation.

Selected price
$0.002 / billing creditPublished pricing
Sellers / implementations
1 / 1
Requests · 30d
—Loading...
Success rate · 30d
—Loading...

Run sends a real API request. Charges follow the published API contract.

Request parameters
Optional parameters (8)
Model version id, or a civitai.com link with ?modelVersionId=.
A model file hash (finds the version a downloaded file belongs to).
Opt in to adult content: `true` also returns adult models and images, each with its content rating (`nsfw`, `nsfw_level`). Default off.
0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
1 skips the 24-hour cache and fetches live.
JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.
Native CSV/NDJSON record selector; it has no effect on this JSON-only product.

Sample response

{
  "availability": null,
  "base_model": "SD 1.5",
  "base_model_type": "Standard",
  "cached": false,
  "created_at": "2023-07-31T08:00:27.426Z",
  "credits_used": 1,
  "description": "<p>The required VAE is already baked into the model.<br /><br />This version (Code_1284) is a fix for many issues of 5.0 (<u>artifacts, ugly…",
  "download_url": "https://civitai.com/api/download/models/130072",
  "files": [
    {
      "download_url": "https://civitai.com/api/download/models/130072?fileId=94300",
      "hashes": {
        "AutoV1": "F95D2E44",
        "AutoV2": "139AC005D4",
        "BLAKE3": "205A6ADCDEA77D98089653AA3372FB30EC38E93C46B79B0A9B00B2A07A704B7C",
        "CRC32": "38FEBCD3",
        "SHA256": "139AC005D4D1E33C6335F5651ABB3D2E4654DC0520AEDFEA07909BDD20435518",
        "SHA256_12": "139AC005D4D1"
      },
      "id": 94300,
      "metadata": {
        "format": "PickleTensor",
        "fp": "fp16",
        "size": "full"
      },
      "name": "realisticVisionV60B1_v51VAE_94300.ckpt",
      "primary": false,
      "scan": {
        "pickle": "Success",
        "scanned_at": "2023-07-31T08:27:30.586",
        "virus": "Success"
      },
      "size_kb": 4165379.6484375,
      "type": "Model"
    },
    {
      "download_url": "https://civitai.com/api/download/models/130072?fileId=94298",
      "hashes": {
        "AutoV1": "A0F13C83",
        "AutoV2": "15012C538F",
        "BLAKE3": "013543ADE69517662AC86E97A113B994679F33CD69B573D68C4D51F5457C9528",
        "CRC32": "FFE8B9E1",
        "SHA256": "15012C538F503CE2EBFC2C8547B268C75CCDAFF7A281DB55399940FF1D70E21D",
        "SHA256_12": "15012C538F50"
      },
      "id": 94298,
      "metadata": {
        "format": "SafeTensor",
        "fp": "fp16",
        "size": "pruned"
      },
      "name": "realisticVisionV60B1_v51VAE_94298.safetensors",
      "primary": true,
      "scan": {
        "pickle": "Success",
        "scanned_at": "2023-07-31T08:16:29.099",
        "virus": "Success"
      },
      "size_kb": 2082642.474609375,
      "type": "Model"
    },
    "… 2 more"
  ],
  "id": 130072,
  "images": [
    {
      "base_model": null,
      "created_at": null,
      "hash": "UMD+l7~qAcpJI;tR?a%M9aM{w]xFWBt6xuof",
      "height": 960,
      "id": null,
      "meta": {
        "Model": "realisticVisionV51",
        "Model hash": "ef76aa2332",
        "Size": "640x960",
        "VAE": "vae-ft-mse-840000-ema-pruned.safetensors",
        "VAE hash": "551eac7037",
        "Version": "v1.6.0",
        "cfgScale": 7,
        "hashes": {
          "model": "ef76aa2332"
        },
        "negativePrompt": "(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime, mutated hands and fingers:1.4), (deformed…",
        "prompt": "RAW photo, face portrait photo of beautiful 26 y.o woman, cute face, wearing black dress, happy face, hard shadows, cinematic shot, dramatic…",
        "resources": [
          {
            "…": "3 fields"
          }
        ],
        "sampler": "DPM++ SDE Karras",
        "seed": 3898569358,
        "steps": 25
      },
      "page_url": null,
      "post_id": null,
      "type": "image",
      "url": "https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/0dcee20e-415c-42c3-92bc-d596f9b45289/original=true/2375288.jpeg",
      "username": null,
      "width": 640
    },
    {
      "base_model": null,
      "created_at": null,
      "hash": "UEB{ie~V0L0L^*t79ZM{NGWqxaoMELR%xaoL",
      "height": 768,
      "id": null,
      "meta": {
        "Model": "Realistic_Vision_V5.1",
        "Model hash": "ef76aa2332",
        "Size": "640x768",
        "Version": "v1.5.1",
        "cfgScale": 7,
        "hashes": {
          "model": "ef76aa2332"
        },
        "negativePrompt": "(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime, mutated hands and fingers:1.4), (deformed…",
        "prompt": "high quality, face portrait photo of 30 y.o european man, wearing black shirt, serious face, detailed face, skin pores, cinematic shot, dram…",
        "resources": [
          {
            "…": "3 fields"
          }
        ],
        "sampler": "DPM++ SDE Karras",
        "seed": 3776793451,
        "steps": 25
      },
      "page_url": null,
      "post_id": null,
      "type": "image",
      "url": "https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/7052f043-d0ac-4893-936c-e07a62948726/original=true/2023636.jpeg",
      "username": null,
      "width": 640
    },
    "… 6 more"
  ],
  "model": {
    "name": "Realistic Vision V6.0 B1",
    "poi": false,
    "type": "Checkpoint"
  },
  "model_id": 4201,
  "name": "V5.1 (VAE)",
  "page_url": "https://civitai.com/models/4201?modelVersionId=130072",
  "published_at": "2023-07-31T08:27:16.052Z",
  "stats": {
    "downloadCount": 498415,
    "thumbsUpCount": 4626
  },
  "status": "Published",
  "trained_words": [],
  "updated_at": "2025-02-14T21:40:35.698Z"
}

Response result

Response structure

Inferred from examples
  • availabilitynull
  • base_modelstring
  • base_model_typestring
  • cachedboolean
  • created_atstring
  • credits_usedinteger
  • descriptionstring
  • download_urlstring
  • files(object | string)[]
    • download_urlstring
    • hashesobject
      • AutoV1string
      • AutoV2string
      • BLAKE3string
      • CRC32string
      • SHA256string
      • SHA256_12string
    • idinteger
    • metadataobject
      • formatstring
      • fpstring
      • sizestring
    • namestring
    • primaryboolean
    • scanobject
      • picklestring
      • scanned_atstring
      • virusstring
    • size_kbnumber
    • typestring
  • idinteger
  • images(object | string)[]
    • base_modelnull
    • created_atnull
    • hashstring
    • heightinteger
    • idnull
    • metaobject
      • Modelstring
      • Model hashstring
      • Sizestring
      • VAEstring
      • VAE hashstring
      • Versionstring
      • cfgScaleinteger
      • hashesobject
        • modelstring
      • negativePromptstring
      • promptstring
      • resourcesobject[]
        • …string
      • samplerstring
      • seedinteger
      • stepsinteger
    • page_urlnull
    • post_idnull
    • typestring
    • urlstring
    • usernamenull
    • widthinteger
  • modelobject
    • namestring
    • poiboolean
    • typestring
  • model_idinteger
  • namestring
  • page_urlstring
  • published_atstring
  • statsobject
    • downloadCountinteger
    • thumbsUpCountinteger
  • statusstring
  • trained_wordsunknown[]
  • updated_atstring

Common questions

Do I need a separate key for every provider?

Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.

Are these providers interchangeable?

No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.

How is this API billed?

API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.

Where do the price and contract come from?

The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.

How do OpenAny Balance and x402 differ?

OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.

Does Playground send a paid request?

Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.

Use Civitai model version API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.