Skip to content

Resource Groups ​

Resource management APIs for managing material resources referenced by models. Currently used for Volcano Seedance series. Seedance 2.0 does not support directly uploading images/videos with real faces; use the material library instead.

Auth: Authorization: Bearer <api-key>

Enums: status: 1 Available / 2 Processing / 3 Failed / 4 Deleted

Create Resource Group ​

http
POST /api/model-resources/groups
FieldTypeRequiredDescription
namestringYesGroup name
descriptionstringNoGroup description
bash
curl --location 'https://neolink.com/api/api/model-resources/groups' \
  --header 'Authorization: Bearer <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "User Group 1",
    "description": "This is a note"
  }'

Response:

json
{
  "success": true,
  "message": "",
  "data": {
    "id": 8,
    "name": "User Group 1",
    "description": "This is a note",
    "busi_type": 1,
    "created_at": 1779330365,
    "updated_at": 1779330365,
    "deleted_at": null
  }
}

Query Resource Group List ​

http
GET /api/model-resources/groups
FieldTypeRequiredDescription
pintNoPage number, default 1
page_sizeintNoItems per page
keywordstringNoSearch by name or description
bash
curl --location 'https://neolink.com/api/api/model-resources/groups?p=1&page_size=20' \
  --header 'Authorization: Bearer <api-key>'

Response:

json
{
  "success": true,
  "message": "",
  "data": {
    "page": 1,
    "page_size": 20,
    "total": 1,
    "items": [
      {
        "id": 8,
        "name": "User Group 1",
        "description": "This is a note",
        "busi_type": 1,
        "created_at": 1779330365,
        "updated_at": 1779330365,
        "deleted_at": null
      }
    ]
  }
}

Query Resource Group Details ​

http
GET /api/model-resources/groups/{id}
bash
curl --location 'https://neolink.com/api/api/model-resources/groups/8' \
  --header 'Authorization: Bearer <api-key>'

Response fields are the same as creating a resource group.

Update Resource Group ​

http
PATCH /api/model-resources/groups/{id}
PUT /api/model-resources/groups/{id}
FieldTypeRequiredDescription
namestringNoNew group name
descriptionstringNoNew description
bash
curl --location --request PATCH 'https://neolink.com/api/api/model-resources/groups/8' \
  --header 'Authorization: Bearer <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "User Group 1 - Updated",
    "description": "New note"
  }'