Discussions
Got a response 500 error.
about 1 year ago by virtualik
Hi.
When I send POST request with this data:
import requests
url = "https://api.d-id.com/clips"
payload = {
"script": {
"type": "text",
"input": input_text,
"provider": {
"type": "microsoft",
"voice_id": "en-US-JennyNeural"
},
"ssml": "false"
},
"config": {"result_format": "mp4"},
"presenter_config": {"crop": {
"type": "rectangle",
"rectangle": {
"bottom": 0,
"right": 0,
"left": 0,
"top": 0
}
}},
"presenter_id": "amy-zjBKSuTooU",
}
headers = {
"accept": "application/json",
"content-type": "application/json",
"Authorization": "Bearer mytoken}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
I got an error 500.
Could you tell me what's wrong?
Regards, Vitaly.