@tokenlabai/mcp-server 0.6.5 → 0.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/contract/openapi.json +40 -34
- package/generated/public-contract.json +3 -3
- package/generated/tools.json +15 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ It exposes public catalog tools for agents that need to choose models, inspect s
|
|
|
10
10
|
|
|
11
11
|
## Generated Tool Profiles
|
|
12
12
|
|
|
13
|
-
The checked-in `generated/tools.json` manifest is generated from TokenLab's public OpenAPI document plus the small MCP-only overlay in `contract/mcp-overlay.json`. Version 0.6.
|
|
13
|
+
The checked-in `generated/tools.json` manifest is generated from TokenLab's public OpenAPI document plus the small MCP-only overlay in `contract/mcp-overlay.json`. Version 0.6.7 generates 76 endpoint tools; two composite discovery tools are registered at runtime.
|
|
14
14
|
|
|
15
15
|
| Profile | Endpoint tools | Coverage |
|
|
16
16
|
| --- | ---: | --- |
|
|
@@ -126,7 +126,7 @@ This repository includes `server.json` for the official MCP Registry.
|
|
|
126
126
|
|
|
127
127
|
Release metadata:
|
|
128
128
|
|
|
129
|
-
- npm package: `@tokenlabai/mcp-server@0.6.
|
|
129
|
+
- npm package: `@tokenlabai/mcp-server@0.6.7`
|
|
130
130
|
- MCP registry name: `io.github.hedging8563/tokenlab`
|
|
131
131
|
- `package.json.mcpName`: `io.github.hedging8563/tokenlab`
|
|
132
132
|
|
package/contract/openapi.json
CHANGED
|
@@ -757,7 +757,7 @@
|
|
|
757
757
|
"code": "seedance_material_preparing",
|
|
758
758
|
"param": "material_asset_id",
|
|
759
759
|
"auto_material_asset_ids": [
|
|
760
|
-
"
|
|
760
|
+
"asset-20260720123456-auto1"
|
|
761
761
|
]
|
|
762
762
|
}
|
|
763
763
|
}
|
|
@@ -845,7 +845,7 @@
|
|
|
845
845
|
"asset_name": "Front view",
|
|
846
846
|
"asset_type": "Image",
|
|
847
847
|
"library_type": "aigc_avatar",
|
|
848
|
-
"group_id": "
|
|
848
|
+
"group_id": "group-20260720123456-vrt01"
|
|
849
849
|
}
|
|
850
850
|
},
|
|
851
851
|
"real_person_asset": {
|
|
@@ -855,7 +855,7 @@
|
|
|
855
855
|
"asset_name": "Creator A close-up",
|
|
856
856
|
"asset_type": "Image",
|
|
857
857
|
"library_type": "liveness_face",
|
|
858
|
-
"group_id": "
|
|
858
|
+
"group_id": "group-20260720123456-real1"
|
|
859
859
|
}
|
|
860
860
|
}
|
|
861
861
|
}
|
|
@@ -874,9 +874,9 @@
|
|
|
874
874
|
"asset_created": {
|
|
875
875
|
"summary": "Material asset accepted for processing",
|
|
876
876
|
"value": {
|
|
877
|
-
"id": "
|
|
877
|
+
"id": "asset-20260720123456-qn7wr",
|
|
878
878
|
"object": "seedance.material_asset",
|
|
879
|
-
"group_id": "
|
|
879
|
+
"group_id": "group-20260720123456-vrt01",
|
|
880
880
|
"library_type": "aigc_avatar",
|
|
881
881
|
"asset_name": "Front view",
|
|
882
882
|
"asset_type": "Image",
|
|
@@ -993,9 +993,9 @@
|
|
|
993
993
|
"value": {
|
|
994
994
|
"assets": [
|
|
995
995
|
{
|
|
996
|
-
"id": "
|
|
996
|
+
"id": "asset-20260720123456-qn7wr",
|
|
997
997
|
"object": "seedance.material_asset",
|
|
998
|
-
"group_id": "
|
|
998
|
+
"group_id": "group-20260720123456-vrt01",
|
|
999
999
|
"library_type": "aigc_avatar",
|
|
1000
1000
|
"asset_name": "Front view",
|
|
1001
1001
|
"asset_type": "Image",
|
|
@@ -1141,7 +1141,7 @@
|
|
|
1141
1141
|
"status": "bound",
|
|
1142
1142
|
"verification_status": "succeeded",
|
|
1143
1143
|
"result_code": "10000",
|
|
1144
|
-
"group_id": "
|
|
1144
|
+
"group_id": "group-20260720123456-real1",
|
|
1145
1145
|
"group_name": "Creator A",
|
|
1146
1146
|
"error_message": null,
|
|
1147
1147
|
"created_at": 1782998400000,
|
|
@@ -1213,9 +1213,9 @@
|
|
|
1213
1213
|
"summary": "Real-person material group bound",
|
|
1214
1214
|
"value": {
|
|
1215
1215
|
"object": "seedance.visual_validation_result",
|
|
1216
|
-
"group_id": "
|
|
1216
|
+
"group_id": "group-20260720123456-real1",
|
|
1217
1217
|
"material_group": {
|
|
1218
|
-
"id": "
|
|
1218
|
+
"id": "group-20260720123456-real1",
|
|
1219
1219
|
"library_type": "liveness_face",
|
|
1220
1220
|
"status": "ACTIVE",
|
|
1221
1221
|
"group_name": "Creator A"
|
|
@@ -1267,7 +1267,7 @@
|
|
|
1267
1267
|
"schema": {
|
|
1268
1268
|
"type": "string"
|
|
1269
1269
|
},
|
|
1270
|
-
"example": "
|
|
1270
|
+
"example": "asset-20260720123456-qn7wr"
|
|
1271
1271
|
}
|
|
1272
1272
|
],
|
|
1273
1273
|
"responses": {
|
|
@@ -1282,9 +1282,9 @@
|
|
|
1282
1282
|
"asset": {
|
|
1283
1283
|
"summary": "Material asset",
|
|
1284
1284
|
"value": {
|
|
1285
|
-
"id": "
|
|
1285
|
+
"id": "asset-20260720123456-qn7wr",
|
|
1286
1286
|
"object": "seedance.material_asset",
|
|
1287
|
-
"group_id": "
|
|
1287
|
+
"group_id": "group-20260720123456-vrt01",
|
|
1288
1288
|
"library_type": "aigc_avatar",
|
|
1289
1289
|
"asset_name": "Front view",
|
|
1290
1290
|
"asset_type": "Image",
|
|
@@ -1329,7 +1329,7 @@
|
|
|
1329
1329
|
"schema": {
|
|
1330
1330
|
"type": "string"
|
|
1331
1331
|
},
|
|
1332
|
-
"example": "
|
|
1332
|
+
"example": "asset-20260720123456-qn7wr"
|
|
1333
1333
|
}
|
|
1334
1334
|
],
|
|
1335
1335
|
"requestBody": {
|
|
@@ -1365,9 +1365,9 @@
|
|
|
1365
1365
|
"asset_updated": {
|
|
1366
1366
|
"summary": "Material asset updated",
|
|
1367
1367
|
"value": {
|
|
1368
|
-
"id": "
|
|
1368
|
+
"id": "asset-20260720123456-qn7wr",
|
|
1369
1369
|
"object": "seedance.material_asset",
|
|
1370
|
-
"group_id": "
|
|
1370
|
+
"group_id": "group-20260720123456-vrt01",
|
|
1371
1371
|
"library_type": "aigc_avatar",
|
|
1372
1372
|
"asset_name": "Front view approved",
|
|
1373
1373
|
"asset_type": "Image",
|
|
@@ -1418,7 +1418,7 @@
|
|
|
1418
1418
|
"schema": {
|
|
1419
1419
|
"type": "string"
|
|
1420
1420
|
},
|
|
1421
|
-
"example": "
|
|
1421
|
+
"example": "asset-20260720123456-qn7wr"
|
|
1422
1422
|
}
|
|
1423
1423
|
],
|
|
1424
1424
|
"responses": {
|
|
@@ -1434,7 +1434,7 @@
|
|
|
1434
1434
|
"summary": "Material asset deleted",
|
|
1435
1435
|
"value": {
|
|
1436
1436
|
"deleted": true,
|
|
1437
|
-
"id": "
|
|
1437
|
+
"id": "asset-20260720123456-qn7wr"
|
|
1438
1438
|
}
|
|
1439
1439
|
}
|
|
1440
1440
|
}
|
|
@@ -5584,7 +5584,7 @@
|
|
|
5584
5584
|
"group_created": {
|
|
5585
5585
|
"summary": "Material group created",
|
|
5586
5586
|
"value": {
|
|
5587
|
-
"id": "
|
|
5587
|
+
"id": "group-20260720123456-vrt01",
|
|
5588
5588
|
"object": "seedance.material_asset_group",
|
|
5589
5589
|
"library_type": "aigc_avatar",
|
|
5590
5590
|
"group_name": "Product references",
|
|
@@ -5689,7 +5689,7 @@
|
|
|
5689
5689
|
"value": {
|
|
5690
5690
|
"groups": [
|
|
5691
5691
|
{
|
|
5692
|
-
"id": "
|
|
5692
|
+
"id": "group-20260720123456-vrt01",
|
|
5693
5693
|
"object": "seedance.material_asset_group",
|
|
5694
5694
|
"library_type": "aigc_avatar",
|
|
5695
5695
|
"group_name": "Product references",
|
|
@@ -5699,7 +5699,7 @@
|
|
|
5699
5699
|
"created_at": 1782998400000
|
|
5700
5700
|
},
|
|
5701
5701
|
{
|
|
5702
|
-
"id": "
|
|
5702
|
+
"id": "group-20260720123456-real1",
|
|
5703
5703
|
"object": "seedance.material_asset_group",
|
|
5704
5704
|
"library_type": "liveness_face",
|
|
5705
5705
|
"group_name": "Creator A",
|
|
@@ -5744,7 +5744,7 @@
|
|
|
5744
5744
|
"schema": {
|
|
5745
5745
|
"type": "string"
|
|
5746
5746
|
},
|
|
5747
|
-
"example": "
|
|
5747
|
+
"example": "group-20260720123456-vrt01"
|
|
5748
5748
|
}
|
|
5749
5749
|
],
|
|
5750
5750
|
"responses": {
|
|
@@ -5759,7 +5759,7 @@
|
|
|
5759
5759
|
"group": {
|
|
5760
5760
|
"summary": "Material group",
|
|
5761
5761
|
"value": {
|
|
5762
|
-
"id": "
|
|
5762
|
+
"id": "group-20260720123456-vrt01",
|
|
5763
5763
|
"object": "seedance.material_asset_group",
|
|
5764
5764
|
"library_type": "aigc_avatar",
|
|
5765
5765
|
"group_name": "Product references",
|
|
@@ -5802,7 +5802,7 @@
|
|
|
5802
5802
|
"schema": {
|
|
5803
5803
|
"type": "string"
|
|
5804
5804
|
},
|
|
5805
|
-
"example": "
|
|
5805
|
+
"example": "group-20260720123456-vrt01"
|
|
5806
5806
|
}
|
|
5807
5807
|
],
|
|
5808
5808
|
"requestBody": {
|
|
@@ -5836,7 +5836,7 @@
|
|
|
5836
5836
|
"group_updated": {
|
|
5837
5837
|
"summary": "Material group updated",
|
|
5838
5838
|
"value": {
|
|
5839
|
-
"id": "
|
|
5839
|
+
"id": "group-20260720123456-vrt01",
|
|
5840
5840
|
"object": "seedance.material_asset_group",
|
|
5841
5841
|
"library_type": "aigc_avatar",
|
|
5842
5842
|
"group_name": "Updated references",
|
|
@@ -5882,7 +5882,7 @@
|
|
|
5882
5882
|
"schema": {
|
|
5883
5883
|
"type": "string"
|
|
5884
5884
|
},
|
|
5885
|
-
"example": "
|
|
5885
|
+
"example": "group-20260720123456-vrt01"
|
|
5886
5886
|
}
|
|
5887
5887
|
],
|
|
5888
5888
|
"responses": {
|
|
@@ -5898,7 +5898,7 @@
|
|
|
5898
5898
|
"summary": "Material group deleted",
|
|
5899
5899
|
"value": {
|
|
5900
5900
|
"deleted": true,
|
|
5901
|
-
"id": "
|
|
5901
|
+
"id": "group-20260720123456-vrt01"
|
|
5902
5902
|
}
|
|
5903
5903
|
}
|
|
5904
5904
|
}
|
|
@@ -7289,7 +7289,7 @@
|
|
|
7289
7289
|
"opaque",
|
|
7290
7290
|
"auto"
|
|
7291
7291
|
],
|
|
7292
|
-
"description": "Background handling for compatible image
|
|
7292
|
+
"description": "Background handling for compatible image flows. For gpt-image-2 generation and edits, accepted values are auto and opaque; transparent is not supported. Other models may support different values."
|
|
7293
7293
|
},
|
|
7294
7294
|
"output_format": {
|
|
7295
7295
|
"type": "string",
|
|
@@ -7722,7 +7722,7 @@
|
|
|
7722
7722
|
"image_url": {
|
|
7723
7723
|
"type": "string",
|
|
7724
7724
|
"format": "uri",
|
|
7725
|
-
"description": "Publicly reachable image URL for image-to-video generation. Preferred over inline base64 in production. When the selected Seedance model can use the TokenLab material library, TokenLab prepares
|
|
7725
|
+
"description": "Publicly reachable image URL for image-to-video generation, or asset://asset-YYYYMMDDHHMMSS-xxxxx for an ACTIVE TokenLab Seedance material used as the first frame. Preferred over inline base64 in production. TokenLab verifies material ownership. When the selected Seedance model can use the TokenLab material library, TokenLab prepares ordinary image input as a reusable material before generation; if it is not ACTIVE within 60 seconds, the API returns 409 seedance_material_preparing with auto_material_asset_ids. If the selected model cannot use the material library, ordinary image inputs continue on the regular image path."
|
|
7726
7726
|
},
|
|
7727
7727
|
"video_url": {
|
|
7728
7728
|
"type": "string",
|
|
@@ -7792,11 +7792,11 @@
|
|
|
7792
7792
|
},
|
|
7793
7793
|
"start_image": {
|
|
7794
7794
|
"type": "string",
|
|
7795
|
-
"description": "First frame image input for start-end-to-video flows. When the selected Seedance model can use the TokenLab material library, TokenLab prepares
|
|
7795
|
+
"description": "First frame image input for start-end-to-video flows. Seedance accepts a public image reference or asset://asset-YYYYMMDDHHMMSS-xxxxx for an ACTIVE TokenLab material owned by the requesting organization. When the selected Seedance model can use the TokenLab material library, TokenLab prepares ordinary image input as a reusable material before generation; if it is not ACTIVE within 60 seconds, the API returns 409 seedance_material_preparing with auto_material_asset_ids. If the selected model cannot use the material library, ordinary image inputs continue on the regular image path."
|
|
7796
7796
|
},
|
|
7797
7797
|
"end_image": {
|
|
7798
7798
|
"type": "string",
|
|
7799
|
-
"description": "Last frame image input for start-end-to-video flows. When the selected Seedance model can use the TokenLab material library, TokenLab prepares
|
|
7799
|
+
"description": "Last frame image input for start-end-to-video flows. Seedance accepts a public image reference or asset://asset-YYYYMMDDHHMMSS-xxxxx for an ACTIVE TokenLab material owned by the requesting organization. When the selected Seedance model can use the TokenLab material library, TokenLab prepares ordinary image input as a reusable material before generation; if it is not ACTIVE within 60 seconds, the API returns 409 seedance_material_preparing with auto_material_asset_ids. If the selected model cannot use the material library, ordinary image inputs continue on the regular image path."
|
|
7800
7800
|
},
|
|
7801
7801
|
"user": {
|
|
7802
7802
|
"type": "string",
|
|
@@ -7852,7 +7852,7 @@
|
|
|
7852
7852
|
},
|
|
7853
7853
|
"reference_images": {
|
|
7854
7854
|
"type": "array",
|
|
7855
|
-
"description": "Canonical public reference-image field for reference-to-video conditioning. This endpoint currently allows up to 9 URLs
|
|
7855
|
+
"description": "Canonical public reference-image field for reference-to-video conditioning. This endpoint currently allows up to 9 URLs, compatible data URLs, or for Seedance, asset://asset-YYYYMMDDHHMMSS-xxxxx URIs for ACTIVE TokenLab materials owned by the requesting organization; model-specific limits can be lower. xAI grok-imagine-video accepts up to 7 image references with duration capped at 10 seconds; grok-imagine-video-1.5 and grok-imagine-video-1.5-preview are image-to-video only and do not accept reference images. When the selected Seedance model can use the TokenLab material library, TokenLab prepares ordinary image input as reusable material before generation; if it is not ACTIVE within 60 seconds, the API returns 409 seedance_material_preparing with auto_material_asset_ids. If the selected model cannot use the material library, ordinary image inputs continue on the regular image path.",
|
|
7856
7856
|
"minItems": 1,
|
|
7857
7857
|
"maxItems": 9,
|
|
7858
7858
|
"items": {
|
|
@@ -7861,7 +7861,7 @@
|
|
|
7861
7861
|
},
|
|
7862
7862
|
"material_asset_id": {
|
|
7863
7863
|
"type": "string",
|
|
7864
|
-
"description": "TokenLab Seedance material asset ID returned by /v1/videos/assets, by automatic image preparation, or by a real-person verification bind flow. Use it after the asset is ACTIVE with Seedance models that can use the TokenLab material library. The asset must belong to the current account."
|
|
7864
|
+
"description": "TokenLab Seedance material asset ID returned by /v1/videos/assets, by automatic image preparation, or by a real-person verification bind flow. Use it after the asset is ACTIVE with Seedance models that can use the TokenLab material library. The asset must belong to the current account. This field is a generic reference input; to assign first-frame, last-frame, or reference-image semantics explicitly, put asset://<material_asset_id> in start_image, end_image, or reference_images."
|
|
7865
7865
|
},
|
|
7866
7866
|
"material_asset_ids": {
|
|
7867
7867
|
"type": "array",
|
|
@@ -12440,7 +12440,7 @@
|
|
|
12440
12440
|
"additionalProperties": true
|
|
12441
12441
|
}
|
|
12442
12442
|
],
|
|
12443
|
-
"description": "Image
|
|
12443
|
+
"description": "Image reference. The object form {\"url\":\"https://...\"} matches the official request shape; a plain string is accepted for convenience. TokenLab also accepts asset://asset-YYYYMMDDHHMMSS-xxxxx URIs for ACTIVE materials owned by the requesting organization, and preserves the item's first_frame, last_frame, or reference_image role."
|
|
12444
12444
|
},
|
|
12445
12445
|
"video_url": {
|
|
12446
12446
|
"oneOf": [
|
|
@@ -12528,6 +12528,12 @@
|
|
|
12528
12528
|
"$ref": "#/components/schemas/VolcSeedanceContentItem"
|
|
12529
12529
|
}
|
|
12530
12530
|
},
|
|
12531
|
+
"material_asset_id": {
|
|
12532
|
+
"type": "string",
|
|
12533
|
+
"pattern": "^asset-\\d{14}-[a-z0-9]{5}$",
|
|
12534
|
+
"maxLength": 128,
|
|
12535
|
+
"description": "TokenLab compatibility shorthand for one ACTIVE Seedance material owned by the requesting organization. It is treated as the first frame and cannot be combined with other media inputs. For multiple materials, use content image_url items with explicit roles; top-level material_asset_ids is rejected as ambiguous."
|
|
12536
|
+
},
|
|
12531
12537
|
"ratio": {
|
|
12532
12538
|
"type": "string",
|
|
12533
12539
|
"enum": [
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"id": "tokenlab-mcp-server",
|
|
6
6
|
"name": "@tokenlabai/mcp-server",
|
|
7
7
|
"title": "TokenLab MCP Server",
|
|
8
|
-
"version": "0.6.
|
|
8
|
+
"version": "0.6.7",
|
|
9
9
|
"registry_name": "io.github.hedging8563/tokenlab",
|
|
10
10
|
"source_url": "https://github.com/hedging8563/tokenlab-mcp-server",
|
|
11
11
|
"landing_url": "https://tokenlab.sh/mcp",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"openapi": "3.0.3",
|
|
26
26
|
"title": "TokenLab AI Gateway",
|
|
27
27
|
"version": "1.0.0",
|
|
28
|
-
"sha256": "
|
|
29
|
-
"tool_manifest_sha256": "
|
|
28
|
+
"sha256": "b97e2566a0ee162a76bf3036e53e124cc7555d0efe51bd38e17894baf7124152",
|
|
29
|
+
"tool_manifest_sha256": "020115866467dcabae35643182b950b59ec533eb6346e887ec5046cf2d021423"
|
|
30
30
|
},
|
|
31
31
|
"profiles": {
|
|
32
32
|
"catalog": {
|
package/generated/tools.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"openapi": "3.0.3",
|
|
7
7
|
"title": "TokenLab AI Gateway",
|
|
8
8
|
"version": "1.0.0",
|
|
9
|
-
"sha256": "
|
|
9
|
+
"sha256": "b97e2566a0ee162a76bf3036e53e124cc7555d0efe51bd38e17894baf7124152"
|
|
10
10
|
},
|
|
11
11
|
"default_profile": "core",
|
|
12
12
|
"profiles": [
|
|
@@ -2301,7 +2301,7 @@
|
|
|
2301
2301
|
"opaque",
|
|
2302
2302
|
"auto"
|
|
2303
2303
|
],
|
|
2304
|
-
"description": "Background handling for compatible image
|
|
2304
|
+
"description": "Background handling for compatible image flows. For gpt-image-2 generation and edits, accepted values are auto and opaque; transparent is not supported. Other models may support different values."
|
|
2305
2305
|
},
|
|
2306
2306
|
"output_format": {
|
|
2307
2307
|
"type": "string",
|
|
@@ -3484,7 +3484,7 @@
|
|
|
3484
3484
|
"image_url": {
|
|
3485
3485
|
"type": "string",
|
|
3486
3486
|
"format": "uri",
|
|
3487
|
-
"description": "Publicly reachable image URL for image-to-video generation. Preferred over inline base64 in production. When the selected Seedance model can use the TokenLab material library, TokenLab prepares
|
|
3487
|
+
"description": "Publicly reachable image URL for image-to-video generation, or asset://asset-YYYYMMDDHHMMSS-xxxxx for an ACTIVE TokenLab Seedance material used as the first frame. Preferred over inline base64 in production. TokenLab verifies material ownership. When the selected Seedance model can use the TokenLab material library, TokenLab prepares ordinary image input as a reusable material before generation; if it is not ACTIVE within 60 seconds, the API returns 409 seedance_material_preparing with auto_material_asset_ids. If the selected model cannot use the material library, ordinary image inputs continue on the regular image path."
|
|
3488
3488
|
},
|
|
3489
3489
|
"video_url": {
|
|
3490
3490
|
"type": "string",
|
|
@@ -3554,11 +3554,11 @@
|
|
|
3554
3554
|
},
|
|
3555
3555
|
"start_image": {
|
|
3556
3556
|
"type": "string",
|
|
3557
|
-
"description": "First frame image input for start-end-to-video flows. When the selected Seedance model can use the TokenLab material library, TokenLab prepares
|
|
3557
|
+
"description": "First frame image input for start-end-to-video flows. Seedance accepts a public image reference or asset://asset-YYYYMMDDHHMMSS-xxxxx for an ACTIVE TokenLab material owned by the requesting organization. When the selected Seedance model can use the TokenLab material library, TokenLab prepares ordinary image input as a reusable material before generation; if it is not ACTIVE within 60 seconds, the API returns 409 seedance_material_preparing with auto_material_asset_ids. If the selected model cannot use the material library, ordinary image inputs continue on the regular image path."
|
|
3558
3558
|
},
|
|
3559
3559
|
"end_image": {
|
|
3560
3560
|
"type": "string",
|
|
3561
|
-
"description": "Last frame image input for start-end-to-video flows. When the selected Seedance model can use the TokenLab material library, TokenLab prepares
|
|
3561
|
+
"description": "Last frame image input for start-end-to-video flows. Seedance accepts a public image reference or asset://asset-YYYYMMDDHHMMSS-xxxxx for an ACTIVE TokenLab material owned by the requesting organization. When the selected Seedance model can use the TokenLab material library, TokenLab prepares ordinary image input as a reusable material before generation; if it is not ACTIVE within 60 seconds, the API returns 409 seedance_material_preparing with auto_material_asset_ids. If the selected model cannot use the material library, ordinary image inputs continue on the regular image path."
|
|
3562
3562
|
},
|
|
3563
3563
|
"user": {
|
|
3564
3564
|
"type": "string",
|
|
@@ -3614,7 +3614,7 @@
|
|
|
3614
3614
|
},
|
|
3615
3615
|
"reference_images": {
|
|
3616
3616
|
"type": "array",
|
|
3617
|
-
"description": "Canonical public reference-image field for reference-to-video conditioning. This endpoint currently allows up to 9 URLs
|
|
3617
|
+
"description": "Canonical public reference-image field for reference-to-video conditioning. This endpoint currently allows up to 9 URLs, compatible data URLs, or for Seedance, asset://asset-YYYYMMDDHHMMSS-xxxxx URIs for ACTIVE TokenLab materials owned by the requesting organization; model-specific limits can be lower. xAI grok-imagine-video accepts up to 7 image references with duration capped at 10 seconds; grok-imagine-video-1.5 and grok-imagine-video-1.5-preview are image-to-video only and do not accept reference images. When the selected Seedance model can use the TokenLab material library, TokenLab prepares ordinary image input as reusable material before generation; if it is not ACTIVE within 60 seconds, the API returns 409 seedance_material_preparing with auto_material_asset_ids. If the selected model cannot use the material library, ordinary image inputs continue on the regular image path.",
|
|
3618
3618
|
"minItems": 1,
|
|
3619
3619
|
"maxItems": 9,
|
|
3620
3620
|
"items": {
|
|
@@ -3623,7 +3623,7 @@
|
|
|
3623
3623
|
},
|
|
3624
3624
|
"material_asset_id": {
|
|
3625
3625
|
"type": "string",
|
|
3626
|
-
"description": "TokenLab Seedance material asset ID returned by /v1/videos/assets, by automatic image preparation, or by a real-person verification bind flow. Use it after the asset is ACTIVE with Seedance models that can use the TokenLab material library. The asset must belong to the current account."
|
|
3626
|
+
"description": "TokenLab Seedance material asset ID returned by /v1/videos/assets, by automatic image preparation, or by a real-person verification bind flow. Use it after the asset is ACTIVE with Seedance models that can use the TokenLab material library. The asset must belong to the current account. This field is a generic reference input; to assign first-frame, last-frame, or reference-image semantics explicitly, put asset://<material_asset_id> in start_image, end_image, or reference_images."
|
|
3627
3627
|
},
|
|
3628
3628
|
"material_asset_ids": {
|
|
3629
3629
|
"type": "array",
|
|
@@ -3927,7 +3927,7 @@
|
|
|
3927
3927
|
"additionalProperties": true
|
|
3928
3928
|
}
|
|
3929
3929
|
],
|
|
3930
|
-
"description": "Image
|
|
3930
|
+
"description": "Image reference. The object form {\"url\":\"https://...\"} matches the official request shape; a plain string is accepted for convenience. TokenLab also accepts asset://asset-YYYYMMDDHHMMSS-xxxxx URIs for ACTIVE materials owned by the requesting organization, and preserves the item's first_frame, last_frame, or reference_image role."
|
|
3931
3931
|
},
|
|
3932
3932
|
"video_url": {
|
|
3933
3933
|
"oneOf": [
|
|
@@ -3997,6 +3997,12 @@
|
|
|
3997
3997
|
"additionalProperties": true
|
|
3998
3998
|
}
|
|
3999
3999
|
},
|
|
4000
|
+
"material_asset_id": {
|
|
4001
|
+
"type": "string",
|
|
4002
|
+
"pattern": "^asset-\\d{14}-[a-z0-9]{5}$",
|
|
4003
|
+
"maxLength": 128,
|
|
4004
|
+
"description": "TokenLab compatibility shorthand for one ACTIVE Seedance material owned by the requesting organization. It is treated as the first frame and cannot be combined with other media inputs. For multiple materials, use content image_url items with explicit roles; top-level material_asset_ids is rejected as ambiguous."
|
|
4005
|
+
},
|
|
4000
4006
|
"ratio": {
|
|
4001
4007
|
"type": "string",
|
|
4002
4008
|
"enum": [
|
|
@@ -4112,6 +4118,7 @@
|
|
|
4112
4118
|
"body": [
|
|
4113
4119
|
"model",
|
|
4114
4120
|
"content",
|
|
4121
|
+
"material_asset_id",
|
|
4115
4122
|
"ratio",
|
|
4116
4123
|
"duration",
|
|
4117
4124
|
"resolution",
|
package/package.json
CHANGED