CraftStory

v0.8.0
io.github.itseez3d/craftstory-mcp Checked 4 days ago Published 1 month ago

Talking-avatar videos from a photo, short clips with sound, images and music.

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

list_models List CraftStory video models

Catalogue of the video models behind this server with their status, modes, limits and credit prices. Eight models: craftstory-2 (a talking video of any length from one photo plus an audio clip; 8-15 min), minimax-h3 (a clip of up to 15 s from one photo, description-driven with generated sound or audio-driven with lip-sync; 1-3 min), and six photo-as-first-frame models behind create_cloud_video: seedance-2.5, flux-3-video, flux-3-max, minimax-h3-max, heygen-video, gemini-omni-flash. Call this first when unsure which model fits, or to check that a model is not paused.

list_voices List voices for text-to-speech

Library voices (id, name, language, gender) usable as voice_id in create_audio_clip. With include_cloned=true also returns the account's own cloned voices, usable as voice_user_id. Voices are cloned in the CraftStory app, not via the API.

ParameterTypeDescription
include_clonedbooleanAlso return the account's cloned voices (default false)

list_avatars List custom avatars (and their scenes)

Custom avatars trained in the CraftStory app that craftstory-2 can generate with (pass an id as avatar_id); `models` lists which endpoints take the id — when it includes 'minimax-h3' the avatar also works with create_minimax_h3_avatar_video. Each avatar may carry a default voice {id, voice_kind}: voice_kind 'user' means send it as voice_user_id, 'library' as voice_id in create_audio_clip. Pass avatar_id to list that avatar's scenes; a scene id can replace the photo (scene_id) in create_craftstory2_video.

ParameterTypeDescription
avatar_idstringReturn the scenes of this avatar instead of the avatar list

create_audio_clip Create an audio clip (speech from text, or upload a recording)

The soundtrack every video model takes as input. Either text (up to 2000 characters) plus exactly one voice (voice_id from list_voices, or voice_user_id for a cloned voice), or a recording: file_path (local WAV/MP3/M4A) or audio_upload_id (a file the user dropped on an upload link from request_file_upload with kind='audio'). Returns the clip id; it is ready when wait_for_job(model='audio-clip') reports done (usually seconds). Longer scripts: create several clips and pass all ids to create_craftstory2_video in order.

ParameterTypeDescription
audio_upload_idstringupload_id of an uploaded recording (request_file_upload kind='audio', up to 100 MB) instead of text
file_pathstringLocal path of a recording to upload instead of text
textstringScript to synthesize (<= 2000 chars)
voice_idstringLibrary voice id (from list_voices)
voice_user_idstringCloned voice id (from list_voices with include_cloned)

preview_cost Estimate the credit cost of a CraftStory 2.0 video

Credits a craftstory-2 job would cost for the given audio clips and settings, without creating anything. Rate per second of audio: 480p 2.2 (2 with lipsync_mode=empty), 720p 3.3 (3 with empty); rounded up per job. MiniMax H3: 4.2 credits per billed second (basic and reference modes), 5.6 in avatar mode.

ParameterTypeDescription
audio_clip_ids *array
resolution *string
lipsync_modestring

create_craftstory2_video Create a CraftStory 2.0 talking video (photo + audio)

Start a craftstory-2 generation: a photo of a person (image_url or image_path, or a custom avatar scene via scene_id) speaks the given audio clips with lip-sync, gestures and natural motion; any length. With avatar_id a photo is OPTIONAL: pass scene_id (from list_avatars with avatar_id) or omit both and the avatar's first scene is used. When the user names an avatar or a scene, do not ask for a photo. resolution is WIDTH_HEIGHT (480_832 / 720_1280 portrait, 832_480 / 1280_720 landscape, 768_960 for 4:5 portrait billed as 720p, audio under 30 minutes); a 1.5x upscale is available afterwards via…

