What you’ll learn
- How do material assets and material groups differ?
- Why does a generation call return 409 seedance_material_preparing?
- Do I need consent to use a real person as a reference?
- Can I reuse one material asset across several Seedance video jobs?
If you paste the same reference URL into several video requests, a Seedance material is the better tool. A material is an image, video, or audio file that TokenLab stores in your organization after one import. You pass its ID in later requests instead of a URL. Virtual people, products, and styles need no verification. A real person does: you need that person's consent first, and the person must pass a visual check before you can upload their images.
Key Takeaways
- A material asset is the reference that video generation uses. A material group keeps related assets together. Their IDs are different, so do not mix them up.
- There are two library types.
aigc_avataris for virtual people, products, and styles.liveness_faceis for a real person, and only a successful visual-validation flow creates it. - For a real person, get consent before you start. Then run visual validation to get the group. You cannot create a real-person group with the group endpoint.
- Use an asset only when its
statusisACTIVE. Pass it asmaterial_asset_id, inmaterial_asset_ids, or asasset://<id>. - Material references work with the Seedance 2.0 models and count toward their limit of 9 image references.
- If an asset is still preparing, the API returns
409 seedance_material_preparing. Poll the assets, then retry with the same IDs.
Materials and groups
| Item | REST field | What it is |
|---|---|---|
| Material group | group_id |
Keeps related materials together |
| Material asset | id |
One imported image, video, or audio file. Use this ID after it is ACTIVE. |
| Virtual-avatar group | library_type: "aigc_avatar" |
Needs no real-person verification |
| Real-person group | library_type: "liveness_face" |
Created only by a successful visual-validation flow |
| Project name | project_name |
Separates materials of different projects. It defaults to default. Use the same case-sensitive value everywhere. |
Public IDs look like group-20260720123456-vrt01 and asset-20260720123457-def45. A group organizes uploads. An asset ID is what video generation reads. The Seedance materials guide has the full field list.
Virtual avatars, products, and styles
Create an aigc_avatar group, import an asset, and poll it. For REST asset creation, group_id is optional only when project_name is default. TokenLab then uses or creates your organization's default virtual-avatar group. A different project_name needs a group_id.
curl https://api.tokenlab.sh/v1/videos/assets/groups \
-H "Authorization: Bearer $TOKENLAB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"library_type":"aigc_avatar","group_name":"Product references","project_name":"default"}'
curl https://api.tokenlab.sh/v1/videos/assets \
-H "Authorization: Bearer $TOKENLAB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"library_type":"aigc_avatar","group_id":"group-20260720123456-vrt01","asset_url":"https://example.com/reference.png","asset_type":"Image","asset_name":"Front view","project_name":"default"}'
curl "https://api.tokenlab.sh/v1/videos/assets/asset-20260720123456-qn7wr?project_name=default" \
-H "Authorization: Bearer $TOKENLAB_API_KEY"
The ID values above are placeholders. Use the IDs from your own responses. See Create Material Asset Group and Create Material Asset.
Real people: consent first, then verification
Get the person's consent before you start. Use a real person's face only if that person agreed to it. TokenLab's verification checks that your uploads show the person who completed the check. It does not replace their consent.
The group for a real person comes from the verification flow. You do not create it yourself. A REST group request with library_type: "liveness_face" returns 400, and the CreateAssetGroup Action accepts only GroupType: "AIGC".
- Create a session. Call Create Visual Validation Session with a public HTTPS
CallbackURL. SaveResult.BytedTokenandResult.H5Link. - Open the link at once. Open
H5Linkas a top-level page for the person being verified. Do not parse, rewrite, or embed it. The link supports one completed check. - Wait for the callback. When the person finishes, their browser opens your
CallbackURL. TokenLab does not call your server. - Read the result. Poll Get Visual Validation Result with the same
BytedTokenandProjectNameuntil it returnsResult.GroupId. TokenLab creates and binds theLivenessFacegroup in this step.BytedTokenis valid for 30 minutes. - Upload into that group. Create assets with
library_type: "liveness_face"and the returned group ID asgroup_id. Poll each asset untilACTIVE.
curl 'https://api.tokenlab.sh/api/v3?Action=CreateVisualValidateSession&Version=2024-01-01' \
-H "Authorization: Bearer $TOKENLAB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"CallbackURL":"https://yourapp.example.com/seedance/callback","ProjectName":"default"}'
curl 'https://api.tokenlab.sh/api/v3?Action=GetVisualValidateResult&Version=2024-01-01' \
-H "Authorization: Bearer $TOKENLAB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"BytedToken":"<BYTED_TOKEN>","ProjectName":"default"}'
These two calls use the Volcengine Action shape with a TokenLab Bearer key. AK/SK signing is not accepted. Errors come back in ResponseMetadata.Error, not in the error object of the /v1 APIs. Send an Idempotency-Key header on session creation so a lost response can be recovered.
Two rules apply to the uploads. One group maps to one verified person. An asset can fail if it shows more than one face or if the face does not match. A clear front-facing close-up and a full-body front reference give the best chance of passing.
Create and prepare an asset
Import one publicly reachable URL at a time. A successful request returns 201 with status: "PROCESSING". That means the import was accepted, not that the asset is ready.
| Type | Supported input |
|---|---|
| Image | jpeg, jpg, png, webp, bmp, tiff, gif, heic, heif; up to 30 MiB; width and height from 300 to 6000 px; aspect ratio from 0.4 to 2.5 |
| Video | mp4, mov; up to 200 MiB |
| Audio | aac, wav, mp3; up to 15 MiB |
Poll Get Material Asset until status is ACTIVE and ready is true. The other statuses are PROCESSING, FAILED, and DELETED. If an asset is FAILED, read error_message, fix the source, and import again. The source URL is used only for the import. TokenLab returns its own asset ID.
Use an asset in a video request
After the asset is ACTIVE, choose one form in Create Video:
material_asset_idfor one generic reference.material_asset_idsfor several generic references.asset://<asset-id>inimage_url,start_image,end_image, orreference_imageswhen the role of the media must be explicit.
{
"model": "seedance-2.0",
"operation": "reference-to-video",
"prompt": "The product from the reference turns slowly on a clean white table",
"material_asset_ids": ["asset-20260720123456-qn7wr"],
"duration": 5,
"resolution": "720p",
"output_audio": false
}
Only the Seedance 2.0 models accept material references: seedance-2.0, seedance-2.0-fast, and seedance-2.0-mini. Other models return 400 unsupported_seedance_material_asset_model. Materials count toward the limit of 9 image references per request. More than that returns 400 too_many_seedance_reference_images. The Seedance 2.0 video models guide lists the resolutions of each model.
Ordinary image fields such as image_url, image_urls, and reference_images do not create materials. A plain URL there is a one-off input.
Errors to handle
| Response | Meaning | What to do |
|---|---|---|
409 seedance_material_preparing with inactive_asset_ids |
An asset in the request is not ACTIVE yet |
Poll those assets until ACTIVE. Retry with the same IDs. Use a retry loop with a timeout. |
422 seedance_material_failed with failed_asset_ids |
The request uses a FAILED asset |
Read error_message, then fix the source and import again. |
Seedance material asset not found or not accessible |
The value is a group ID, belongs to another organization or project, is deleted, or is not ACTIVE |
Pass the asset id, with the same project_name. |
A 409 seedance_material_preparing is a signal to wait, not an error to show your user. It can also appear when TokenLab has to prepare an asset again at first use. The first generation can then take a little longer.
Retention and deletion
TokenLab keeps a material until you delete the asset or its group. Inactivity does not remove it. Deleting an asset or a group is permanent. Deleting a group also deletes the materials in it. Store each asset ID next to your own record of which character or product it belongs to.
A generation that uses a material may need to stop early. See Seedance task cancellation. Seedance prices depend on the model, resolution, and input type. Read them from the Pricing API.
FAQ
How do material assets and material groups differ?
A material asset is one imported file, and its id is what video generation uses once the asset is ACTIVE. A material group is a container with a group_id. In short, group_id organizes and material_asset_id generates.
Why does a generation call return 409 seedance_material_preparing?
One asset in the request is not ACTIVE yet. The response lists it in inactive_asset_ids. Poll those assets until they are ACTIVE, then retry with the same IDs.
Do I need consent to use a real person as a reference?
Yes. Get the person's consent first. Then run the visual-validation flow: create a session, let the person complete the H5 check, read GroupId from the result, and upload into that group. Virtual people, products, and styles use aigc_avatar and need no verification.
Can I reuse one material asset across several Seedance video jobs?
Yes, once it is ACTIVE. Pass the same ID in each request to a Seedance 2.0 model. TokenLab keeps the asset until you delete it or its group.
Sources
Read on 2026-11-11: the Seedance materials guide, the Seedance 2.0 video models guide, the material and visual-validation API references linked above, and the Seedance model details at api.tokenlab.sh/v1/models. Your assets appear in the assets page of the dashboard.
Sources
Prices checked 2026-11-11
- Seedance 2.0 Video Models guideSources checked 2026-07-09
- Create Seedance material assetSources checked 2026-07-09
- Create Seedance material asset groupSources checked 2026-07-09
- Create videoSources checked 2026-07-09
- TokenLab video modelsSources checked 2026-07-09
- Seedance task cancellation articleSources checked 2026-07-09



