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>"
}
Language support: Specify the lang_code parameter to optimize the text for a specific language’s pronunciation and phrasing patterns.

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