List groups
curl --request POST \
--url https://gengen.farm/api/gengen/v1/assets/groups/list \
--header 'Authorization: Bearer gengen_live_xxxxxxxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data '{
"category": "AIGC",
"pageNumber": 1,
"pageSize": 20
}'
import requests
url = "https://gengen.farm/api/gengen/v1/assets/groups/list"
payload = {
"category": "AIGC",
"pageNumber": 1,
"pageSize": 20
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({category: 'AIGC', pageNumber: 1, pageSize: 20})
};
fetch('https://gengen.farm/api/gengen/v1/assets/groups/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"assetGroups": [
{
"id": "0ec1f3e2-1234-4abc-9def-012345abcdef",
"providerAssetGroupId": "group-20260424-abc",
"name": "Product launch assets",
"description": "Reusable launch materials",
"assetCategory": "virtual_portrait",
"groupType": "AIGC",
"providerProjectName": "default",
"status": "active",
"verificationStatus": null,
"verificationH5Link": null,
"userCallbackUrl": null,
"verifiedAt": null,
"createdAt": "2026-04-24T00:00:00.000Z",
"updatedAt": "2026-04-24T00:00:00.000Z"
}
],
"totalCount": 1,
"pageNumber": 1,
"pageSize": 20
}{
"error_code": "<string>",
"error": "<string>",
"error_params": {}
}{
"error_code": "<string>",
"error": "<string>",
"error_params": {}
}{
"error_code": "<string>",
"error": "<string>",
"error_params": {}
}{
"error_code": "<string>",
"error": "<string>",
"error_params": {}
}{
"error_code": "<string>",
"error": "<string>",
"error_params": {}
}Assets API
List asset groups
List workspace asset groups; wait for a group to become active before creating or managing assets.
POST
/
assets
/
groups
/
list
List groups
curl --request POST \
--url https://gengen.farm/api/gengen/v1/assets/groups/list \
--header 'Authorization: Bearer gengen_live_xxxxxxxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data '{
"category": "AIGC",
"pageNumber": 1,
"pageSize": 20
}'
import requests
url = "https://gengen.farm/api/gengen/v1/assets/groups/list"
payload = {
"category": "AIGC",
"pageNumber": 1,
"pageSize": 20
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({category: 'AIGC', pageNumber: 1, pageSize: 20})
};
fetch('https://gengen.farm/api/gengen/v1/assets/groups/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"assetGroups": [
{
"id": "0ec1f3e2-1234-4abc-9def-012345abcdef",
"providerAssetGroupId": "group-20260424-abc",
"name": "Product launch assets",
"description": "Reusable launch materials",
"assetCategory": "virtual_portrait",
"groupType": "AIGC",
"providerProjectName": "default",
"status": "active",
"verificationStatus": null,
"verificationH5Link": null,
"userCallbackUrl": null,
"verifiedAt": null,
"createdAt": "2026-04-24T00:00:00.000Z",
"updatedAt": "2026-04-24T00:00:00.000Z"
}
],
"totalCount": 1,
"pageNumber": 1,
"pageSize": 20
}{
"error_code": "<string>",
"error": "<string>",
"error_params": {}
}{
"error_code": "<string>",
"error": "<string>",
"error_params": {}
}{
"error_code": "<string>",
"error": "<string>",
"error_params": {}
}{
"error_code": "<string>",
"error": "<string>",
"error_params": {}
}{
"error_code": "<string>",
"error": "<string>",
"error_params": {}
}Authorizations
A workspace API key beginning with gengen_live_.
Body
application/json