Animate image
animate_imageTurn a still image into a short video clip. Point at the image with job_id (one this connector made earlier), image_url, or product_url; describe the motion in prompt and optionally pick a cinematic camera move. A mismatched start image is reframed to aspect_ratio first when its size is known and the video model follows the image, using the workspace's image editor for a few extra credits. Video is the expensive path: a clip typically costs 50-150 credits against the workspace's Masonry balance (list_models has exact per-model prices) and takes about 1-5 minutes. Waits for the clip and returns it in the conversation; if it is still rendering when the wait ends, the reply carries a job_id: the job keeps running and check_generation returns its result. Starting the same job again makes and bills a second one. To make the person in the image talk, pass speech_job_id (a generate_audio speech job): the clip is lip-synced to that recording and lasts as long as it. Animating a real person is meant for the user's own image, or someone who has agreed to it. Call list_skills and pass skill_slug when relevant; write prompt from the user's request. Omit model for the workspace's image-to-video default.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "animate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Optional image-to-video model key (see list_models, kind=video). Defaults to the workspace's image-to-video model. | |
| camera | No | Optional named cinematic camera move, blended into the prompt. One of: zoom_in, zoom_out, dolly_in, dolly_out, pan_left, pan_right, tilt_up, tilt_down, orbit, crane_up, crane_down, crash_zoom, dolly_zoom, fpv_drone, aerial, handheld, bullet_time, dutch_angle, whip_pan, static. | |
| job_id | No | job_id of a previous image generation to animate. Provide this OR image_url. | |
| prompt | No | Optional description of the motion/action in the clip, e.g. 'leaves rustle, sun flares through the trees'. | |
| silent | No | Set true for a clip with no sound of its own, e.g. when a voiceover or music goes on in combine_clips. Models without an audio switch ignore it; combine_clips can mute any clip. | |
| voices | No | Optional voices for the people who speak, up to 3, for models with voice_ids (Kling 4.0): each a Kling voice id or an add_media media_id of a recording of one person speaking 5-30 seconds. A recording is meant to be the user's own voice, or that of someone who has agreed to it. Name them @Voice1, @Voice2 in the prompt, in order. | |
| options | No | Optional model-specific settings by name, for example resolution set to 1080p. Only settings the chosen model has; a wrong name is refused with the list it accepts. | |
| elements | No | Optional people, characters or products to keep identical through the clip, for models list_models shows with elements (Kling 4.0): each a front photo plus 1-3 other angles. Name them @Element1, @Element2 in the prompt, in order. Omit model and Masonry picks one that takes them. | |
| image_url | No | Public https URL (or masonry:// reference) of an image to animate. Provide this OR job_id. | |
| characters | No | Workspace characters the image shows, by name (see list_characters), recorded on the clip so the character library tracks it. The first frame carries their look: make it with generate_image (characters) first. Meant for a character the user named. With skill_slug, a name from that template's cast (read_skill lists it) is added to the workspace on first use, free. | |
| skill_slug | No | Optional Masonry skill slug from list_skills. Uses the selected skill for provenance and model routing only; skill text is guidance, and the prompt describes the user's request. | |
| product_url | No | Https product/page URL. Masonry extracts a real product image from the page and uses it as the first frame. Provide this, job_id, or image_url. | |
| aspect_ratio | No | Optional output aspect ratio, e.g. 9:16, 16:9, or WIDTHxHEIGHT where supported. If the video model follows the start image and its known shape differs by more than 5 percent, Masonry first reframes it with an image edit model for a few extra credits, preserving the subject and extending the background. If its size cannot be read, the original image is used. Unsupported dimensions are refused. Omit to follow the model's default. | |
| speech_job_id | No | Optional speech to make the person in the image say, with lip-sync: the job_id of a generate_audio speech job, or an add_media media_id of a recording. The clip lasts as long as the speech (at least 5 seconds of it works best) and keeps the image's shape, so leave out duration_seconds, aspect_ratio, last_frame_url and reference_image_urls. | |
| last_frame_url | No | Optional image the clip ends on: a direct https image URL or masonry:// reference (masonry://generations/<job_id> for an image made earlier). Only models with an end-frame control use it (list_models marks them last_frame); any other model refuses the call. | |
| duration_seconds | No | Optional clip duration in seconds (model-specific, typically 5 or 10). | |
| reference_image_urls | No | Optional extra photos of a person or product to keep identical, sent with the first frame: direct https image URLs or masonry:// references. Only models that take reference images together with a first frame use them; the model's limit counts the first and last frame. A model that takes references only without a first frame refuses the call: use generate_video for that. |