
tmappdev/subtile-generation
Add subtitle to your video via GPU based acceleration.
Run tmappdev/subtile-generation 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 |
string
|
Input video file
|
|
openai_api_key |
string
|
OpenAI API key for Whisper transcription
|
|
script_text |
string
|
Optional script text to align with speech
|
|
language |
string
|
Language code (auto-detect if not specified)
|
|
max_chars_portrait |
integer
|
20
Min: 10 Max: 50 |
Max characters per line for portrait videos
|
max_chars_landscape |
integer
|
45
Min: 20 Max: 80 |
Max characters per line for landscape videos
|
max_chars_square |
integer
|
30
Min: 15 Max: 60 |
Max characters per line for square videos
|
font_size_override |
integer
|
0
Max: 50 |
Override automatic font sizing (0 = auto)
|
{
"type": "object",
"title": "Input",
"required": [
"video",
"openai_api_key"
],
"properties": {
"video": {
"type": "string",
"title": "Video",
"format": "uri",
"x-order": 0,
"description": "Input video file"
},
"language": {
"type": "string",
"title": "Language",
"x-order": 3,
"description": "Language code (auto-detect if not specified)"
},
"script_text": {
"type": "string",
"title": "Script Text",
"x-order": 2,
"description": "Optional script text to align with speech"
},
"openai_api_key": {
"type": "string",
"title": "Openai Api Key",
"x-order": 1,
"description": "OpenAI API key for Whisper transcription"
},
"max_chars_square": {
"type": "integer",
"title": "Max Chars Square",
"default": 30,
"maximum": 60,
"minimum": 15,
"x-order": 6,
"description": "Max characters per line for square videos"
},
"font_size_override": {
"type": "integer",
"title": "Font Size Override",
"default": 0,
"maximum": 50,
"minimum": 0,
"x-order": 7,
"description": "Override automatic font sizing (0 = auto)"
},
"max_chars_portrait": {
"type": "integer",
"title": "Max Chars Portrait",
"default": 20,
"maximum": 50,
"minimum": 10,
"x-order": 4,
"description": "Max characters per line for portrait videos"
},
"max_chars_landscape": {
"type": "integer",
"title": "Max Chars Landscape",
"default": 45,
"maximum": 80,
"minimum": 20,
"x-order": 5,
"description": "Max characters per line for landscape videos"
}
}
}
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",
"x-cog-array-type": "iterator"
}