/modelscope/models/files
/modelscope
/modelscope/models/files
List files in a ModelScope model repository
Price: 1 credit per 100 results
💡 AI Hint: List files in a ModelScope model repository with commit metadata. Returns file name, path, size, LFS flag, sha256, and last commit message/committer/date. Optionally scope to a branch or tag and a subfolder.
⚠️ Common errors: 412: Model not found
POST
/modelscope/models/files
Authorizations
API token from the dashboard
Headers
Body
application/json
Model repository id ('owner/name') or full model URL
Minimum string length:
1Example:
"Qwen/Qwen2.5-7B-Instruct"
Max result count
Required range:
x >= 1Max scrapping execution timeout (in seconds)
Required range:
20 <= x <= 1500Branch or tag to read files from
Folder path inside the repository to list
Response
Successful Response