{"api_id":"pika/dynamic-captions/caption-video","vendor":"pika","function":"caption-video","category":"video","name":"Pika Dynamic Captions","description":"Pika Dynamic Captions: burn word-timed captions into a talking-head video in your chosen style and colour, keeping the original audio and length. Accepts SDR video up to 20 minutes. Billed per output second.","display_pricing":{"components":[{"role":"output","unit":{"type":"second","quantity":1,"included":0},"starting_at":{"spec":{},"sell_usd":"0.0004","micro_usd":400},"price_tiers":[{"spec":{},"sell_usd":"0.0004","micro_usd":400}]}]},"call":{"method":"POST","path":"/v1/media/pika/dynamic-captions/caption-video"},"input_schema":{"$defs":{"CaptionWord":{"additionalProperties":false,"properties":{"word":{"description":"The spoken word, as it should read on screen.","maxLength":80,"minLength":1,"title":"Word","type":"string"},"start":{"description":"When the word starts, in seconds from the top of the clip.","minimum":0,"title":"Start","type":"number"},"end":{"description":"When the word ends, in seconds from the top of the clip.","minimum":0,"title":"End","type":"number"},"emphasis":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"Multiposition only: set this word apart in the accent colour. When no word carries this field, Multiposition picks the emphasised words itself.","title":"Emphasis"}},"required":["word","start","end"],"title":"CaptionWord","type":"object"}},"additionalProperties":false,"properties":{"video":{"description":"The SDR clip to caption, up to 1200 seconds long. PQ/HLG HDR sources must be converted to SDR first. The output keeps its picture, audio and length, and its size up to 2160 pixels on the long side; a larger clip is scaled down to that.","maxLength":4096,"media_kinds":["video"],"pattern":"^https?://","title":"Video","type":"string"},"words":{"description":"The spoken words and their timings, as a transcription step returned them. Words are ordered by start time, and a word that runs into the next one is cut where it starts. Up to 4000 words, ending by 1200 seconds.","items":{"$ref":"#/$defs/CaptionWord"},"maxItems":4000,"minItems":1,"title":"Words","type":"array"},"style":{"description":"Which caption template renders the words.","enum":["scroll","bold-overlay","emphasis","multiposition","paper-cutout","handwrite","headline","cascade","push-out","bold-build","editorial-serif","line-by-line"],"title":"Style","type":"string"},"color":{"description":"The template's accent colour.","pattern":"^#[0-9A-Fa-f]{6}$","title":"Color","type":"string"}},"required":["video","words","style","color"],"title":"PikaCaptionsRequest","type":"object"}}