Where things stand and what to do next; start and resume here.
Always reports the account: plan, credits, credits held by running jobs,
and credits_available to spend. project_id adds the project's settings,
each step's state and web link, jobs with readable errors, export_url,
next_step and, when something failed, failures: the last failed jobs and
the failed segments grouped by kind and error.…
输入参数waitchannel_idproject_id
Show a Framesail image inline: a segment image, reference image,
style template or preset preview.
输入参数url必填
get_generation_options
Get generation options
What a generate call can be told to use.
models: the allowed models with credit estimates and settings_schema
(the valid settings keys); is_default marks the default (the account's
saved choice, else Framesail's). Voice and clip models come in families,
each with its own default: pass provider or talking_head for one family.
prompt_sections: sections with entity_backed=false can be…
输入参数action必填providergeneration必填talking_head
The account's default model and settings for one kind of generation,
used when neither the call nor the item's prompt editor names one.
voice_block needs provider and segment_video needs talking_head: each
family keeps its own default.
输入参数modelaction必填providersettingsgeneration必填talking_head
Permanently delete; irreversible, so confirm with the user first.
project: it and everything in it. asset: a character, environment or
object. music_track: a background music track. segment_extra: a
segment's sound effect or overlay, with its scene layers. A segment's
image, clip and voiceover can't be deleted.
输入参数idtype必填project_idsegment_number
projects_read
Read channels and projects
Your channels, or the projects in one channel.
输入参数action必填channel_id
projects_edit
Edit channels and projects
Create a channel or a project, or change a project's title, brief or
video format. A new project takes its channel's style; a channel with no
style needs one (style_edit action=create) before anything is
generated. Share the returned web_url so the user can follow along.
输入参数nametitleaction必填channel_idproject_iddescriptionvideo_format
style_read
Read the channel style
get: the channel style: its references, its fields (art_style,
narrative_style, director_style, text_style, any added; script_prompt on
request), the summary analysis wrote for each, and templates, the
character and environment template images (null: not rendered; a URL:
it exists, so view_image it rather than render it again).
inputs_stale: the references changed since the last analysis…
输入参数action必填channel_idproject_idinclude_script_prompt
style_edit
Edit the channel style
Create or change the channel style (one per channel, used by all its
projects).
create: offer the user two real options, never invented ones. (a)
References (best): YouTube links of their channel or of videos whose
look they like, or a written description. Analysis starts at once and
writes the fields: wait with get_status channel_id wait=true, then
render both template images (style_generate…
输入参数nameaction必填fieldspresetschannel_id必填references
style_generate
Generate for the channel style
analyze: read the references again and rewrite art_style,
narrative_style, director_style and text_style, replacing hand edits.
template: render one of the style's two template images. Reference
images render on them (characters on the character template,
environments and objects on the environment one) and segment images
fall back on them, so finish both before any reference image. An
existing…
输入参数modelaction必填replacesettingschannel_id必填template_typeeditable_sections
script_read
Read the script
The active script, its versions, and the script settings
(script_target_minutes, voice_mix, visual concept). Show the script to
the user before Analyze Script.
输入参数project_id必填
script_edit
Edit the script
Change the script or its settings; only revise spends credits.
save: replace the active version's text (the old text is lost: show the
user the current script first), then run Analyze Script. Notation, never
read aloud: `[SCENE: <visual direction>]` as its own paragraph directs
the storyboard for the narration after it, until the next one, over the
director style. `<break time="1.5s" />` is the…
输入参数action必填contentscript_idvoice_mixproject_id必填instructionselected_textvisual_concept另有 1 个
script_generate
Generate the script or analyze it
generate: write the script from the brief and the narrative style;
each run is a new version (review it with script_read).
analyze (Analyze Script): find the script's characters, environments
and objects (including any named only in `[SCENE: ...]` directions) and
split it into voice blocks. Existing assets are kept as they are
(description, reference image, voice) and new ones added; assets…
输入参数modelaction必填settingsproject_id必填editable_sections
The project's characters, environments and objects, each with its
description (what every render follows), reference_image (null: not
rendered; view_image it) and, for characters, voice_id. Each needs a
reference image before the voiceover.
输入参数asset_typeproject_id必填
Add a character, environment or object that Analyze Script missed,
or rename one or rewrite its description. After a description change,
render its reference image again (assets_generate asset_ids).
输入参数nameaction必填asset_idasset_typeproject_iddescription
assets_generate
Generate reference images
Render reference images, which keep each character, environment and
object looking the same in every segment. Needs both style template
images. Without asset_ids it renders every asset with none, skipping
ones already rendering, so a repeat never bills twice. Afterwards,
view_image them to check likeness.
输入参数modeldry_runsettingsasset_idsproject_id必填editable_sections
voiceover_read
Read voices and voice blocks
voices: one engine's voice ids, labels and preview audio, as
{groups, voices}. blocks: the voice blocks (narration and dialogue) with
their speaker, voice_id (the speaker's voice), audio and any
`[SCENE: ...]` direction over them (never spoken), as {blocks,
total_duration_ms, all_complete}.
输入参数groupaction必填providerproject_idinclude_subtitle_data
voiceover_edit
Edit voices and voice blocks
Voices and voice blocks; free. set_voice: the narrator's or a
character's voice; every speaker needs one before the voiceover.
rescan_blocks: split the active script into voice blocks again after an
edit, assets untouched; blocks whose words are unchanged keep their
audio. settings: the voice engine, narrator speed and language.
输入参数action必填speakerlanguagevoice_idproject_id必填narrator_speedvoice_tts_provider
voiceover_generate
Generate the voiceover
Generate voice block audio. Every speaker needs a voice first, and
every asset a reference image. Without voice_block_ids it fills every
block with no audio, skipping ones already generating. A model must
match the project's voice engine. An existing storyboard retimes to the
new audio on its own.
输入参数modeldry_runsettingsproject_id必填voice_block_idseditable_sections
storyboard_read
Read the storyboard
segments: {total, offset, returned, segments}. Each segment has its
segment_number (the handle segment tools take), kind (image, clip,
talking head, real photo, B-roll or overlay segment), narration,
duration, direction, image_prompt, video_prompt (the motion when
animated), media_queries (searches for a real photo or B-roll), the
characters, environments and objects it shows,…
输入参数limitaction必填offsetproject_id必填segment_number
storyboard_edit
Edit storyboard settings
Storyboard settings, used by the next storyboard run.
输入参数action必填sfx_level必填project_id必填
storyboard_generate
Generate the storyboard
Plan the storyboard: every segment, its timing, image and motion
prompts, overlays and continuations, following the channel style and
any `[SCENE: ...]` directions. Needs the finished voiceover (its timing
drives the cuts). It plans images, plus real photos and B-roll when the
director style has the `@real-media` tag; clips come later, by animating
rendered images. Running it again replaces the…
输入参数modelsettingsproject_id必填editable_sections
segment_edit
Edit a segment
Change one segment without losing renders; only split spends
credits. Returns the changed segments.
set_prompts: write prompts verbatim, no AI rewrite. The renders stay as
they are: render the segment again to apply the new prompts.
set_continuation: make this segment's image continue an earlier one's
(same composition, only the change); render the image again.
rollback: restore one of the last…
输入参数whatindexaction必填offsets_msproject_id必填image_promptvideo_promptinherit_index另有 3 个
segment_restructure
Restructure a segment
Change what a segment is. Every call previews first: when no
rendered image or clip would be lost it runs; otherwise it changes
nothing and returns what would be lost. Show the user, then call again
with confirm=true.
combine: merge with a neighboring segment. The kept segment's renders
stay, retimed to the combined length, but go stale: its prompts are
rewritten for the combined narration, so…
输入参数tokeepaction必填confirmfeedbackkeep_imageproject_id必填segment_number必填另有 1 个
Render segment images and clips, the biggest spend in the video:
always run it with dry_run=true first and get the user's yes on the
estimate.
generate: without segment_numbers, everything not yet rendered (items
rendering are skipped); with them, those segments, finished renders
included, e.g. the first minute before the whole video. Overrides need
segment_numbers and what=images or…
输入参数whatmodelaction必填dry_runsettingsproject_id必填talking_headsegment_number另有 2 个
editor_read
Read the editor
scenes: the editor timeline, one scene per segment, as {total,
offset, returned, scenes}; scenes build on their own from the
storyboard. music: {tracks}, timed in seconds. audio_library: tracks to
add with editor_edit; when nothing matches, it lists the library's moods
and genres.
输入参数moodgenrelimitaction必填offsetsearchcategoryproject_id另有 1 个
editor_edit
Edit the video
Polish the video in the editor; changes show in the next export.
scene_note: edit one scene with a note (move, restyle, add or remove
layers and overlays, change the text of a lower third, title card or
callout, change motion); spends credits. Returns the changes and
skipped_mutations: edits that didn't land (applied=false) or landed
differently than asked (applied=true), each with a reason;…
输入参数loopnameaction必填volumemessagetrack_idproject_idstart_seconds另有 5 个
export_video
Export the video
Render the finished video from the editor timeline; free. When the
export job completes, get_status carries export_url.
输入参数project_id必填