tmappdev/subtile-generation

Add subtitle to your video via GPU based acceleration.

Public
97 runs

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)

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",
  "x-cog-array-type": "iterator"
}