Discussions

Ask a Question
Back to All

{"error":"You don't have access to this API"}

Trying to generate with this endpoint (not the V2 one): https://docs.play.ht/reference/api-convert-tts-standard-premium-voices


{"error":"You don't have access to this API"}


How do I fix this?


import requests
url = "https://api.play.ht/api/v1/convert"

payload = {
"content": ["Hey you!"],
"voice": "ja-JP-Wavenet-C"
}
headers = {
"accept": "application/json",
"content-type": "application/json",

.....

}

response = requests.post(url, json=payload, headers=headers)

print(response.text)