POST
/
textToVideoStream
curl --request POST \
  --url https://api.simli.ai/textToVideoStream \
  --header 'Content-Type: application/json' \
  --data '{
  "ttsAPIKey": "",
  "simliAPIKey": "",
  "faceId": "tmp9i8bbq7c",
  "user_id": "",
  "requestBody": {
    "audioProvider": "PlayHT",
    "text": "Hello, my name is John Doe",
    "voice": "s3://voice-cloning-zero-shot/d9ff78ba-d016-47f6-b0ef-dd630f59414e/female-cs/manifest.json",
    "quality": "draft",
    "speed": 1,
    "sample_rate": 24000,
    "voice_engine": "PlayHT2.0-turbo",
    "output_format": "mp3",
    "emotion": "female_happy",
    "voice_guidance": 3,
    "style_guidance": 20,
    "text_guidance": 1
  }
}'
"<any>"

Sample Input with elevenlabs audio provider

{
  "ttsAPIKey": "", // Your Elevenlabs api Key
  "simliAPIKey": "",
  "faceId": "tmp9i8bbq7c",
  "requestBody": {
    "audioProvider": "ElevenLabs",
    "text": "Tell me a joke will you. How many cakes can you eat?",
    "voiceName": "pMsXgVXv3BLzUgSXRplE",
    "model_id": "eleven_turbo_v2",
    "voice_settings": {
        "stability": 0.1,
        "similarity_boost": 0.3,
        "style": 0.2
    }
  }
}

Sample Input with PlayHT audio provider

{
  "ttsAPIKey": "", // Your playht_authorization key
  "simliAPIKey": "",
  "faceId": "tmp9i8bbq7c",
  "user_id": "", // Your playht user id
  "requestBody": {
    "audioProvider": "PlayHT",
    "text": "Hello, my name is John Doe. Tell me a joke.",
    "voice": "s3://voice-cloning-zero-shot/d9ff78ba-d016-47f6-b0ef-dd630f59414e/female-cs/manifest.json",
    "quality": "draft",
    "speed": 1,
    "sample_rate": 24000,
    "voice_engine": "PlayHT2.0-turbo",
    "output_format": "mp3",
    "emotion": "female_happy",
    "voice_guidance": 3,
    "style_guidance": 20,
    "text_guidance": 1
  }
}

Sample Response Body

{
    "hls_url": "http://api.simli.ai/hls/path-to-file/output.m3u8",
    "mp4_url": "http://api.simli.ai/mp4/path-to-file/output.mp4"
}

Body

application/json
faceId
string
required
simliAPIKey
string
required
requestBody
object
required
ttsAPIKey
string | null
user_id
string
default:

Response

200
application/json
Successful Response

The response is of type any.