-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.yml
More file actions
3823 lines (3710 loc) · 171 KB
/
openapi.yml
File metadata and controls
3823 lines (3710 loc) · 171 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.3
info:
title: Tavus Developer API Collection
version: 1.0.0
contact: {}
servers:
- url: https://tavusapi.com
paths:
/v2/lipsync:
post:
tags:
- Lipsync
summary: Create Lipsync
description: |
Create a new lipsync video by providing a video URL and an audio URL. The service will synchronize the speaker's mouth movements with the provided audio.
operationId: createLipsync
requestBody:
content:
application/json:
schema:
type: object
properties:
original_video_url:
type: string
description: "A direct link to the video that will be modified. This should be a publicly accessible / presigned S3 URL."
example: "https://example.com/video.mp4"
source_audio_url:
type: string
description: "A direct link to the audio file that will be synchronized with the video. This should be a publicly accessible / presigned S3 URL."
example: "https://example.com/audio.mp3"
lipsync_name:
type: string
description: "An optional name for the lipsync video."
example: "My Lipsync Video"
callback_url:
type: string
description: "A url that will receive a callback on completion of the lipsync or on error."
example: "https://your-callback-url.com"
required:
- original_video_url
- source_audio_url
responses:
"200":
description: ""
content:
application/json:
schema:
type: object
properties:
lipsync_id:
type: string
description: "A unique identifier for the lipsync request."
example: "wf85407a7ba9d"
lipsync_name:
type: string
nullable: true
description: "The name of the lipsync request."
example: "My Lipsync Video"
status:
type: string
description: "The status of the lipsync request."
example: "started"
callback_url:
type: string
description: "The callback URL that will receive notifications about the lipsync request."
example: "https://your-callback-url.com"
request_id:
type: string
description: "Legacy field - will be removed soon. Use lipsync_id instead."
example: "wf85407a7ba9d"
request_name:
type: string
description: "Legacy field - will be removed soon. Use lipsync_name instead."
example: "My Lipsync Video"
"400":
description: "Bad Request"
content:
application/json:
schema:
type: object
properties:
error:
type: string
description: "The error message."
example: "Invalid original_video_url"
"401":
description: "UNAUTHORIZED"
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: "The error message."
example: "Invalid access token"
security:
- apiKey: []
get:
tags:
- Lipsync
summary: List Lipsyncs
description: |
This endpoint returns a list of all Lipsyncs created by the account associated with the API Key in use.
operationId: listLipsyncs
parameters:
- in: query
name: limit
schema:
type: integer
description: "The number of lipsyncs to return per page. Default is 10."
- in: query
name: page
schema:
type: integer
description: "The page number to return. Default is 1."
responses:
"200":
description: ""
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
type: object
properties:
lipsync_id:
type: string
description: "A unique identifier for the lipsync request."
example: "w0108f2d24k2a"
lipsync_name:
type: string
description: "The name of the lipsync video."
example: "My Lipsync Video"
status:
type: string
description: "The status of the lipsync request. Can be either `started`, `completed`, or `error`."
created_at:
type: string
description: "The date and time the lipsync request was created."
video_url:
type: string
description: "The URL to download the completed lipsync video."
example: "https://lipsync-prod.s3.amazonaws.com/l0108f2d24k2a.mp4"
request_id:
type: string
description: "Legacy field - will be removed soon. Use lipsync_id instead."
example: "w0108f2d24k2a"
request_name:
type: string
description: "Legacy field - will be removed soon. Use lipsync_name instead."
example: "My Lipsync Video"
total_count:
type: integer
description: "The total number of lipsync videos that fit the query."
"401":
description: "UNAUTHORIZED"
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: "The error message."
example: "Invalid access token"
security:
- apiKey: []
/v2/lipsync/{lipsync_id}:
get:
tags:
- Lipsync
summary: Get Lipsync
description: |
This endpoint returns a single lipsync by its unique identifier.
operationId: getLipsync
parameters:
- in: path
name: lipsync_id
required: true
schema:
type: string
description: "A unique identifier for the lipsync request."
responses:
"200":
description: ""
content:
application/json:
schema:
type: object
properties:
lipsync_id:
type: string
description: "A unique identifier for the lipsync request."
example: "w0108f2d24k2a"
lipsync_name:
type: string
description: "The name of the lipsync video."
example: "My Lipsync Video"
status:
type: string
description: "The status of the lipsync request."
created_at:
type: string
description: "The date and time the lipsync request was created."
video_url:
type: string
description: "The URL to download the completed lipsync video."
example: "https://lipsync-prod.s3.amazonaws.com/l0108f2d24k2a.mp4"
request_id:
type: string
description: "Legacy field - will be removed soon. Use lipsync_id instead."
example: "w0108f2d24k2a"
request_name:
type: string
description: "Legacy field - will be removed soon. Use lipsync_name instead."
example: "My Lipsync Video"
"400":
description: "Bad Request"
content:
application/json:
schema:
type: object
properties:
error:
type: string
description: "The error message."
example: "Invalid lipsync_id"
"401":
description: "UNAUTHORIZED"
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: "The error message."
example: "Invalid access token"
security:
- apiKey: []
delete:
tags:
- Lipsync
summary: Delete Lipsync
description: |
This endpoint deletes a single lipsync by its unique identifier.
operationId: deleteLipsync
parameters:
- in: path
name: lipsync_id
required: true
schema:
type: string
example: "w4ed23359d415"
description: "A unique identifier for the lipsync request."
responses:
"204":
description: "OK"
"400":
description: "Bad Request"
content:
application/json:
schema:
type: object
properties:
error:
type: string
description: "The error message."
example: "Invalid lipsync_id"
"401":
description: "UNAUTHORIZED"
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: "The error message."
example: "Invalid access token"
security:
- apiKey: []
/v2/replacements:
post:
tags:
- Replacements
summary: Create Replacement
description: |
This endpoint creates a test word replacement request that will modify specific words or phrases in an existing video.
operationId: createReplacement
requestBody:
content:
application/json:
schema:
type: object
properties:
original_video_url:
type: string
description: "A direct link to the video that will be modified. This should be a publicly accessible / presigned S3 URL."
example: "https://example.com/video.mp4"
transcription_id:
type: string
example: "t0108f2d24k2a"
description: "A unique identifier for the transcription."
new_transcript:
type: string
example: "Hello John, I'm excited to show you our new product!"
description: "The new text that will replace the old text in the video. This should be an edited version of the text returned from the transcription service (referenced by transcription_id). Both the original transcription and this new text are used to identify which words to replace."
callback_url:
type: string
description: "A url that will receive a callback on completion of the replacement or on error."
example: "https://your-callback-url.com"
replacement_name:
type: string
description: "An optional name for the replacement."
example: "My First Replacement"
required:
- original_video_url
- new_transcript
responses:
"200":
description: ""
content:
application/json:
schema:
type: object
properties:
replacement_id:
type: string
example: "w0108f2d24k2a"
description: "A unique identifier for the replacement."
status:
type: string
description: "The status of the replacement."
created_at:
type: string
description: "The date and time the replacement was created."
security:
- apiKey: []
get:
tags:
- Replacements
summary: List Replacements
description: |
This endpoint returns a list of all Replacements created by the account associated with the API Key in use.
operationId: listReplacements
parameters:
- in: query
name: limit
schema:
type: integer
description: "The number of replacements to return per page. Default is 10."
- in: query
name: page
schema:
type: integer
description: "The page number to return. Default is 1."
responses:
"200":
description: ""
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
type: object
properties:
replacement_id:
type: string
description: "A unique identifier for the replacement."
example: "w0108f2d24k2a"
replacement_name:
type: string
description: "The name of the replacement."
example: "My First Replacement"
status:
type: string
description: "The status of the replacement. Can be either `started`, `completed`, or `error`."
created_at:
type: string
description: "The date and time the replacement was created."
total_count:
type: integer
description: "The total number of replacements that fit the query."
security:
- apiKey: []
/v2/replacements/{replacement_id}:
get:
tags:
- Replacements
summary: Get Replacement
description: |
This endpoint returns a single replacement by its unique identifier.
operationId: getReplacement
parameters:
- in: path
name: replacement_id
required: true
schema:
type: string
description: "A unique identifier for the replacement."
responses:
"200":
description: ""
content:
application/json:
schema:
type: object
properties:
replacement_id:
type: string
example: "w0108f2d24k2a"
description: "A unique identifier for the replacement."
replacement_name:
type: string
description: "The name of the replacement."
status:
type: string
description: "The status of the replacement."
created_at:
type: string
description: "The date and time the replacement was created."
security:
- apiKey: []
delete:
tags:
- Replacements
summary: Delete Replacement
description: |
This endpoint deletes a single replacement by its unique identifier.
operationId: deleteReplacement
parameters:
- in: path
name: replacement_id
required: true
schema:
type: string
description: "A unique identifier for the replacement."
responses:
"204":
description: ""
security:
- apiKey: []
/v2/speech:
post:
tags:
- Speech
summary: Generate Speech
description: |
This endpoint generates an audio file based on a script with a provided Replica.
operationId: generateSpeech
requestBody:
content:
application/json:
schema:
type: object
properties:
script:
type: string
description: "The text script that will be used to generate the audio."
example: "Hi, this is my first speech."
replica_id:
type: string
description: "The replica that will be used to generate the audio."
example: "r665388ec672"
speech_name:
type: string
description: "A name for the speech."
example: "My First Speech"
callback_url:
type: string
description: "The speech file will be returned asynchoronously as a presigned S3 URL."
example: "https://yourwebsite.com/webhook"
required:
- script
- replica_id
- callback_url
examples:
Generate Speech:
value:
script: "Hi, this is my first speech."
replica_id: "r665388ec672"
responses:
"200":
description: ""
content:
application/json:
schema:
type: object
properties:
speech_id:
type: string
example: "sda06a0f4256"
description: "A unique identifier for the speech."
speech_name:
type: string
description: "The name of the speech."
speech_file_url:
type: string
description: "If no callback_url is provided in the request, this will contain a direct link to download the speech file."
"400":
description: "Bad Request"
content:
application/json:
schema:
type: object
properties:
error:
type: string
description: "The error message."
example: "Invalid replica_id"
"401":
description: "UNAUTHORIZED"
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: "The error message."
example: "Invalid access token"
security:
- apiKey: []
get:
tags:
- Speech
summary: List Speeches
description: |
This endpoint returns a list of all Speeches created by the account associated with the API Key in use.
operationId: listSpeeches
parameters:
- in: query
name: limit
schema:
type: integer
description: "The number of speeches to return per page. Default is 10."
- in: query
name: page
schema:
type: integer
description: "The page number to return. Default is 1."
- in: query
name: replica_id
schema:
type: string
description: "A unique identifier for the replica whose speeches you would like to list."
responses:
"200":
description: ""
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
type: object
properties:
speech_id:
type: string
description: "A unique identifier for the speech."
example: ""
speech_name:
type: string
description: "A name for the speech."
example: ""
speech_file_url:
type: string
description: "A direct link to download the speech file."
example: ""
replica_id:
type: string
description: "The replica that was used to generate the speech."
example: ""
"401":
description: "UNAUTHORIZED"
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: "The error message."
example: "Invalid access token"
security:
- apiKey: []
/v2/speech/{speech_id}:
get:
tags:
- Speech
summary: Get Speech
description: |
This endpoint returns a single speech by its unique identifier.
operationId: getSpeech
parameters:
- in: path
name: speech_id
required: true
schema:
type: string
description: "A unique identifier for the speech."
responses:
"200":
description: ""
content:
application/json:
schema:
type: object
properties:
speech_id:
type: string
example: ""
description: "A unique identifier for the speech."
speech_name:
type: string
description: "The name of the speech."
speech_file_url:
type: string
description: "A direct link to download the speech file."
replica_id:
type: string
description: "The replica that was used to generate the speech."
"400":
description: "Bad Request"
content:
application/json:
schema:
type: object
properties:
error:
type: string
description: "The error message."
example: "Invalid speech_id"
"401":
description: "UNAUTHORIZED"
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: "The error message."
example: "Invalid access token"
security:
- apiKey: []
delete:
tags:
- Speech
summary: Delete Speech
description: |
This endpoint deletes a single speech by its unique identifier.
operationId: deleteSpeech
responses:
"204":
description: ""
"400":
description: "Bad Request"
content:
application/json:
schema:
type: object
properties:
error:
type: string
description: "The error message."
example: "Invalid speech_id"
"401":
description: "UNAUTHORIZED"
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: "The error message."
example: "Invalid access token"
security:
- apiKey: []
parameters:
- name: speech_id
in: path
required: true
description: "The unique identifier of the speech."
schema:
type: string
example: "sda06a0f4256"
/v2/speech/{speech_id}/name:
patch:
tags:
- Speech
summary: Rename Speech
description: |
This endpoint renames a single speech by its unique identifier.
operationId: renameSpeech
requestBody:
content:
application/json:
schema:
type: object
properties:
speech_name:
type: string
example: "First Speech"
required:
- speech_name
examples:
Rename Speech:
value:
speech_name: "First Speech"
responses:
"204":
description: ""
"400":
description: "Bad Request"
content:
application/json:
schema:
type: object
properties:
error:
type: string
description: "The error message."
example: "Invalid speech_id"
"401":
description: "UNAUTHORIZED"
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: "The error message."
example: "Invalid access token"
security:
- apiKey: []
parameters:
- name: speech_id
in: path
required: true
description: "The unique identifier of the speech."
schema:
type: string
example: "sda06a0f4256"
/v2/videos:
get:
tags:
- Videos
summary: List Videos
description: |
This endpoint returns a list of all Videos created by the account associated with the API Key in use.
operationId: listVideos
parameters:
- in: query
name: limit
schema:
type: integer
description: "The number of videos to return per page. Default is 10."
- in: query
name: page
schema:
type: integer
description: "The page number to return. Default is 1."
responses:
"200":
description: ""
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
type: object
properties:
video_id:
type: string
description: "A unique identifier for the video."
example: "783537ef5"
video_name:
type: string
description: "A name for the video."
example: "My First Video"
status:
type: string
description: "The status of the video. Possible values: queued, generating, ready, deleted, error."
example: "generating"
data:
type: object
properties:
script:
type: string
description: "The script that was initially used to generate the video."
example: "Hello from Tavus! Enjoy your new replica"
download_url:
type: string
description: "A link to download the video."
example: ""
hosted_url:
type: string
description: "A link to view the video."
stream_url:
type: string
description: "A link to stream the video."
example: ""
status_details:
type: string
description: "A detailed status of the video."
example: ""
background_url:
type: string
description: "A link to a website. This will be used as the background for the video. The website must be publicly accessible and properly formed."
example: ""
background_source_url:
type: string
description: "A direct link to a video that is publicly accessible via a storage location such as an S3 bucket. This will be used as the background for the video. The video must be publicly accessible."
example: ""
still_image_thumbnail_url:
type: string
description: "A link to a still image that is a thumbnail of the video."
example: ""
gif_thumbnail_url:
type: string
description: "A link to a gif that is a thumbnail of the video."
example: ""
error_details:
type: string
description: "If the video has an error, this will contain the error message."
example: ""
total_count:
type: integer
description: "The total number of videos given the filters provided."
"401":
description: "UNAUTHORIZED"
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: "The error message."
example: "Invalid access token"
security:
- apiKey: []
post:
tags:
- Videos
summary: Generate Video
description: |
This endpoint generates a new video using a Replica and either a script or an audio file.
The only required body parameters are `replica_id` and either `script` or `audio_file`.
The `replica_id` is a unique identifier for the Replica that will be used to generate the video. The `script` is the text that will be spoken by the Replica in the video. If you would like to generate a video using an audio file instead of a script, you can provide `audio_url` instead of `script`. Currently, `.wav` and `.mp3` files are supported for audio file input.
If a `background_url` is provided, Tavus will record a video of the website and use it as the background for the video. If a `background_source_url` is provided, where the URL points to a download link such as a presigned S3 URL, Tavus will use the video as the background for the video. If neither are provided, the video will consist of a full screen Replica.
To learn more about generating videos with Replicas, see [here](/sections/video/quickstart).
To learn more about writing an effective script for your video, see [Scripting prompting](/sections/troubleshooting#script-length).
operationId: generateVideo
requestBody:
content:
application/json:
schema:
type: object
properties:
replica_id:
type: string
description: "A unique identifier for the replica that will be used to generate the video."
example: "r783537ef5"
video_name:
type: string
description: "A name for the video."
example: "My First Video"
background_url:
type: string
description: "A link to a website. This will be used as the background for the video. The website must be publicly accessible and properly formed."
example: "https://yourwebsite.com/"
background_source_url:
type: string
description: "A direct link to a video that is publicly accessible via a storage location such as an S3 bucket. This will be used as the background for the video. The video must be publicly accessible."
example: "https://my-example-bucket.s3.us-east-1.amazonaws.com/your-background-video.mp4"
callback_url:
type: string
description: "A url that will receive a callback on completion of video generation or on error."
example: "https://yourwebsite.com/webhook"
fast:
type: boolean
description: "If set to true, the video will be generated using a barebones fast rendering process. This will result in a faster generation of the video but some features will be disabled. Features such as background generation, thumbnail images, and streaming urls are not supported when using this fast rendering process."
example: false
transparent_background:
type: boolean
description: |
If set to true, the generated video will be a `.webm` video with a transparent background.
Please note that this feature only works if the `fast` parameter is set to `true`.
example: false
watermark_image_url:
type: string
description: "A direct link to a image that is publicly accessible via a storage location such as an S3 bucket.
This will be used as the watermark on the video. Currently, it support `png` & `jpeg` formats only. Ensure the image is publicly accessible."
example: https://s3.amazonaws.com/watermark.png
properties:
type: object
properties:
background_scroll:
type: boolean
description: |
If `background_url` is provided, this option may be configured.
If set to `true`, the background video will scroll down through the website. If set to `false`, the background video will display the top of the website.
The default is `true`.
example: true
background_scroll_type:
type: string
description: |
If `background_url` is provided and `background_scroll` is set to `true`, this option may be configured.
This parameter defines the scroll pattern if `background_scroll` is set to `true`.
There are two options: `human`, `smooth`.
The `human` scroll type is the default type and mimics a human scrolling through the webpage, briefly stopping at certain intervals to give a natural appearance. The `smooth` scroll type scroll in a uniform manner all the way down the website without stopping.
The default is `human`.
background_scroll_depth:
type: string
description: |
If `background_url` is provided and `background_scroll` is set to `true`, this option may be configured.
This parameter defines how far down the webpage the background video will scroll.
There are two options: `middle`, `bottom`.
The `middle` depth option will stop scrolling once the middle of the webpage has been hit. The `bottom` will scroll the webpage all the way to the bottom of the page.
The default is `middle`.
background_scroll_return:
type: string
description: |
If `background_url` is provided and `background_scroll` is set to `true`, this option may be configured.
This parameter defines the scrolling behavior once the webpage has been scrolled to the depth specified by the `background_scroll_depth` parameter.
There are two options: `return`, `halt`.
The `return` option will scroll back up once the webpage has reached `background_scroll_depth`. The `halt` option will pause the background video at the location specified in `background_scroll_depth`.
The default is `return`.
start_with_wave:
type: boolean
description: |
If set to true, the video will start with a wave animation. This is only supported for select stock replicas.
The default is `true`.
example: true
required:
- replica_id
oneOf:
- title: Generate from Text
type: object
properties:
script:
type: string
description: "A text script that will be used to generate the audio in the video."
example: "Hello from Tavus! Enjoy your new replica"
required:
- script
- title: Generate from Audio File
type: object