Create asset group
Creates an asset group.
POST /api/v1/assets/groups
Use this to organize related image, video, or audio assets together.
Back to Assets endpoint listRequest parameters
| Field | Type | Required | Description |
|---|---|---|---|
provider | string | No | Asset provider is optional. Creation follows existing selection rules; specify a provider to select a particular route. |
name | string | Yes | Group name, 1 to 32 characters. |
group_type | string | No | Group type; defaults to AIGC. |
description | string | No | Group description. |
Request examples
curl "https://api.globalrouter.com/api/v1/assets/groups" \
-H "Authorization: Bearer $GR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "product-assets",
"group_type": "AIGC",
"description": "产品图素材"
}'Response fields
| Field | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Group ID. |
Response example
{
"id": "ag_123"
}