Your VidLab7 API key used for authentication.
The content type of the request body. Always application/json
.
Body application/json
The ID of the avatar to be used for the video generation
The script to be used for the video generation
The ID of the voice to be used for the video generation
The URL to which the webhook will be sent
The voice_settings object
The stability of the voice (0-100)
The similarity boost for the voice (0-100)
Whether to use speaker boost
The style of the voice (0-100)
curl --location --request POST 'https://api-prd.vidlab7.com/api/studio-avatar/generate-video' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <YOUR_API_KEY>' \
--data-raw '{
"avatarId": "avatar-uuid",
"script": "Hello world!",
"voiceId": "voice-uuid",
"webhookUrl": "https://your-webhook/example-endpoint",
"voice_settings": {
"similarity_boost": 50,
"use_speaker_boost": true,
"style": 0,
"stability": 50
}
}'
{
"id": "123",
"status": "PENDING"
}
Responses
201:
The ID of the generated video
The status of the generated video