cURL
curl --request POST \ --url https://api.modelbeam.srv1069417.hstgr.cloud/api/v1/client/prompt/speech \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "prompt": "<string>", "lang_code": "<string>" } '
{ "prompt": "Enhanced text optimized for natural speech synthesis" }
Enhance text for better speech synthesis output.
API key obtained from the ModelBeam dashboard
Text to enhance for speech
3
Language code
Prompt enhanced
"Enhanced text optimized for natural speech synthesis"