Assets
Create reusable asset groups and assets for video generation requests.
Overview
Assets store public image or video URLs with an upstream material service. After an asset becomes Active, you can reference its id from resources[].asset_id in a video task instead of sending the same URL repeatedly.
Use your normal 0-0 bearer key. Do not send provider credentials such as X-Access-Key or X-Secret-Key.
Endpoints
1POST /v1/asset-groups2GET /v1/asset-groups/{group_id}?platform=JIMENG3POST /v1/assets4GET /v1/assets/{asset_id}?platform=JIMENG5Content-Type: application/json6Authorization: Bearer $API_KEYAsset groups
Create a group before creating assets. A group is a container for related material, for example a set of character references. The current upstream material service requires platform, usually JIMENG.
1curl -X POST "https://api.0-0.pro/v1/asset-groups" \2 -H "Authorization: Bearer $API_KEY" \3 -H "Content-Type: application/json" \4 -d '{5 "platform": "JIMENG",6 "name": "Character references",7 "description": "Reusable first-frame assets",8 "project_name": "default"9 }'1{2 "code": 200,3 "msg": "OK",4 "data": {5 "group_id": "group-abcdef1234567890",6 "name": "Character references",7 "description": "Reusable first-frame assets",8 "project_name": "default",9 "status": "Active",10 "created_at": 171444480011 }12}1curl "https://api.0-0.pro/v1/asset-groups/group-abcdef1234567890?platform=JIMENG" \2 -H "Authorization: Bearer $API_KEY"Assets
Create an asset with a public URL that the upstream material service can fetch. New assets usually start as Processing; poll the asset until it becomes Active before using it in a generation request.
1curl -X POST "https://api.0-0.pro/v1/assets" \2 -H "Authorization: Bearer $API_KEY" \3 -H "Content-Type: application/json" \4 -d '{5 "platform": "JIMENG",6 "group_id": "group-abcdef1234567890",7 "url": "https://example.com/front.png",8 "asset_type": "Image",9 "name": "Character front view"10 }'1{2 "code": 200,3 "msg": "OK",4 "data": {5 "asset_id": "Asset-abcdef1234567890",6 "name": "Character front view",7 "group_id": "group-abcdef1234567890",8 "asset_type": "Image",9 "status": "Processing",10 "url": "https://example.com/front.png",11 "created_at": 171444480012 }13}1curl "https://api.0-0.pro/v1/assets/Asset-abcdef1234567890?platform=JIMENG" \2 -H "Authorization: Bearer $API_KEY"Asset status
Processing: still being prepared and should not be used yet.Active: ready for video generation requests.Failed: preparation failed; create a new asset with a reachable URL.
Use an asset in video generation
Pass the returned asset_id in the video task resources list. Common roles include first_frame, last_frame, and reference.
1curl -X POST "https://api.0-0.pro/v1/video/tasks" \2 -H "Authorization: Bearer $API_KEY" \3 -H "Content-Type: application/json" \4 -d '{5 "model": "seedance-2-0",6 "prompt": "Use the reference character and make a slow cinematic push-in",7 "duration": 5,8 "resolution": "720p",9 "ratio": "16:9",10 "resources": [11 {"type": "image", "role": "first_frame", "asset_id": "Asset-abcdef1234567890"}12 ]13 }'