cneural / cc-t4
- Public
- 1 run
Run cneural/cc-t4 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 |
---|---|---|---|
video_file_input |
string
|
Video file
|
|
transcript_file_input |
string
|
Transcript file, if provided will use this for words rather than whisper.
|
|
output_video |
boolean
|
True
|
Output video, if true will output the video with subtitles
|
output_transcript |
boolean
|
True
|
Output transcript json, if true will output a transcript file that you can edit and use for the next run in transcript_file_input
|
subs_position |
string
(enum)
|
bottom75
Options: bottom75, center, top, bottom, left, right |
Subtitles position
|
color |
string
|
white
|
Caption color
|
highlight_color |
string
|
yellow
|
Highlight color
|
fontsize |
number
|
7
|
Font size. 7.0 is good for videos, 4.0 is good for reels
|
MaxChars |
integer
|
20
|
Max characters space for subtitles. 20 is good for videos, 10 is good for reels
|
opacity |
number
|
0
|
Opacity for the subtitles background
|
font |
string
(enum)
|
Poppins/Poppins-ExtraBold.ttf
Options: Poppins/Poppins-Bold.ttf, Poppins/Poppins-BoldItalic.ttf, Poppins/Poppins-ExtraBold.ttf, Poppins/Poppins-ExtraBoldItalic.ttf, Poppins/Poppins-Black.ttf, Poppins/Poppins-BlackItalic.ttf, Atkinson_Hyperlegible/AtkinsonHyperlegible-Bold.ttf, Atkinson_Hyperlegible/AtkinsonHyperlegible-BoldItalic.ttf, M_PLUS_Rounded_1c/MPLUSRounded1c-ExtraBold.ttf, Arial/Arial_Bold.ttf, Arial/Arial_BoldItalic.ttf |
Font
|
stroke_color |
string
|
black
|
Stroke color
|
stroke_width |
number
|
2.6
|
Stroke width
|
kerning |
number
|
-5
|
Kerning for the subtitles
|
right_to_left |
boolean
|
False
|
Right to left subtitles, for right to left languages. Only Arial fonts are supported.
|
{
"type": "object",
"title": "Input",
"required": [
"video_file_input"
],
"properties": {
"font": {
"enum": [
"Poppins/Poppins-Bold.ttf",
"Poppins/Poppins-BoldItalic.ttf",
"Poppins/Poppins-ExtraBold.ttf",
"Poppins/Poppins-ExtraBoldItalic.ttf",
"Poppins/Poppins-Black.ttf",
"Poppins/Poppins-BlackItalic.ttf",
"Atkinson_Hyperlegible/AtkinsonHyperlegible-Bold.ttf",
"Atkinson_Hyperlegible/AtkinsonHyperlegible-BoldItalic.ttf",
"M_PLUS_Rounded_1c/MPLUSRounded1c-ExtraBold.ttf",
"Arial/Arial_Bold.ttf",
"Arial/Arial_BoldItalic.ttf"
],
"type": "string",
"title": "font",
"description": "Font",
"default": "Poppins/Poppins-ExtraBold.ttf",
"x-order": 10
},
"color": {
"type": "string",
"title": "Color",
"default": "white",
"x-order": 5,
"description": "Caption color"
},
"kerning": {
"type": "number",
"title": "Kerning",
"default": -5,
"x-order": 13,
"description": "Kerning for the subtitles"
},
"opacity": {
"type": "number",
"title": "Opacity",
"default": 0,
"x-order": 9,
"description": "Opacity for the subtitles background"
},
"MaxChars": {
"type": "integer",
"title": "Maxchars",
"default": 20,
"x-order": 8,
"description": "Max characters space for subtitles. 20 is good for videos, 10 is good for reels"
},
"fontsize": {
"type": "number",
"title": "Fontsize",
"default": 7,
"x-order": 7,
"description": "Font size. 7.0 is good for videos, 4.0 is good for reels"
},
"output_video": {
"type": "boolean",
"title": "Output Video",
"default": true,
"x-order": 2,
"description": "Output video, if true will output the video with subtitles"
},
"stroke_color": {
"type": "string",
"title": "Stroke Color",
"default": "black",
"x-order": 11,
"description": "Stroke color"
},
"stroke_width": {
"type": "number",
"title": "Stroke Width",
"default": 2.6,
"x-order": 12,
"description": "Stroke width"
},
"right_to_left": {
"type": "boolean",
"title": "Right To Left",
"default": false,
"x-order": 14,
"description": "Right to left subtitles, for right to left languages. Only Arial fonts are supported."
},
"subs_position": {
"enum": [
"bottom75",
"center",
"top",
"bottom",
"left",
"right"
],
"type": "string",
"title": "subs_position",
"description": "Subtitles position",
"default": "bottom75",
"x-order": 4
},
"highlight_color": {
"type": "string",
"title": "Highlight Color",
"default": "yellow",
"x-order": 6,
"description": "Highlight color"
},
"video_file_input": {
"type": "string",
"title": "Video File Input",
"format": "uri",
"x-order": 0,
"description": "Video file"
},
"output_transcript": {
"type": "boolean",
"title": "Output Transcript",
"default": true,
"x-order": 3,
"description": "Output transcript json, if true will output a transcript file that you can edit and use for the next run in transcript_file_input"
},
"transcript_file_input": {
"type": "string",
"title": "Transcript File Input",
"format": "uri",
"x-order": 1,
"description": "Transcript file, if provided will use this for words rather than whisper."
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
{
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Output"
}