Skip to main content
POST
/
api
/
civitai
/
model-versions
/civitai/model-versions
curl --request POST \
  --url https://api.anysite.io/api/civitai/model-versions \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "timeout": 300,
  "version": "290640",
  "hash": "67AB2FD8EC"
}
'
[
  {
    "id": 123,
    "@type": "CivitaiModelVersionDetail",
    "model_id": 123,
    "name": "<string>",
    "description": "<string>",
    "base_model": "<string>",
    "base_model_type": "<string>",
    "upload_type": "<string>",
    "created_at": 123,
    "published_at": 123,
    "updated_at": 123,
    "status": "<string>",
    "nsfw_level": 123,
    "air": "<string>",
    "usage_control": "<string>",
    "trained_words": [],
    "download_url": "<string>",
    "download_count": 123,
    "thumbs_up_count": 123,
    "thumbs_down_count": 123,
    "model": {
      "@type": "CivitaiModelVersionModel",
      "name": "<string>",
      "model_type": "<string>",
      "is_nsfw": false,
      "is_poi": false
    },
    "files": [],
    "images": []
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
version
string | null

Model version id or version URL

Example:

"290640"

hash
string | null

File hash (SHA256, AutoV1, AutoV2, BLAKE3, or CRC32) to resolve the version by

Example:

"67AB2FD8EC"

Response

Successful Response

id
integer
required
@type
string
default:CivitaiModelVersionDetail
model_id
integer | null
name
string | null
description
string | null
base_model
string | null
base_model_type
string | null
upload_type
string | null
created_at
integer | null
published_at
integer | null
updated_at
integer | null
status
string | null
nsfw_level
integer | null
air
string | null
usage_control
string | null
trained_words
string[]
download_url
string | null
download_count
integer | null
thumbs_up_count
integer | null
thumbs_down_count
integer | null
model
object | null
files
object[]
images
object[]