Skip to main content
Revolutionize Your Content Strategy with Our New Text-to-Video Generator In the fast-paced world of digital communication, video is king—but producing it has always been a bottleneck. Whether it’s the cost of equipment, the nerves of being on camera, or the endless hours spent in post-production, high-quality video has traditionally been a luxury. Today, we are changing the game. We are thrilled to announce the launch of our latest feature: Text-to-Video service. This tool allows you to transform simple text into professional, engaging video content in minutes, powered by our cutting-edge video generator models. How It Works: Your Digital Spokesperson, Our Text-to-Video generator is designed to be intuitive, powerful, and, most importantly, human.

Here is how you can create your next masterpiece:

1

Generate an API key

  1. Using TruGen.AI Developer Platform, generate an API key from our developers page.
  2. Set the newly generated API key as x-api-key in header.
apiKey: "x-api-key"
2

Select your avatar

Choose from our diverse library of hyper-realistic digital human avatars. Whether you need a corporate professional for a B2B presentation or a friendly face for a customer welcome video, we have the perfect match for your brand.You can select the avatar of your choice from the link and copy the avatar_id and paste it in your payloadhttps://docs.trugen.ai/docs/avatars/overview
"avatar_id" : "c5b563de"
3

Pick a Voice ID

Match your avatar with a high-fidelity voice. From warm and conversational to authoritative and bold, our voice IDs use advanced synthesis to ensure the tone matches your message perfectly.You can pick any voice id from the list below
NameVoice ID
Rachel21m00Tcm4TlvDq8ikWAM
LauraFGY2WhTYpPnrIDTdsKH5
ChrisiP95p4xoKVk53GoZ742B
WillbIHbv24MWmeRgasZH58o
Luca4JVOFy4SLQs9my0OLhEw
SeanztnpYzQJyWffPj1VC5Uw
HopeuYXf8XasLslADfZ2MB4u
Jessys3XeJJA4ArWMhRpcX1D
LoralbP6y87KyX5lwNEi7xOkX
YatinrFzjTA9NFWPsUdx39OwG
Monika SogamZUrEGyu8GFMwnHbvLhv2
EvanTWutjvRaJqAX89preB4e
SameerSV61h9yhBg4i91KIBwdz
Laura (Alt)FGLJyeekUzxl8M3CTG9M
Omarxvhpbk8otnNHtT3fjCpr
Please give the provider_name as elevenlabs and model_name as eleven_turbo_v2_5
"voice_id" : "FGY2WhTYpPnrIDTdsKH5",
"provider_name" : "elevenlabs",
"model_name" : "eleven_turbo_v2_5"
4

Input Your Script

Simply type or paste your text. Our AI takes over from there, perfectly syncing the avatar’s lip movements, facial expressions to the rhythm of the speech.
"script": "Hello, This is team trugen"
5

Give your callbak URL

This is important step, Please give a callback URL. You will recieve the link to your video to this callback URL
"callback_url": "https://paste-your-callback-url.com"
6

POST request

Finally, choose the terminal or platform of your choice and send the post request to the following endpoint and example payload.
https://api.trugen.ai/v1/script-to-video/createVideo

{
  "avatar_id": "c5b563de",
  "voice_id": "FGY2WhTYpPnrIDTdsKH5",
  "provider_name": "elevenlabs",
  "model_name": "eleven_turbo_v2_5",
  "script": "Hello, This is team trugen",
  "callback_url": "https://paste-your-callback-url.com"
}

7

Example payload

Send a POST request to https://api.trugen.ai/v1/script-to-video/createVideo.
curl --request POST \
  --url https://api.trugen.ai/v1/script-to-video/createVideo \
  --header 'x-api-key: <your-api-key>' \
  --data '{
    "avatar_id": "c5b563de",
    "voice_id": "FGY2WhTYpPnrIDTdsKH5",
    "provider_name": "elevenlabs",
    "model_name": "eleven_turbo_v2_5",
    "script": "Hello, This is team trugen",
    "callback_url": "https://paste-your-callback-url.com"
  }'

Know More

Our API References sections have several endpoints to create and manage Knowledge Base.

Text to Video - API Reference

Explore full set of supported APIs to create and manage Knowledge Base.