curl --request POST \
--url https://api.autocaption.io/v1/generate \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"input": "<string>",
"words": [
{
"start": 123,
"end": 123,
"word": "<string>",
"punctuated_word": "<string>"
}
],
"config": {
"colors": {
"defaultColor": {
"colors": [
{
"r": 127,
"g": 127,
"b": 127
}
]
},
"spokenColor": {
"colors": [
{
"r": 127,
"g": 127,
"b": 127
}
]
},
"hilightColor": {
"colors": [
{
"r": 127,
"g": 127,
"b": 127
}
]
},
"strokeColor": {
"colors": [
{
"r": 127,
"g": 127,
"b": 127
}
]
},
"backgroundColor": {
"colors": [
{
"r": 127,
"g": 127,
"b": 127
}
]
},
"shadowColor": {
"colors": [
{
"r": 127,
"g": 127,
"b": 127
}
]
}
},
"modes": {
"displayMode": "ALL",
"displayWords": "PUNCTUATION",
"spokenMode": "LINE",
"effectType": "DISABLED",
"effectMode": "LINE",
"displayEmojis": "WORD"
},
"sizes": {
"fontSize": 123,
"strokeSize": 123,
"blurSize": 123,
"emojiSize": 123,
"backgroundRadius": 123
},
"linesCount": 123,
"wordsPerLineCount": 123,
"wordHasBackground": true,
"wordHasPunctuation": true,
"wordHasShadow": true,
"wordHasCustomShadowColor": true,
"emojiAnimated": true,
"capitalizationType": "UPPERCASE"
}
}
'{
"download_url": "<string>"
}Generates a video based on provided input, words, and configuration, then returns a URL to download the generated file.
curl --request POST \
--url https://api.autocaption.io/v1/generate \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"input": "<string>",
"words": [
{
"start": 123,
"end": 123,
"word": "<string>",
"punctuated_word": "<string>"
}
],
"config": {
"colors": {
"defaultColor": {
"colors": [
{
"r": 127,
"g": 127,
"b": 127
}
]
},
"spokenColor": {
"colors": [
{
"r": 127,
"g": 127,
"b": 127
}
]
},
"hilightColor": {
"colors": [
{
"r": 127,
"g": 127,
"b": 127
}
]
},
"strokeColor": {
"colors": [
{
"r": 127,
"g": 127,
"b": 127
}
]
},
"backgroundColor": {
"colors": [
{
"r": 127,
"g": 127,
"b": 127
}
]
},
"shadowColor": {
"colors": [
{
"r": 127,
"g": 127,
"b": 127
}
]
}
},
"modes": {
"displayMode": "ALL",
"displayWords": "PUNCTUATION",
"spokenMode": "LINE",
"effectType": "DISABLED",
"effectMode": "LINE",
"displayEmojis": "WORD"
},
"sizes": {
"fontSize": 123,
"strokeSize": 123,
"blurSize": 123,
"emojiSize": 123,
"backgroundRadius": 123
},
"linesCount": 123,
"wordsPerLineCount": 123,
"wordHasBackground": true,
"wordHasPunctuation": true,
"wordHasShadow": true,
"wordHasCustomShadowColor": true,
"emojiAnimated": true,
"capitalizationType": "UPPERCASE"
}
}
'{
"download_url": "<string>"
}Identifier of the input file for generation.
Array of words to be included in the generated file.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
ALL, LINE, WORD PUNCTUATION, FIXED_COUNT LINE, WORD DISABLED, POP, BIG, SMOOTH_POP, FADE, FONT LINE, WORD, GROUP WORD, LINE UPPERCASE, LOWERCASE, TITLECASE URL to download the generated file.
Direct URL to download the generated file.