查询生成结果
curl --request POST \
--url https://alb.neural4d.com:3000/api/queryGenerationResult \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"uuid": "16be86d7-210a-4d22-a00b-62935c1900d2"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({uuid: '16be86d7-210a-4d22-a00b-62935c1900d2'})
};
fetch('https://alb.neural4d.com:3000/api/queryGenerationResult', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://alb.neural4d.com:3000/api/queryGenerationResult"
payload = { "uuid": "16be86d7-210a-4d22-a00b-62935c1900d2" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"data": {
"uuid": "4d0f8188-3fdd-4596-9d31-ceb6eab831655",
"status": "completed",
"resultType": "video",
"resultUrl": "https://example.mp4"
}
}图片与视频生成
查询生成结果
通过 UUID 查询生成结果。该操作仅用于查询,不消耗点数。
POST
/
api
/
queryGenerationResult
查询生成结果
curl --request POST \
--url https://alb.neural4d.com:3000/api/queryGenerationResult \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"uuid": "16be86d7-210a-4d22-a00b-62935c1900d2"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({uuid: '16be86d7-210a-4d22-a00b-62935c1900d2'})
};
fetch('https://alb.neural4d.com:3000/api/queryGenerationResult', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://alb.neural4d.com:3000/api/queryGenerationResult"
payload = { "uuid": "16be86d7-210a-4d22-a00b-62935c1900d2" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"data": {
"uuid": "4d0f8188-3fdd-4596-9d31-ceb6eab831655",
"status": "completed",
"resultType": "video",
"resultUrl": "https://example.mp4"
}
}⌘I