longtake

v1.0.2
io.github.svatrous/longtake Checked 4 days ago Published 1 month ago

Drive Longtake Studio from an agent: AI video takes on your own API key, characters, drafts, costs

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

studio_overview

Studio overview: projects with folders and scenes (ids and names), characters, assets, active renders. Call this first — all other tools use ids from here.

create_project

Create a project (scaffolded with "Episode 1" and "Scene 1").

ParameterTypeDescription
name *string

create_folder

Create a folder (episode) in a project — a "Scene 1" appears inside.

ParameterTypeDescription
name *string
projectId *string

create_scene

Create a scene in a folder.

ParameterTypeDescription
folderId *string
name *string

upload_asset

Upload a local file (image, audio, or a reference clip) to the project library. Returns the name for @mentions. A library picture referenced as @name reaches the video model exactly as it is — to put a face in front of a video model, make it a character's portrait (create_character): that lays the anti-moderation grain on it. A clip (mp4/mov, 2–30 s, 480p or 720p) mentioned as @name goes to Seedance as a reference video — motion, camera movement, pacing, an effect — and its seconds are billed as input on top of the take; pass durationSec (and width/height) so the studio can check the l…

ParameterTypeDescription
filePath *stringabsolute path to the file
projectId *string
durationSecnumberlength of an audio or video file in seconds; measured here with ffprobe (video) or from the file (mp3/wav) when omitted
heightintegerframe height of a clip in px (measured with ffprobe when omitted)
namestring
widthintegerframe width of a clip in px (measured with ffprobe when omitted)

generate_mocap

Generate a character mockup sheet (21:9, 4 panels: full-body front·profile·back·portrait). From a real-person photo (photoPaths) and/or a text description. Engine: Seedream (BytePlus) with a Gemini fallback. The result is saved as an asset in the library. Pass its id to create_character as imageAssetId to cast it — the sheet gets the anti-moderation grain at that moment.

ParameterTypeDescription
projectId *string
assetNamestringname for the @mention; without it the sheet is called "mockup" (then mockup-2, …) — this tool has no character name to build one from
descriptionstringwho it is; required when there are no photos; write the style right here
photoPathsarraypaths to photos of the person (up to 14)

create_character

