Discussions
Get a clip doesn't works
10 months ago by info
Hi,
after I subscribed API Launch plan (50USD) I can't create any video clips. Below, see one of the last attempts.
The response is always in pending_url state.
-----CREATE E CLIP-------
curl --request POST \
--url https://api.d-id.com/clips \
--header 'accept: application/json' \
--header 'authorization: Basic *******************************************************2VnR6OWYwXw==' \
--header 'content-type: application/json' \
--data '
{
"script": {
"type": "text",
"provider": {
"type": "microsoft",
"voice_id": "en-US-JennyNeural"
},
"ssml": "false",
"input": "Ciao sono Sara, io e il mio team siamo pronti per iniziare"
},
"config": {
"result_format": "mp4"
},
"presenter_config": {
"crop": {
"type": "rectangle",
"rectangle": {
"bottom": 0.75,
"right": 0.75,
"left": 0.75,
"top": 0.75
}
}
},
"background": {
"source_url": "https://www.dap-system.it/AI/background-empty-boardroom-glass.jpg"
},
"webhook": "https://www.dap-system.it/AI/webhook/index.php",
"presenter_id": "alyssa-Kpjhh2J_rm"
}
'
-----RESPONSE------
{
"id": "clp_uYw7a6Dma8vBj80KgXn4t",
"created_at": "2024-03-18T21:27:08.180Z",
"object": "clip",
"status": "created"
}
-----GET A SPECIFIC CLIP-------
curl --request GET \
--url https://api.d-id.com/clips/clp_uYw7a6Dma8vBj80KgXn4t \
--header 'accept: application/json' \
--header 'authorization: Basic *******************************************************2VnR6OWYwXw==' \
-----RESPONSE------
{
"script": {
"length": 58,
"ssml": false,
"subtitles": false,
"type": "text",
"provider": {
"type": "microsoft",
"voice_id": "en-US-JennyNeural"
}
},
"webhook": "https://www.dap-system.it/AI/webhook/index.php",
"audio_url": "https://d-id-clips-prod.s3.us-west-2.amazonaws.com/auth0%7C65f36be8cc3b9034541bed05/clp_uYw7a6Dma8vBj80KgXn4t/microsoft.wav?AWSAccessKeyId=AKIA5CUMPJBIJ7CPKJNP&Expires=1710883628&Signature=EKYZUCOfLVox29Xg0XUMj8HU8AE%3D",
"created_at": "2024-03-18T21:27:08.180Z",
"config": {
"logo": {
"url": "ai",
"position": [
0,
0
]
},
"result_format": ".mp4"
},
"source_url": "https://clips-presenters.d-id.com/alyssa/Kpjhh2J_rm/8ObxDSzyWB/thumbnail.png",
"created_by": "auth0|65f36be8cc3b9034541bed05",
"status": "error",
"modified_at": "2024-03-18T21:27:09.276Z",
"completed_at": "2024-03-18T21:27:09.239",
"background": {
"source_url": "https://www.dap-system.it/AI/background-empty-boardroom-glass.jpg"
},
"presenter_id": "alyssa-Kpjhh2J_rm",
"subtitles": false,
"id": "clp_uYw7a6Dma8vBj80KgXn4t",
"duration": 6,
"error": {
"description": "Unknown internal error",
"kind": "UnknownError"
},
"presenter_config": {
"crop": {
"type": "rectangle",
"rectangle": {
"right": 0.75,
"top": 0.75,
"left": 0.75,
"bottom": 0.75
}
}
},
"started_at": "2024-03-18T21:27:09.239",
"pending_url": "s3://d-id-clips-prod/auth0|65f36be8cc3b9034541bed05/clp_uYw7a6Dma8vBj80KgXn4t/alyssa-Kpjhh2J_rm.mp4",
"user": {
"features": [
"stitch",
"no-watermark",
"clips:write",
"api-keys:write",
null
],
"stripe_customer_id": "cus_PlB92S0fU7E4Fn",
"stripe_plan_group": "deid-api-launch",
"authorizer": "basic",
"owner_id": "auth0|65f36be8cc3b9034541bed05",
"id": "auth0|65f36be8cc3b9034541bed05",
"plan": "deid-api-launch",
"email": "[email protected]",
"stripe_price_id": "price_1OR7xIJxEKZ2zAynoQeHqoIl"
},
"owner_id": "auth0|65f36be8cc3b9034541bed05"
}
Thanks,
Robert.