One POST queues the render. Poll the record or listen to the live status stream, then receive the MP4 and its full editable scene graph. Included from Plus up. An API call is quoted at 2x the in-app Credit rate. It draws on the same balance.
POST /v1/explainer
{
"input": "Explain how recurring billing works",
"length": "1:00", // optional, in 30-second steps up to "6:00"
"aspect": "16:9", // optional; 16:9 only for now
"voice": "sketchie:sulafat", // Nora, the default narrator
"language": "en"
} නිර්මාණය අසමමුහුර්තයි. API එක වහාම 202 Accepted සහ පෝලිමේ ඇති record එකක් සමඟ ප්රතිචාර දක්වයි.
HTTP/1.1 202 Accepted
{
"id": "10f00eee-d2d6-4a1b-b708-f0391faaa85b",
"status": "queued",
"prompt": "Explain how recurring billing works",
"lengthSeconds": 60,
"voice": "sketchie:sulafat",
"language": "en",
"aspect": "16:9",
"videoUrl": null,
"sceneGraph": null
} record එක ready වන තෙක් GET /v1/explainer/:id ලබා ගන්න, නැතහොත් සජීවී තත්ත්ව යාවත්කාලීන සඳහා GET /v1/explainer/events වෙත දායක වන්න. සූදානම් record එක MP4 URL එකත් scene graph එකත් රැගෙන යයි.
GET /v1/explainer/10f00eee-d2d6-4a1b-b708-f0391faaa85b
{
"id": "10f00eee-d2d6-4a1b-b708-f0391faaa85b",
"status": "ready",
"videoUrl": "https://media.sketchie.ai/....mp4",
"sceneGraph": { "scenes": [ ... ] }
} API එක ඔබට හුදෙක් ගොනුවක් නොදෙයි. එය ඔබට ලේඛනයක් දෙයි. නිකුත් කළ edit endpoint එක හරහා සරල භාෂාවෙන් සංස්කරණයක් යවන්න:
POST /v1/explainer/{id}/edit
{ "instruction": "Make the second scene shorter and warmer" } තත්පර කිහිපයකින් ඔබට එක් දර්ශනයක් වෙනස් වී අනෙක් සියල්ල නොවෙනස්ව ඇති නව වීඩියෝවක් ලැබේ. නව අනුවාදය එම පැහැදිලි කිරීමේම ඉතිහාසයේ රැඳී සිටින බැවින්, ඔබට එය API එක හරහා පරීක්ෂා කිරීමට හෝ ආපසු හැරවීමට හැකිය.
Sketchie MCP සේවාදායකයක් සපයයි, එබැවින් MCP-සක්රීය ඕනෑම නියෝජිතයෙකුට පැහැදිලි කිරීමේ වීඩියෝ native මෙවලම් ලෙස ජනනය කර සංස්කරණය කළ හැකිය: ලේඛනයකින් ජනනය කරන්න, scene graph එක පරීක්ෂා කරන්න, සංස්කරණයක් ඉල්ලන්න, නැවත render කරන්න. පෙළ බිත්තියක් වෙනුවට වීඩියෝවකින් පිළිතුරු දිය යුතු නියෝජිතයන් ඔබ ගොඩනඟන්නේ නම්, මෙය පවතින කෙටිම මාර්ගයයි.
GET /v1/voices වෙතින් Nora, Miles, Dean, Clara, Piper හෝ Wren තෝරන්න. Nora යනු උණුසුම් පෙරනිමි කථකයා වන අතර, නාමාවලියේ සෑම හඬක්ම සහාය දක්වන සෑම භාෂාවක්ම කතා කළ හැකිය. හඬ පෙරදසුන් නාමාවලි ප්රතිචාරයේ ඇතුළත් වේ.