idan054/sarra-video-maker-v2

Public
112 runs

Run idan054/sarra-video-maker-v2 with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

Input schema

The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.

Field Type Default value Description
subs_position
None
bottom75
Subtitles position
font
None
Arial/Arial_Bold.ttf
Font
color
string
white
Caption color
kerning
number
-4
Kerning for the subtitles
opacity
number
0
Opacity for the subtitles background
MaxChars
integer
15
Max characters space for subtitles. 20 is good for videos, 10 is good for reels
fontsize
number
5.3
Font size. 7.0 is good for videos, 4.0 is good for reels
output_video
boolean
True
Output video, if true will output the video with subtitles
stroke_color
string
black
Stroke color
stroke_width
number
1.3
Stroke width
right_to_left
boolean
True
Right to left subtitles, for right to left languages. Only Arial fonts are supported.
highlight_color
string
yellow
Highlight color
video_file_input
string
Video file
output_transcript
boolean
False
Output transcript json, if true will output a transcript file that you can edit and use for the next run in transcript_file_input | 12:35
background_file_input
string
Background music audio file (optional). Will be mixed at 0.22 volume with the main audio
main_audio_file_input
string
Main audio file to replace the original video audio. If not provided, video audio will be removed entirely.
transcript_file_input
string
Transcript file, JSON Format: [{'start': 12.34, 'end': 13.56, 'word': 'Hello World'}]

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{
  "type": "array",
  "items": {
    "type": "string",
    "format": "uri"
  },
  "title": "Output"
}