Skip to main content
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-xxxxxxxxxx
string
application/json

Request 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

Your application does not need to call POST /v1/visual-validate/result directly; the gateway callback page forwards state automatically.

Example

Response

Clients typically only need to open h5_link in a popup and listen for window.message. On H5 timeout, close the popup, remove the listener, and call POST /v1/visual-validate/session again for a new link. Consider a client-side timeout of about 130s as a fallback.

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:
Failure:
Minimal integration:

Next steps

  1. Use group_id from postMessage (not from this endpointโ€™s synchronous response) with Create asset
  2. Poll List assets or Get asset until status: active
  3. Reference assets with asset:// in Create video generation
You can also confirm the group via List asset groups (?group_type=liveness_face).