Your VidLab7 API key used for authentication.
The content type of the request body. Always application/json
.
Body application/json
The url of the image or video used for creation (preferably GCP storage URL)
The type of media used for creation, either “image” or “video”
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/v1/fictional-avatar/generated-video' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <YOUR_API_KEY>' \
--data-raw '{
"mediaUrl": "https://your-storage-url",
"mediaType": "image",
"script": "Hello world!",
"voiceId": "voice-uuid",
"webhookUrl": "https://your-webhook/example-endpoint",
"voice_settings": {
"stability": 50,
"similarity_boost": 50,
"use_speaker_boost": true,
"style": 0
}
}'
{
"id": "123",
"status": "PENDING"
}
Responses
201:
The ID of the generated video
The status of the generated video