ParameterTypeDescription
audio_clip_ids *arrayAudio clip ids (from create_audio_clip), played in order
resolution *string
avatar_idstringCustom avatar id (from list_avatars); its trained model drives identity
faceswapbooleanIdentity pass on the result (default true; off for custom avatars)
gesturesstringHow much the avatar moves (default normal)
image_pathstringAbsolute local path of the photo to upload (JPG/PNG/HEIC, <= 20 MB); ~/ is expanded
image_urlstringPublic URL of the photo (JPG/PNG), or the file_url from wait_for_upload / get_upload
lipsync_modestringsync_so (default, same price) / craftstory (built-in engine) / empty (no lip-sync)
namestringLabel, used as the download file name
scene_idstringCustom avatar scene id (from list_avatars) used instead of a photo
user_promptstringOptional motion / scene hint

create_minimax_h3_video Create a MiniMax H3 clip (up to 15 s)

Start a minimax-h3 generation from one photo. mode='basic': user_prompt (scene description) + requested_duration_s (5-15); the model animates the photo and generates the soundtrack itself. mode='reference': the reference model. With audio_clip_id the clip is lip-synced to it (first 15 s billed) and user_prompt is optional. Without audio_clip_id, pass requested_duration_s and a user_prompt with the spoken line in quotes: the model voices it and generates the soundtrack. Either way up to 8 extra image / 3 video / 2 audio references keep a second person, a product or a background consistent: refe…

ParameterTypeDescription
mode *string
aspect_ratiostringOutput shape; auto (default) = the native ratio nearest to the photo (16:9 without one). 4:5 is rendered as 3:4 and center-cropped (848x1060) — the ad format
audio_clip_idstringReference mode: the clip that drives the video; leave out to have the lines in user_prompt voiced
image_pathstring
image_urlstringPublic URL of the photo, or the file_url from wait_for_upload / get_upload
namestring
reference_captionsarrayOne caption per reference, same order: reference_files first, then reference_upload_ids
reference_filesarrayReference mode: local paths of extra reference images/videos/audio
reference_upload_idsarrayReference mode: upload_ids of extra references the user uploaded via request_file_upload (image/audio/video)
requested_duration_sintegerClip length when there is no audio (basic mode, or reference mode without audio_clip_id); default 8
user_promptstringScene / motion description (required in basic mode)

create_minimax_h3_avatar_video Create a MiniMax H3 clip where your custom avatar speaks your text (5-14 s)

Avatar mode of minimax-h3: a custom avatar from list_avatars (its `models` must include 'minimax-h3'; sample actors are not accepted) says speech_text verbatim in its own voice, inside one of its scenes (scene_id, default the first; see list_avatars with avatar_id). No photo and no audio clip are sent: the avatar's training video teaches the model the face, voice and manner. user_prompt describes the scene and manner. 5-14 s: pass requested_duration_s or let the length follow the text (about 15 characters per second). Up to 3 extra references (reference_files local paths and/or reference_uploa…

ParameterTypeDescription
avatar_id *string
speech_text *stringWhat the avatar says, verbatim
aspect_ratiostringOutput shape; auto (default) = the native ratio nearest to the photo (16:9 without one). 4:5 is rendered as 3:4 and center-cropped (848x1060) — the ad format
namestring
reference_captionsarrayOne caption per reference, same order: reference_files first, then reference_upload_ids
reference_filesarrayLocal paths of up to 3 extra reference images/audio (no video)
reference_upload_idsarrayupload_ids of extra reference images/audio the user uploaded (no video)
requested_duration_sinteger
scene_idstring
user_promptstringScene and manner, e.g. 'Selfie video, shows the product to the camera'

preview_cloud_video_cost Price a cloud-model clip before creating it

Credits a create_cloud_video job would cost for the given model, duration and resolution, without creating anything. Same price on every duration: cost is per second of output, rounded up once per job.

ParameterTypeDescription
duration_s *integer
model *string
resolution *string

