Referencing Resources in Model Calls
Use resource UUIDs starting with tkres_ with the Asset:// protocol.
shell
curl --location 'https://neolink.com/api/v1/contents/generations/tasks' \
--header 'Authorization: Bearer <API Key>' \
--header 'Content-Type: application/json' \
--data '{
"model": "<Model ID>",
"content": [
{
"type": "text",
"text": "Make the person in image 1 do the cake from video 1"
},
{
"type": "video_url",
"video_url": {
"url": "https://ark-project.tos-cn-beijing.volces.com/doc_video/r2v_tea_video1.mp4"
},
"role": "reference_video"
},
{
"type": "image_url",
"image_url": {
"url": "Asset://tkres_06acdeb4b45f4aa283908e1acc58abe8"
},
"role": "reference_image"
}
],
"generate_audio":true,
"ratio": "16:9",
"duration": 11,
"watermark": false
}'If the current API Key does not have access to the resource, the request will be rejected.
