Skip to main content
Glama

Create a CraftStory 2.0 talking video (photo + audio)

create_craftstory2_video

Create a lip-synced talking-avatar video from a photo or custom avatar and ordered audio clips, returning a job ID to poll until the final video URL is ready.

Instructions

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. resolution is WIDTH_HEIGHT (480_832 / 720_1280 portrait, 832_480 / 1280_720 landscape); 1080p is available afterwards via upscale_video. Credits are charged on create (see preview_cost) and refunded if the job fails. Returns the job id and initial status; generation takes 8-15 minutes, so call wait_for_job(model='craftstory-2') repeatedly until it reports done, then get_job_result for the video URL.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoLabel, used as the download file name
faceswapNoIdentity pass on the result (default true; off for custom avatars)
gesturesNoHow much the avatar moves (default normal)
scene_idNoCustom avatar scene id (from list_avatars) used instead of a photo
avatar_idNoCustom avatar id (from list_avatars); its trained model drives identity
image_urlNoPublic URL of the photo (JPG/PNG)
image_pathNoAbsolute local path of the photo to upload (JPG/PNG/HEIC, <= 20 MB); ~/ is expanded
resolutionYes
user_promptNoOptional motion / scene hint
lipsync_modeNocraftstory (default) / sync_so (alternative engine) / empty (no lip-sync)
audio_clip_idsYesAudio clip ids (from create_audio_clip), played in order

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations exist, so the description carries the full burden, and it delivers: credits are charged on create (with a pointer to preview_cost), refunded on failure, the job returns an id and initial status, and generation takes 8-15 minutes requiring repeated polling. This is exactly the operational context an agent needs before committing.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single dense paragraph that is front-loaded with what the tool produces, then input formats, then cost and lifecycle. Every clause is substantive, though the run-on structure packs many distinct facts into one block rather than separating them.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 11-parameter async generation tool with no output schema and no annotations, the description covers the return values (job id + initial status), the async polling pattern, cost/refund behavior, and input alternatives. Nothing essential to correct invocation is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 91%, so the baseline is 3. The description adds useful semantics on top: resolution is WIDTH_HEIGHT with portrait vs landscape values, audio can be any length and plays in order, and the photo may come from image_url, image_path, or a scene_id custom avatar. The format hint for resolution goes beyond the bare enum.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Starts with a specific verb and resource ("Start a craftstory-2 generation") and immediately describes the input modes: a person's photo, a custom avatar scene via scene_id, speaking audio clips with lip-sync and gestures. The named model (craftstory-2) implicitly separates it from the sibling create_minimax_h3_video, so an agent can pick correctly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Describes the full invocation workflow: start the job, poll with wait_for_job(model='craftstory-2') until done, then get_job_result, and use upscale_video for 1080p afterwards. It does not give an explicit exclusion rule against create_minimax_h3_video, but the model naming and the described pipeline give clear context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.