create_cloud_video Create a clip from a photo with a cloud model (Seedance, FLUX 3, H3 Max, HeyGen, Gemini Omni)

One photo becomes the first frame of a short clip; user_prompt says how the scene unfolds and what is said - every model writes and speaks its own soundtrack. Models and limits: seedance-2.5 (4-30 s; 480p/720p/1080p; aspect_ratio optional; 14.7/33/60.9 credits per second; 3-10 min), flux-3-video (5-20 s; 720p/1080p; aspect_ratio optional incl. 2:1; 15.8/26.9 per second; 2-5 min), flux-3-max (same as flux-3-video, several times faster, takes seed), minimax-h3-max (5-15 s; 480p/768p/1080p; no aspect_ratio - the clip keeps the photo's proportions; 4.7/7.5/14.9 per second; under a minute), heygen-…

ParameterTypeDescription
duration_s *integerClip length in whole seconds, inside the model's window
model *string
user_prompt *stringWhat happens in the clip: action, mood, camera, the words to be said
aspect_ratiostringauto (default) follows the photo; see the model list for what each accepts
image_pathstringLocal path of the photo (stdio only)
image_urlstringPublic URL of the photo, or the file_url from wait_for_upload / get_upload
namestring
resolutionstringDefault 720p (768p for minimax-h3-max and heygen-video)
seedintegerRepeat a previous result (seedance-2.5, flux-3-max, minimax-h3-max, heygen-video)

create_image Create an image (Nano Banana, Seedream, FLUX.3), optionally from your pictures

Generate or edit a picture from a prompt. Without source pictures the model draws from the prompt alone; with them it edits the first one or takes people, products and places from them (up to 8: image_urls, image_paths, and/or image_upload_ids from request_file_upload kind='image'). aspect_ratio: 9:16, 16:9, 4:5, 1:1, 3:4 or 4:3; leave it out to keep the shape of the first source picture. model: nano-banana (default, 10 credits), nano-banana-pro (39 credits; better with text in the picture, fine detail and several people), seedream-5-pro (13 credits; ByteDance Seedream 5.0 Pro, strong multi-re…

ParameterTypeDescription
prompt *stringWhat to draw, or how to change the source pictures
aspect_ratiostring
image_pathsarrayLocal paths of source pictures to upload (JPG/PNG/WebP)
image_upload_idsarrayupload_ids of pictures the user uploaded via request_file_upload (kind='image')
image_urlsarrayPublic https URLs of source pictures (an image_url from an earlier result works too)
modelstring

create_music Create a music track (5-180 s)

Generate a music track from a description of genre, mood, instruments and tempo, e.g. a bed for a video. Instrumental by default; set instrumental=false and describe the vocals or give the lyrics in the prompt for a song. Prompts that name an artist, an existing song or copyrighted lyrics are declined (status_failed='rejected_prompt'); the record then carries prompt_suggestion, a rewritten prompt that would pass - offer it to the user. Cost 1 credit per second (5 minimum), charged on create, refunded on failure. Returns the job id; wait_for_job(model='music') until done (about as long as the t…

ParameterTypeDescription
prompt *stringGenre, mood, instruments, tempo; no artist or song names
duration_sintegerTrack length in seconds (default 30)
instrumentalbooleanDefault true; false for a song with vocals

create_sound_effect Create a sound effect or ambience (0.5-30 s)

Generate a sound effect from a description of what makes the sound, where and how close: footsteps on gravel, a door, a whoosh for a transition, rain, a busy cafe. duration_s 0.5-30, or leave it out and the model picks a length that suits the sound. loop=true makes an ambience that repeats seamlessly under a long video. prompt_influence 0-1: higher follows the prompt more literally. Cost 1 credit per started 5 seconds, 2 at least, charged on create, refunded on failure. Returns the job id; wait_for_job(model='sound-effect') is usually done in a few seconds, the result has audio_url (MP3). If t…

ParameterTypeDescription
prompt *stringWhat makes the sound, where, how close
duration_snumberLength in seconds; omit to let the model pick
loopbooleanSeamless loop for ambience (default false)
prompt_influencenumber0-1, higher = more literal

get_job_status Get a job's status

Status of a video job, audio clip, image or music track: status, status_percentage, status_failed, credits_refunded. Terminal states: done; failed*, rejected_* and not_pass_moderation (audio) are failures. Prefer wait_for_job, which polls for you.

ParameterTypeDescription
id *string
model *string

get_job_result Get a finished job (video URL and details)

Full record of a job. For craftstory-2 the video is in `video`, for minimax-h3 and the cloud models in `video_url`, for audio clips in `file`, for images in `image_url` (PNG), for music and sound effects in `audio_url` (MP3); all are signed URLs valid for 7 days (call again for a fresh link). Also returns the parameters used and the credits charged.

ParameterTypeDescription
id *string
model *string

wait_for_job Wait for a job (bounded polling)

Polls a job's status every few seconds for up to timeout_s (default 45, max 55 - most MCP clients cut a tool call at 60 s) and returns as soon as it is terminal. If it returns state='running', call it again - craftstory-2 jobs take 8-15 minutes, minimax-h3 1-3 minutes, seedance-2.5 3-10 minutes, flux-3-video 2-5 minutes, the other cloud models under a minute, images 10-25 seconds, sound effects a few seconds, music about as long as the track, audio clips seconds. Reports progress notifications when the client supports them.

ParameterTypeDescription
id *string
model *string
timeout_sintegerHow long this call may wait (default 45, max 55)

request_file_upload Get a one-time link for the user to upload a photo, audio or video file

Use this when the user wants to use a file that is not reachable by URL: a photo, recording or video attached to the chat or on their phone or disk. kind: image (JPG/PNG/HEIC, 20 MB; use the file_url as image_url), audio (MP3/WAV/M4A/OGG/FLAC, 100 MB; pass upload_id as audio_upload_id to create_audio_clip or in reference_upload_ids), video (MP4/MOV/WebM/MKV, 100 MB; pass upload_id in reference_upload_ids of create_minimax_h3_video). Returns a one-time upload slot (valid 15 minutes). If the file is one you can read yourself (you can run shell commands and know its path), upload it yourself with…

ParameterTypeDescription
hintstringWhat the file is for, shown on the upload page, e.g. 'the jacket photo for the 10-second clip'
kindstringWhat the user will upload (default image)

get_upload Check an upload link (no waiting)

Status of a one-time upload link: pending, uploaded or expired. For images the file_url (valid about an hour) is what create_* tools take as image_url; audio and video uploads are referenced by upload_id (audio_upload_id, reference_upload_ids).

ParameterTypeDescription
upload_id *string

wait_for_upload Wait for the user's upload (bounded polling)

Polls an upload link for up to timeout_s (default 45, max 55) and returns as soon as the file is there or the link expired. If it returns pending, do not loop: tell the user you are waiting, and call get_upload once they confirm the upload.

ParameterTypeDescription
upload_id *string
timeout_sintegerHow long this call may wait (default 45, max 55)

upscale_video Upscale a finished video (new job)

Creates a NEW job with the upscaled result; the original stays. Cloud models (seedance-2.5, flux-3-*, minimax-h3-max, heygen-video, gemini-omni-flash): 2x from 480p / 720p / 768p, 1080p cannot be upscaled. craftstory-2: only 720p-tier sources, resolution 1080_1920 (from 720_1280), 1920_1080 (from 1280_720) or 1152_1440 (from 768_960). minimax-h3: always 2x, no resolution needed. Costs 0.2 credits per second. Poll the returned id with wait_for_job.

ParameterTypeDescription
id *string
model *string
resolutionstringcraftstory-2 only