Create asset group (liveness)
Seedance 2.0(/generations)
Create asset group (liveness)
POST /v1/visual-validate/session (liveness_face)
POST
Create asset group (liveness)
Introduction
Live-person asset groups (group_type: liveness_face) cannot be created via Create asset group. Call this endpoint first to start H5 liveness validation; the gateway persists the group after the user completes validation.
Up to 100 groups per user for virtual and live-person libraries (separate quotas). After validation, adding image/video/audio assets works the same as the virtual library via Create assetโno further face matching (the initial group creation still requires live face validation).
BytePlus
CreateVisualValidateSession does not accept name or description. After receiving upstream GroupId, the gateway calls UpdateAssetGroup to write those fields back to the BytePlus console.Authentication
string
required
Bearer Token, e.g.
Bearer sk-xxxxxxxxxxstring
application/jsonRequest body
string
required
Asset group name (stored and synced to the BytePlus console)
string
Description; defaults to API key user
username if omitted or empty (same as Create asset group)integer
Upstream channel ID; auto-selected if omitted
H5 validation flow
POST /v1/visual-validate/result directly; the gateway callback page forwards state automatically.
Example
Response
Client postMessage
The callback page (/asset-validate-callback.html) posts to window.opener (targetOrigin = '*'). If the callback page and parent are on different origins, identify messages by type rather than relying only on event.origin.
Success:
Next steps
- Use
group_idfrom postMessage (not from this endpointโs synchronous response) with Create asset - Poll List assets or Get asset until
status: active - Reference assets with
asset://in Create video generation
?group_type=liveness_face).