# Modelscope — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Browse and retrieve top-performing AI models and explore curated datasets from ModelScope.cn, China's premier AI model community. Discover the latest models ranked by popularity and access comprehensive dataset collections for your machine learning projects.

**Category:** Developer Tools | **Website:** [modelscope.cn/](https://modelscope.cn/) | **Docs:** [parse.bot/marketplace/a4d10064-de2a-453a-9790-9d6a25d849d4/modelscope-cn-api](https://parse.bot/marketplace/a4d10064-de2a-453a-9790-9d6a25d849d4/modelscope-cn-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-modelscope-cn-api-a4d10064/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_top_ten_models

Retrieve the top ten trending models on ModelScope.cn. Returns model name, publisher info, release date, engagement metrics, and associated tasks. The list reflects a server-side trending ranking that updates frequently; no input parameters are needed.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-modelscope-cn-api-a4d10064/get_top_ten_models \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### list_datasets

List datasets available on ModelScope.cn with pagination. Returns dataset name (in namespace/dataset format), publisher, license, and download count. Results are ordered by recency. Use page and page_size to paginate through the full catalog.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination (1-based). |
| `page_size` | integer | No | Number of datasets per page. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-modelscope-cn-api-a4d10064/list_datasets \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","page_size":"<integer>"}'
```
