Appearance
💃🏻 舞蹈模型 viggle
- 2024.07.06 本站已经支持 舞蹈模型
viggle
viggle
本身无api, 跟GPTs 一样是通过逆向得来,- 支持
角色照片
+舞蹈模版视频
=>角色舞蹈视频
- 计费是按次数,一次一个视频
- 价格分2种
watermark
和pro
可查阅版本接入点 - 当前默认
watermark
有水印,pro
无水印 - 如何使用 访问 https://viggle.ddaiai.com 看下面的
在线试用
注意
1.访问 https://viggle.ddaiai.com (如果被墙了,换下二级域名前缀 suibian
)
2.如果发现被墙了 可以自己换地址 https://suibian.ddaiai.com
把 suibian
换其他的 如 https://2024.ddaiai.com
都能访问
版本接入点
- 默认是watermark版本 https://api.openai-hk.com/viggle
- pro版本模式 https://api.openai-hk.com/pro/viggle
- 2钟模式价格不一致
计费规则
watermark版本
不管时长 2000积分/次,8月24调整为1000积分/次pro版本
如果用官方模版 不管时长 8000积分/次pro版本
用户自传舞蹈视频 每15秒为一次不足15秒
按15秒
计算 比如模版视频时长17s
则2次
*8000积分/次
=16000积分
在线试用
设置
- 打开 https://viggle.ddaiai.com
- 下图相应的地方设置
- Viggle接口地址:https://api.openai-hk.com
- Viggle KEY: hk-你的apiKey
- 上传角色 和模版舞蹈视频
效果
Viggle API
- 约定 header 需要带上
Authorization: Bearer hk-你的key
- watermark 版本 接口地址 https://api.openai-hk.com/viggle
- pro 版本 接口地址 https://api.openai-hk.com/pro/viggle
- 以下是用 watermark 作为范例
创建角色
shell
curl --request POST \
--url https://api.openai-hk.com/viggle/asset/image \
--header 'Authorization: Bearer your-hk-key' \
--header 'content-type: multipart/form-data' \
--form file=@/youfile/163-q.jpeg
curl --request POST \
--url https://api.openai-hk.com/viggle/asset/image \
--header 'Authorization: Bearer your-hk-key' \
--header 'content-type: multipart/form-data' \
--form file=@/youfile/163-q.jpeg
返回结果如下,结果中的 data.id
我们称为为 imageID
json
{
"code": 0,
"message": "ok",
"ts": "",
"reason": "",
"data": {
"id": "f7831b4f-657a-4cd1-8b44-04ba0aff61ed",
"name": "163-q",
"url": "https://d1o0mfcotrd9q.cloudfront.net/image-asset/18ab38a4-b013-4afa-b031-e0e901ee7606.jpeg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIA34TJNLFYRSUCDEUH%2F20240705%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20240705T152450Z&X-Amz-Expires=43200&X-Amz-SignedHeaders=host&X-Amz-Signature=4228aafb0147f888b7487c9eeb9842eb4bd2a519baa4b95c564ad1d403c50e21",
"width": 660,
"height": 881
}
}
{
"code": 0,
"message": "ok",
"ts": "",
"reason": "",
"data": {
"id": "f7831b4f-657a-4cd1-8b44-04ba0aff61ed",
"name": "163-q",
"url": "https://d1o0mfcotrd9q.cloudfront.net/image-asset/18ab38a4-b013-4afa-b031-e0e901ee7606.jpeg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIA34TJNLFYRSUCDEUH%2F20240705%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20240705T152450Z&X-Amz-Expires=43200&X-Amz-SignedHeaders=host&X-Amz-Signature=4228aafb0147f888b7487c9eeb9842eb4bd2a519baa4b95c564ad1d403c50e21",
"width": 660,
"height": 881
}
}
上传舞蹈模版视频
shell
curl --request POST \
--url https://api.openai-hk.com/viggle/asset/video/f7831b4f-657a-4cd1-8b44-04ba0aff61ed \
--header 'Authorization: Bearer your-hk-key' \
--header 'content-type: multipart/form-data' \
--form file=@/youfile/163-q.mp4
curl --request POST \
--url https://api.openai-hk.com/viggle/asset/video/f7831b4f-657a-4cd1-8b44-04ba0aff61ed \
--header 'Authorization: Bearer your-hk-key' \
--header 'content-type: multipart/form-data' \
--form file=@/youfile/163-q.mp4
返回结果如下,结果中的 data.id
我们称为为 videoID
json
{
"code": 0,
"message": "ok",
"ts": "",
"reason": "",
"data": {
"id": "56b64267-2e5b-43f6-abc8-007ff2da3253",
"name": "7356dd9b-547a-45fe-b88e-cb1613d02e67_raw_video_1_video059e35",
"url": "https://d1o0mfcotrd9q.cloudfront.net/video-asset/707c0c3f-26af-4e4a-a62d-6cd0a0b1f15a.mp4?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIA34TJNLFYRSUCDEUH%2F20240705%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20240705T152056Z&X-Amz-Expires=43200&X-Amz-SignedHeaders=host&X-Amz-Signature=d976934f7eefd3208af45953e0607890baa8cd2b7dd60aa626882b09db42c814",
"coverURL": "https://d1o0mfcotrd9q.cloudfront.net/image-asset/1720147355401-426cf3de-dd44-4d52-9056-c25e654817ae.jpg",
"width": 1360,
"height": 752
}
}
{
"code": 0,
"message": "ok",
"ts": "",
"reason": "",
"data": {
"id": "56b64267-2e5b-43f6-abc8-007ff2da3253",
"name": "7356dd9b-547a-45fe-b88e-cb1613d02e67_raw_video_1_video059e35",
"url": "https://d1o0mfcotrd9q.cloudfront.net/video-asset/707c0c3f-26af-4e4a-a62d-6cd0a0b1f15a.mp4?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIA34TJNLFYRSUCDEUH%2F20240705%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20240705T152056Z&X-Amz-Expires=43200&X-Amz-SignedHeaders=host&X-Amz-Signature=d976934f7eefd3208af45953e0607890baa8cd2b7dd60aa626882b09db42c814",
"coverURL": "https://d1o0mfcotrd9q.cloudfront.net/image-asset/1720147355401-426cf3de-dd44-4d52-9056-c25e654817ae.jpg",
"width": 1360,
"height": 752
}
}
创建舞蹈视频任务
请求体 templateID
跟 videoID
必选一个
json
{
"imageID": "f7831b4f-657a-4cd1-8b44-04ba0aff61ed",
"bgMode": 2,
"modelInfoID": 3,
"templateID": "官网模版视频ID",
"videoID": "用户自上传的视频ID"
}
{
"imageID": "f7831b4f-657a-4cd1-8b44-04ba0aff61ed",
"bgMode": 2,
"modelInfoID": 3,
"templateID": "官网模版视频ID",
"videoID": "用户自上传的视频ID"
}
curl demo
shell
curl --request POST \
--url https://api.openai-hk.com/viggle/video-task \
--header 'Authorization: Bearer your-hk-key' \
--header 'content-type: application/json' \
--data '{
"imageID": "f7831b4f-657a-4cd1-8b44-04ba0aff61ed",
"bgMode": 2,
"modelInfoID": 3,
"templateID": "67d1cdaf-d1fb-4bdf-959e-72c5a80b23e4"
}'
curl --request POST \
--url https://api.openai-hk.com/viggle/video-task \
--header 'Authorization: Bearer your-hk-key' \
--header 'content-type: application/json' \
--data '{
"imageID": "f7831b4f-657a-4cd1-8b44-04ba0aff61ed",
"bgMode": 2,
"modelInfoID": 3,
"templateID": "67d1cdaf-d1fb-4bdf-959e-72c5a80b23e4"
}'
返回, data.taskID
为 taskID
json
{
"code": 0,
"message": "ok",
"ts": "",
"reason": "",
"data": {
"taskID": "7bf6fa01-607a-4420-87a9-92592f95ac9c",
"mqType": 0
}
}
{
"code": 0,
"message": "ok",
"ts": "",
"reason": "",
"data": {
"taskID": "7bf6fa01-607a-4420-87a9-92592f95ac9c",
"mqType": 0
}
}
获取任务结果
post https://api.openai-hk.com/viggle/video-task/by-ids 请求体,
ids
为taskID
目前仅支持一个ID;多个ID进来只会去取第一个结果
json
{
"ids": [
"{taskID}"
]
}
{
"ids": [
"{taskID}"
]
}
curl demo
shell
curl --request POST \
--url https://api.openai-hk.com/viggle/video-task/by-ids \
--header 'Authorization: Bearer your-hk-key' \
--header 'content-type: application/json' \
--data '{
"ids": [
"e254d8b6-ddc5-47cf-ba95-da92a63174dc"
]
}'
curl --request POST \
--url https://api.openai-hk.com/viggle/video-task/by-ids \
--header 'Authorization: Bearer your-hk-key' \
--header 'content-type: application/json' \
--data '{
"ids": [
"e254d8b6-ddc5-47cf-ba95-da92a63174dc"
]
}'
返回
json
{
"code": 0,
"message": "ok",
"ts": "",
"reason": "",
"data": [
{
"taskID": "e254d8b6-ddc5-47cf-ba95-da92a63174dc",
"name": "Diulio Sephus1720193129",
"status": 0,
"image": {
"id": "f7831b4f-657a-4cd1-8b44-04ba0aff61ed",
"name": "163-q",
"url": "https://d1o0mfcotrd9q.cloudfront.net/image-asset/18ab38a4-b013-4afa-b031-e0e901ee7606.jpeg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIA34TJNLFYRSUCDEUH%2F20240705%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20240705T153136Z&X-Amz-Expires=43200&X-Amz-SignedHeaders=host&X-Amz-Signature=f0e9ed80ffc95b6d207d4e6ab4cd29cac5609b1b2c919b60eda5b75958b7546d",
"width": 0,
"height": 0
},
"template": {
"id": "67d1cdaf-d1fb-4bdf-959e-72c5a80b23e4",
"command": "rickroll_never_gonna_give_you_up",
"webCommand": "Rickroll Never Gonna Give You Up",
"description": "Rick Roll beginning",
"webStatus": 0,
"dcStatus": 0,
"appStatus": 0,
"processedURL": "https://d1o0mfcotrd9q.cloudfront.net/template/b130f4ab-0dd6-439f-b05f-f9f1bf51383f.mp4",
"processedHdURL": "",
"processedCoverURL": "https://d1o0mfcotrd9q.cloudfront.net/web-template/1719822894720-c300cc94-581b-4a4e-9331-65bbd5ca315c.jpg",
"bgURL": "",
"bgCoverURL": "",
"displayURL": "https://d1o0mfcotrd9q.cloudfront.net/template/7e266c1a-20ba-4e11-8fc9-8101e358f226.mp4",
"displayHdURL": "",
"displayCoverURL": "https://d1o0mfcotrd9q.cloudfront.net/web-template/1719822895423-34350ebc-be64-4400-8b50-cfc01dfaa4f7.jpg",
"gifURL": "https://d1o0mfcotrd9q.cloudfront.net/web-template/1719822897007-762018cc-7bbe-455e-84d2-95b88d62cac0.gif",
"webPURL": "https://d1o0mfcotrd9q.cloudfront.net/web-template/1719822895792-4bcdc6f6-3726-4193-8ed1-418547a9122b.webp",
"source": "YouTube: Rick Astley",
"sort": 0,
"width": 1280,
"height": 960
},
"videoDuration": 6.64,
"bgMode": 2,
"modelInfoID": 3,
"optimize": true,
"watermark": 0,
"freeCredits": 0,
"planCredits": 0,
"purchasedCredits": 0,
"mqType": 0,
"result": "https://d1o0mfcotrd9q.cloudfront.net/gras/725cd928-a588-4f1f-ab01-fd350cdb20ef.mp4",
"resultCover": "https://d1o0mfcotrd9q.cloudfront.net/web-template/1720193136070-241cae7f-82a9-4106-8380-adb123bf7847.jpg",
"createdAt": "2024-07-05T15:25:30.034Z"
}
]
}
{
"code": 0,
"message": "ok",
"ts": "",
"reason": "",
"data": [
{
"taskID": "e254d8b6-ddc5-47cf-ba95-da92a63174dc",
"name": "Diulio Sephus1720193129",
"status": 0,
"image": {
"id": "f7831b4f-657a-4cd1-8b44-04ba0aff61ed",
"name": "163-q",
"url": "https://d1o0mfcotrd9q.cloudfront.net/image-asset/18ab38a4-b013-4afa-b031-e0e901ee7606.jpeg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIA34TJNLFYRSUCDEUH%2F20240705%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20240705T153136Z&X-Amz-Expires=43200&X-Amz-SignedHeaders=host&X-Amz-Signature=f0e9ed80ffc95b6d207d4e6ab4cd29cac5609b1b2c919b60eda5b75958b7546d",
"width": 0,
"height": 0
},
"template": {
"id": "67d1cdaf-d1fb-4bdf-959e-72c5a80b23e4",
"command": "rickroll_never_gonna_give_you_up",
"webCommand": "Rickroll Never Gonna Give You Up",
"description": "Rick Roll beginning",
"webStatus": 0,
"dcStatus": 0,
"appStatus": 0,
"processedURL": "https://d1o0mfcotrd9q.cloudfront.net/template/b130f4ab-0dd6-439f-b05f-f9f1bf51383f.mp4",
"processedHdURL": "",
"processedCoverURL": "https://d1o0mfcotrd9q.cloudfront.net/web-template/1719822894720-c300cc94-581b-4a4e-9331-65bbd5ca315c.jpg",
"bgURL": "",
"bgCoverURL": "",
"displayURL": "https://d1o0mfcotrd9q.cloudfront.net/template/7e266c1a-20ba-4e11-8fc9-8101e358f226.mp4",
"displayHdURL": "",
"displayCoverURL": "https://d1o0mfcotrd9q.cloudfront.net/web-template/1719822895423-34350ebc-be64-4400-8b50-cfc01dfaa4f7.jpg",
"gifURL": "https://d1o0mfcotrd9q.cloudfront.net/web-template/1719822897007-762018cc-7bbe-455e-84d2-95b88d62cac0.gif",
"webPURL": "https://d1o0mfcotrd9q.cloudfront.net/web-template/1719822895792-4bcdc6f6-3726-4193-8ed1-418547a9122b.webp",
"source": "YouTube: Rick Astley",
"sort": 0,
"width": 1280,
"height": 960
},
"videoDuration": 6.64,
"bgMode": 2,
"modelInfoID": 3,
"optimize": true,
"watermark": 0,
"freeCredits": 0,
"planCredits": 0,
"purchasedCredits": 0,
"mqType": 0,
"result": "https://d1o0mfcotrd9q.cloudfront.net/gras/725cd928-a588-4f1f-ab01-fd350cdb20ef.mp4",
"resultCover": "https://d1o0mfcotrd9q.cloudfront.net/web-template/1720193136070-241cae7f-82a9-4106-8380-adb123bf7847.jpg",
"createdAt": "2024-07-05T15:25:30.034Z"
}
]
}
获取官方舞蹈视频模版
分2个步骤
1.获取tag
shell
curl 'https://api.openai-hk.com/viggle/template2/tag' \
-H 'Authorization: Bearer hk-your-api-key' \
-H 'Content-Type: application/json'
curl 'https://api.openai-hk.com/viggle/template2/tag' \
-H 'Authorization: Bearer hk-your-api-key' \
-H 'Content-Type: application/json'
返回体,这边获取的data[0].id
为tagID
json
{
"code": 0,
"message": "ok",
"ts": "",
"reason": "",
"data": [
{
"id": "d92c8ba0-b5e5-4128-9387-97bf4384d404",
"name": "Featured",
"sort": 100
},
{
"id": "497db5fb-ee8a-4718-ba82-b14f7c0d260d",
"name": "Trending",
"sort": 80
},
...
]
}
{
"code": 0,
"message": "ok",
"ts": "",
"reason": "",
"data": [
{
"id": "d92c8ba0-b5e5-4128-9387-97bf4384d404",
"name": "Featured",
"sort": 100
},
{
"id": "497db5fb-ee8a-4718-ba82-b14f7c0d260d",
"name": "Trending",
"sort": 80
},
...
]
}
2.获取tag下的模版
get https://api.openai-hk.com/viggle/template2?page=1&pageSize=48&searchKeyword=&tagID={tagID}&type=0
shell
curl 'https://api.openai-hk.com/viggle/template2?page=1&pageSize=48&searchKeyword=&tagID=d92c8ba0-b5e5-4128-9387-97bf4384d404&type=0' \
-H 'Authorization: Bearer hk-your-api-key' \
-H 'Content-Type: application/json'
curl 'https://api.openai-hk.com/viggle/template2?page=1&pageSize=48&searchKeyword=&tagID=d92c8ba0-b5e5-4128-9387-97bf4384d404&type=0' \
-H 'Authorization: Bearer hk-your-api-key' \
-H 'Content-Type: application/json'
返回体, 这边获取的data[0].id
为templateID
可在创建舞蹈视频任务中使用
json
{
"code": 0,
"message": "ok",
"ts": "",
"reason": "",
"data": [
{
"id": "c8a418c4-6790-4ce6-bb96-f60342c8b101",
"command": "$masbondit_suara_asli",
"webCommand": "Masbondit Suara Asli",
"description": "Masbondit mafiapentol Suara Asli",
"webStatus": 0,
"dcStatus": 0,
"appStatus": 0,
"processedURL": "https://d1o0mfcotrd9q.cloudfront.net/template/6c210b14-3fcb-4368-a882-48c68216504a.mp4",
"processedHdURL": "",
"processedCoverURL": "https://d1o0mfcotrd9q.cloudfront.net/web-template/1720174163500-06d50e1a-d7ba-4ee1-9f34-f972023f73e8.jpg",
"bgURL": "",
"bgCoverURL": "",
"displayURL": "https://d1o0mfcotrd9q.cloudfront.net/template/706dbf09-4fb1-4c85-a2b7-929f988ae6bc.mp4",
"displayHdURL": "",
"displayCoverURL": "https://d1o0mfcotrd9q.cloudfront.net/web-template/1720174164598-ada48d6e-3c64-45cd-9e16-962e04081c5a.jpg",
"gifURL": "https://d1o0mfcotrd9q.cloudfront.net/web-template/1720174166664-653ce964-65eb-460d-8352-37afc05cc082.gif",
"webPURL": "https://d1o0mfcotrd9q.cloudfront.net/web-template/1720174165041-8ccf27aa-4eef-4df9-9225-0f6b20e3b954.webp",
"source": "Tiktok: masbondit_mafiapentol",
"sort": 0,
"width": 576,
"height": 1024
},
{
"id": "67d1cdaf-d1fb-4bdf-959e-72c5a80b23e4",
"command": "$rickroll_never_gonna_give_you_up",
"webCommand": "Rickroll Never Gonna Give You Up",
"description": "Rick Roll beginning",
"webStatus": 0,
"dcStatus": 0,
"appStatus": 0,
"processedURL": "https://d1o0mfcotrd9q.cloudfront.net/template/b130f4ab-0dd6-439f-b05f-f9f1bf51383f.mp4",
"processedHdURL": "",
"processedCoverURL": "https://d1o0mfcotrd9q.cloudfront.net/web-template/1719822894720-c300cc94-581b-4a4e-9331-65bbd5ca315c.jpg",
"bgURL": "",
"bgCoverURL": "",
"displayURL": "https://d1o0mfcotrd9q.cloudfront.net/template/7e266c1a-20ba-4e11-8fc9-8101e358f226.mp4",
"displayHdURL": "",
"displayCoverURL": "https://d1o0mfcotrd9q.cloudfront.net/web-template/1719822895423-34350ebc-be64-4400-8b50-cfc01dfaa4f7.jpg",
"gifURL": "https://d1o0mfcotrd9q.cloudfront.net/web-template/1719822897007-762018cc-7bbe-455e-84d2-95b88d62cac0.gif",
"webPURL": "https://d1o0mfcotrd9q.cloudfront.net/web-template/1719822895792-4bcdc6f6-3726-4193-8ed1-418547a9122b.webp",
"source": "YouTube: Rick Astley",
"sort": 0,
"width": 1280,
"height": 960
},
....
],
"total": 40
}
{
"code": 0,
"message": "ok",
"ts": "",
"reason": "",
"data": [
{
"id": "c8a418c4-6790-4ce6-bb96-f60342c8b101",
"command": "$masbondit_suara_asli",
"webCommand": "Masbondit Suara Asli",
"description": "Masbondit mafiapentol Suara Asli",
"webStatus": 0,
"dcStatus": 0,
"appStatus": 0,
"processedURL": "https://d1o0mfcotrd9q.cloudfront.net/template/6c210b14-3fcb-4368-a882-48c68216504a.mp4",
"processedHdURL": "",
"processedCoverURL": "https://d1o0mfcotrd9q.cloudfront.net/web-template/1720174163500-06d50e1a-d7ba-4ee1-9f34-f972023f73e8.jpg",
"bgURL": "",
"bgCoverURL": "",
"displayURL": "https://d1o0mfcotrd9q.cloudfront.net/template/706dbf09-4fb1-4c85-a2b7-929f988ae6bc.mp4",
"displayHdURL": "",
"displayCoverURL": "https://d1o0mfcotrd9q.cloudfront.net/web-template/1720174164598-ada48d6e-3c64-45cd-9e16-962e04081c5a.jpg",
"gifURL": "https://d1o0mfcotrd9q.cloudfront.net/web-template/1720174166664-653ce964-65eb-460d-8352-37afc05cc082.gif",
"webPURL": "https://d1o0mfcotrd9q.cloudfront.net/web-template/1720174165041-8ccf27aa-4eef-4df9-9225-0f6b20e3b954.webp",
"source": "Tiktok: masbondit_mafiapentol",
"sort": 0,
"width": 576,
"height": 1024
},
{
"id": "67d1cdaf-d1fb-4bdf-959e-72c5a80b23e4",
"command": "$rickroll_never_gonna_give_you_up",
"webCommand": "Rickroll Never Gonna Give You Up",
"description": "Rick Roll beginning",
"webStatus": 0,
"dcStatus": 0,
"appStatus": 0,
"processedURL": "https://d1o0mfcotrd9q.cloudfront.net/template/b130f4ab-0dd6-439f-b05f-f9f1bf51383f.mp4",
"processedHdURL": "",
"processedCoverURL": "https://d1o0mfcotrd9q.cloudfront.net/web-template/1719822894720-c300cc94-581b-4a4e-9331-65bbd5ca315c.jpg",
"bgURL": "",
"bgCoverURL": "",
"displayURL": "https://d1o0mfcotrd9q.cloudfront.net/template/7e266c1a-20ba-4e11-8fc9-8101e358f226.mp4",
"displayHdURL": "",
"displayCoverURL": "https://d1o0mfcotrd9q.cloudfront.net/web-template/1719822895423-34350ebc-be64-4400-8b50-cfc01dfaa4f7.jpg",
"gifURL": "https://d1o0mfcotrd9q.cloudfront.net/web-template/1719822897007-762018cc-7bbe-455e-84d2-95b88d62cac0.gif",
"webPURL": "https://d1o0mfcotrd9q.cloudfront.net/web-template/1719822895792-4bcdc6f6-3726-4193-8ed1-418547a9122b.webp",
"source": "YouTube: Rick Astley",
"sort": 0,
"width": 1280,
"height": 960
},
....
],
"total": 40
}