Skip to main content
POST
/
api
/
v1
/
client
/
prompt
/
speech
cURL
curl --request POST \
  --url https://api.deapi.ai/api/v1/client/prompt/speech \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "A beautiful landscape",
  "lang_code": "en"
}
'
{
  "prompt": "<string>"
}
This endpoint is shared with v1. v2 clients call the same /api/v1/client/prompt/speech path.
Enhance a raw user prompt into a detailed, model-friendly prompt optimized for text-to-speech synthesis.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
prompt
string
Minimum string length: 3
Example:

"A beautiful landscape"

lang_code
string | null
Example:

"en"

Response

Enhanced prompts returned successfully

prompt
string