Skip to main content
POST
/
api
/
modelscope
/
models
/
search
/modelscope/models/search
curl --request POST \
  --url https://api.anysite.io/api/modelscope/models/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "count": 2,
  "timeout": 300,
  "keyword": "qwen",
  "organization": "Qwen",
  "tasks": [
    "text-generation",
    "text-to-image-synthesis"
  ],
  "libraries": [
    "transformer",
    "safetensors"
  ],
  "licenses": [
    "apache-2.0",
    "mit"
  ],
  "architectures": [
    "qwen2",
    "llama"
  ],
  "languages": [
    "zh",
    "en"
  ],
  "tags": [
    "chat",
    "code"
  ],
  "sort": "trending"
}
'
[
  {
    "id": "<string>",
    "url": "<string>",
    "@type": "ModelScopeModel",
    "name": "<string>",
    "owner": "<string>",
    "chinese_name": "<string>",
    "description": "<string>",
    "download_count": 123,
    "like_count": 123,
    "tasks": [],
    "tags": [],
    "libraries": [],
    "license": "<string>",
    "license_name": "<string>",
    "license_url": "<string>",
    "languages": [],
    "model_type": [],
    "architectures": [],
    "model_size": 123,
    "tensor_types": [],
    "base_models": [],
    "base_model_relation": "<string>",
    "domain": [],
    "frameworks": [],
    "created_by": "<string>",
    "created_at": 123,
    "updated_at": 123,
    "revision": "<string>",
    "image": "<string>",
    "cover_images": [],
    "storage_size": 123,
    "visibility": 123,
    "readme": "<string>",
    "related_arxiv_ids": [],
    "related_paper_ids": [],
    "organization": {
      "@type": "ModelScopeOrganization",
      "id": 123,
      "name": "<string>",
      "full_name": "<string>",
      "image": "<string>",
      "github_url": "<string>",
      "created_at": 123,
      "updated_at": 123
    },
    "files": []
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
count
integer
required

Max result count

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

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

Free-text search keyword

Example:

"qwen"

organization
string | null

Filter by organization/owner namespace

Example:

"Qwen"

tasks
string[] | null

Filter by task codes

Example:
[
"text-generation",
"text-to-image-synthesis"
]
libraries
string[] | null

Filter by library codes (pytorch, safetensors, transformer, gguf, diffusers, lora, onnx, tensorflow, mlx, openvino, llamafile, sentence-transformers, ...)

Example:
["transformer", "safetensors"]
licenses
string[] | null

Filter by license codes

Example:
["apache-2.0", "mit"]
architectures
string[] | null

Filter by model architecture / model_type codes

Example:
["qwen2", "llama"]
languages
string[] | null

Filter by language codes

Example:
["zh", "en"]
tags
string[] | null

Filter by tag codes

Example:
["chat", "code"]
inference_state
enum<string> | null

Filter by inference API availability state

Available options:
HOT,
STANDBY
sort
enum<string>
default:trending

Sort order

Available options:
trending,
downloads,
likes

Response

Successful Response

id
string
required
url
string
required
@type
string
default:ModelScopeModel
name
string | null
owner
string | null
chinese_name
string | null
description
string | null
download_count
integer | null
like_count
integer | null
tasks
object[]
tags
string[]
libraries
string[]
license
string | null
license_name
string | null
license_url
string | null
languages
string[]
model_type
string[]
architectures
string[]
model_size
integer | null
tensor_types
string[]
base_models
string[]
base_model_relation
string | null
domain
string[]
frameworks
string[]
created_by
string | null
created_at
integer | null
updated_at
integer | null
revision
string | null
image
string | null
cover_images
string[]
storage_size
integer | null
visibility
integer | null
readme
string | null
organization
object | null
files
object[]