{"uid":"cap_hVyJ9zYZ2pIZD-i-DTwFl","slug":"sitecheck-subtitle-translation-f20e278a","name":"SiteCheck Subtitle Translation","description":"Translate an SRT or WebVTT subtitle file into another language. Only the cue text is translated; every cue number, timing line and header is copied exactly, and the output is checked to parse back to the same cues and timings, or it is refused unpaid. Body { subtitles, to, from }: up to 50 KB. Workers AI (Llama 3.1 8B) translates the text, so check it before publishing. Not live-checked: the owner tests it on the Worker after the merge.","url":"https://api.sitecheck-api.workers.dev/api/translate/subtitles?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"to":{"type":"string","description":"Target language name or code, e.g. German or de"},"from":{"type":"string","description":"Source language, optional; detected by the model when not given"},"subtitles":{"type":"string","description":"The SRT or WebVTT text, up to 50 KB (JSON body field)"}}},"responseSchema":{"type":"json","example":{"to":"de","cues":2,"from":null,"model":"@cf/meta/llama-3.1-8b-instruct-fast","format":"srt","source":"Workers AI (Llama 3.1 8B, translation of cue text only; timings copied from the input). Model output, check before publishing.","checkedAt":"2026-10-15T00:00:00.000Z","subtitles":"1\n00:00:01,000 --> 00:00:03,000\nHallo, schön dich zu sehen.\n\n2\n00:00:04,000 --> 00:00:06,500\nWie geht es\ndir?\n"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2MiES6HLk7tjs1MFunFJ8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Translates SRT or WebVTT subtitle files into a target language while preserving all timing cues","exampleAgentPrompt":"Can you translate these English subtitles into German for me? Here's the SRT content: '1\\n00:00:01,000 --> 00:00:03,000\\nHello, nice to see you.\\n\\n2\\n00:00:04,000 --> 00:00:06,500\\nHow are you?\\n'","exampleUseCases":[{"title":"Localizing a YouTube tutorial","prompt":"I have an SRT subtitle file for my English tutorial video and I need it translated into French so I can upload it to YouTube for French-speaking viewers — here's the content: '1\\n00:00:01,000 --> 00:00:04,000\\nWelcome to this tutorial on Python basics.\\n'"},{"title":"Multilingual conference video captions","prompt":"We recorded a conference talk in English and need the WebVTT captions translated into Japanese for our Asia-Pacific audience. Can you translate this: 'WEBVTT\\n\\n00:00:00.500 --> 00:00:03.000\\nThank you for joining us today.'"},{"title":"Film subtitle localization","prompt":"Can you take these Spanish film subtitles and translate them into Italian? I'm not sure of the exact source language code so just detect it automatically. Here's the SRT: '1\\n00:00:02,000 --> 00:00:05,000\\nBienvenidos a nuestra historia.'"}],"resultDescription":"Returns a JSON object containing the translated subtitle text in the original format (SRT or WebVTT) with all timing cues preserved, the detected or specified source language code, the target language code, the number of cues translated, the AI model used, and a warning to review the output before publishing.","failureModes":["Input subtitle text exceeds 50 KB limit — request rejected","Invalid or unrecognized target language code — translation may fail or produce unexpected output","Malformed SRT/WebVTT syntax — model may misparse cue boundaries","Low-resource or rare language targets may produce lower quality translations from Llama 3.1 8B","Model hallucination on technical or domain-specific terminology in subtitles"],"whenToPreferThis":"Choose this endpoint when you need a fast, pay-per-call subtitle translation that preserves SRT or WebVTT timing structure exactly — ideal for agents that need to localize video captions without running their own LLM infrastructure. Best for moderate-length subtitle files (up to 50 KB). If you need human-quality translation with glossary control or certified accuracy, prefer a dedicated translation service.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T09:50:34.545Z","isFirstParty":false,"canonicalSlug":"sitecheck-subtitle-translation-f20e278a"}