Create a character: name (for @mentions) + appearance (a local sheet via imageFilePath, or a library assetId) + voice (audio file or assetId). The voice is locked in — it does not change from scene to scene. A character with a portrait is screen-tested automatically: a 4s clip is rendered to find out whether the reference clears content moderation, and the verdict comes back in `check` ("rejected" = the portrait reads as a real person and every take with it would fail — replace it with a clearly animated one or a verified actor asset://).

ParameterTypeDescription
name *string
projectId *string
arkImageAssetstringasset:// of a verified BytePlus actor
arkVoiceAssetstring
grainLevelintegerstrength of the anti-moderation grain on the portrait, 10–100 (default 60): the percent of black the darkest grain cell may reach. Raise it when Seedance 2.5 refuses a face that 2.0 accepts; the cle…
imageAssetIdstringan existing library asset — it becomes the character's portrait and gets the anti-moderation grain at that moment (the clean file stays for previews; the asset itself stays in the library). If the p…
imageFilePathstringpath to a local character sheet — preferred for a photorealistic face: the file is stored as the character's own (not listed in the library) and gets the automatic anti-moderation grain, the way att…
voiceAssetIdstring
voiceFilePathstringpath to a 2–15 s voice sample — mp3 or wav only, the video model takes nothing else; all speaking characters in one take share that 15 s window (30 s on Seedance 2.5)

generate_video

Generate a take (video) in a scene. In the prompt you can reference characters and assets by @name (see studio_overview) — the studio attaches portraits, voices and references itself. A @clip from the library goes to Seedance as a reference video (say what to take from it: "the camera movement of @clip", "the pacing of @clip"); up to 3 clips per take on the 2.0 family, 10 on 2.5, 30 s of reference video in total, and every second of it is billed on top of the take. Write the prompt in English: Russian is not among the prompt languages of these models, and the studio translates it only if its…

ParameterTypeDescription
prompt *string
sceneId *string
cameraPhrasesarrayEnglish camera-movement phrases, e.g. "Slow cinematic dolly in toward the subject."
draftbooleanSeedance 2.5 only: a 480p draft that finish_draft can render again as the same shot in 1080p within 7 days. Billed as an ordinary 480p take. With draft, model defaults to 2.5 and resolution to 480p
durationinteger4–15 sec (Seedance 2.0), 4–30 (2.5), 3–15 (Kling), 4/6/8 (Veo), or -1 = model decides (Seedance only); defaults to 8
firstFrameAssetIdstring
generateAudiobooleandefaults to true
lastFrameAssetIdstring
modelstringdefaults to Seedance 2.0. Seedance: 4–15 s, adaptive ratio, references and voice samples (2.5: up to 30 s, 30 references). Veo: 16:9/9:16, duration 4, 6 or 8 only, no voice, Lite takes no references…
ratiostringdefaults to adaptive on Seedance and to 16:9 on engines that have no adaptive; 2.5 with a first/last frame accepts adaptive only
resolutionstringdefaults to 720p, the one size every engine has (a draft: 480p, the only size drafts are shot in); 360p is Omni only, 480p is Seedance only, 4K is on Seedance 2.0, Veo 3.1/Fast and Kling 3.0
variantsintegertakes at once, defaults to 1

finish_draft

Finish a Seedance 2.5 draft (a take shot with generate_video draft: true) in 1080p. The model renders the SAME shot again at full size: composition, camera path, blocking, timing, faces and sound carry over, fine detail is drawn again — and so are the draft's mistakes. A new 1080p take gives a different video; an upscale works from the draft's pixels alone. Billed as an ordinary 1080p take of the draft's length on 2.5 — about $2.84 per 5 s at 16:9 at list price. Quote it with estimate_cost once the draft has succeeded (its values are the real ones then): model 2.5, resolution 1080p, and du…

ParameterTypeDescription
taskId *stringid of the draft take (from generate_video, take_status or scene_takes)

take_status

Take status: queued/running/succeeded/failed + video file, last frame, token spend, and what the take was shot as: model, resolution, ratio, duration and referenceVideoSec (seconds of @clips it was billed for). A failed take carries error, words to act on, and errorCode when the studio knows the kind: OUTPUT_REFUSED is the provider's filter refusing the finished video — nothing was charged, and the same request mostly gets the same answer. A Seedance 2.5 draft carries draft: true and final — its live 1080p final, or null; a final carries finishOf, the draft it was made from.

ParameterTypeDescription
taskId *string

scene_takes

Scene takes (brief, newest first). A Seedance 2.5 draft is marked draft: true; a draft's 1080p final carries finishOf.

ParameterTypeDescription
sceneId *string

cancel_take

Delete a take. A queued BytePlus take is also cancelled at the provider, so its tokens are not burned. Everywhere else this is only a delete: Veo, Omni and Kling accept the render when it is created and have no cancel at all, and a take that is already running cannot be called back on any engine — it is paid for and the file is thrown away.

ParameterTypeDescription
taskId *string

estimate_cost

Estimate generation cost before running. Seedance is billed in tokens (duration × width × height × 24 / 1024, at a $/M rate that differs per model and resolution); Veo and Kling are billed by the second; Gemini Omni is billed by tokens it decides after the fact, so its figure is a pessimistic guess. A Seedance 2.5 draft (generate_video draft: true) costs exactly a 480p take on 2.5 — price it with that model, not the default; its final (finish_draft) costs a 1080p take on 2.5 of the draft's duration and ratio, plus the draft's referenceVideoSec from take_status.

ParameterTypeDescription
durationSec *integer
resolution *string
modelstringdefaults to Seedance 2.0. Seedance: 4–15 s, adaptive ratio, references and voice samples (2.5: up to 30 s, 30 references). Veo: 16:9/9:16, duration 4, 6 or 8 only, no voice, Lite takes no references…
ratiostring
referenceVideoSecnumbertotal length of the @clips the prompt will reference — billed as input seconds on the cheaper video-input column (Seedance only)
variantsinteger