Turn a product photo into video
Ask your agent to animate a product photo with FLORA MCP, from a public image URL or from an image already on a FLORA canvas.
Give your agent a product photo and a motion brief, and FLORA MCP returns a short video clip on your canvas. Use this recipe when the video starts from an existing image; to make a video from text alone, use Generate an image or video.
Works in: Claude · Claude Code · ChatGPT · Codex · Cursor
You need: a connected client and about $0.71 per 5-second clip (Kling 3.0 Pro at 1080p)
Use when: you have a photo (a URL, an uploaded file, or an image node on a canvas) and want it to move.
Don't use when: you want a still image (use generate), or your team has a saved motion Technique (use run a Technique).
Which Kling: when you say "Kling", this recipe uses Kling 3.0 Pro (i2v-kling-v3-pro). Other Kling versions and their IDs are in Model names to IDs.
Ask your agent
Use FLORA to turn this product photo into a 5-second video: slow push-in, soft morning light, steam rising from the mug. Use Kling 3.0 Pro and put it in my "Mug launch" project. Show me the cost first and wait for my OK. Photo: [paste the image URL or attach the photo]
What the agent does
There are two paths. Pick by where the photo lives.
A public HTTPS URL, a file shared in the chat, or an uploaded asset's url
flora_create_generations
An image node already on a FLORA canvas
flora_add_to_canvas, then flora_run_canvas_nodes
Before either path: find the workspace and project
flora_list_workspaces. If it returnscurrent_workspace_id, use that workspace. If several come back and none is current, the agent names them and asks which one to bill.flora_list_projectswith thatworkspace_id(andqueryto match a name such as "Mug launch"), orflora_create_projectto make one:Either way the agent now has the
project_id(for exampleprj_abc) that both paths need. For path 2, the project is the one whose canvas holds the image.
Path 1: a photo URL
flora_list_modelswith the video model'smodel_id, to read its image field. Image-to-video models name it inparams: most take one image asimage_url; a few take several asimage_urls. Use exactly the name it reports.For Kling 3.0 Pro the response lists
image_url,duration("3"to"15", default"5") andresolution("1080p"or"4k").flora_create_generationswithquote: trueto price it, then again withoutquoteonce you approve. The photo URL goes inparams:The quote (the same call with
"quote": trueat the top level) starts nothing and returns one entry per item, without arun_id:estimated_costis in US dollars for these exactparams; the agent shows it to you and waits.assumptionslists anything the estimate had to assume. Quotes expire after 5 minutes (expires_at), so after a long pause the agent quotes again. The quote is an estimate, not a price lock. Withoutquote, the same call returns arun_id,node_id,canvas_url,project_id,poll_url, acharged_costestimate in US dollars andestimated_seconds(for Kling 3.0 Pro image-to-video, about 255, a little over 4 minutes). Useestimated_secondsto decide when to make the first poll.Any public
https://URL that serves the image file directly works here; generations have no FLORA host allowlist (unlike Technique inputs). FLORA hands the URL to the model provider, which downloads it, so a host that blocks outside requests (login walls, hotlink protection, 401/403/404) makes the run fail. For those, or for a photo on your computer, upload it first with Upload your own images, video and files and use the asset'surl(onmedia.flora.ai, which always works).flora_list_generations, following the polling rule, with therun_idfrom the create response:The finished clip is in
outputs[].url, and a video node appears on the canvas.
Path 2: an image on the canvas
flora_get_canvasto find the image node's short ID (for examplen7).Price it.
flora_run_canvas_nodesstarts billing immediately and has no quote step. The agent quotes the same model withflora_create_generationsandquote: true, putting the image's output URL fromflora_get_canvasinimage_url, or readsestimated_cost_usdfor default settings fromflora_list_models. Then it waits for your OK.flora_add_to_canvasto add a video node wired to the image. Therefis your own handle for this call;connectdraws the edge that feeds the image into the video model. Don't put the image URL inparams; the edge supplies it.The response's
createdmap gives the new node's real IDs:Adding the node does not run it.
flora_run_canvas_nodeswith the short ID fromcreated(never yourref):Each entry in
runshasstatus: "started"and arun_id, orstatus: "skipped"and areasonsuch asno_model_configured. Skipped nodes are not charged.flora_list_generations, following the polling rule, with therun_idfrom therunsentry:
To animate several canvas images, add one video node per image in a single flora_add_to_canvas call, then run all their short IDs in one flora_run_canvas_nodes call (up to 50).
How long it takes
Video takes minutes, not seconds. Most video models take 2 to 5 minutes, and the slowest take up to about 26 minutes. Read estimated_seconds in flora_list_models for the model you picked: Kling 3.0 Pro estimates about 4 minutes for image-to-video. While a clip renders, poll every 30 to 60 seconds; faster polling doesn't make it finish sooner.
Check it worked
The run reaches
status: "completed"with anoutputs[].urlof typevideoUrl.On the canvas, the video node sits next to the source image (path 2 also shows the edge between them).
If it fails
input_validation_error from flora_create_generations
reference_node_ids was passed with a video model
Use path 1 (URL in image_url) or path 2 (video node plus flora_run_canvas_nodes).
skipped with node_not_found
A ref was passed to flora_run_canvas_nodes
Pass the short ID or node_id from the created map.
Only the first of several photos was used
The model takes one image (image_url); FLORA folds an image_urls list down to its first entry
Pass one photo, or use a model whose flora_list_models entry lists image_urls.
Error fetching the image URL
The host blocks outside requests, or the URL is a web page
Upload the file with flora_create_asset and use the returned url.
Polls return 429 or retry_after_seconds
Polling too often
Wait the stated time; video needs no more than one poll every 30 to 60 seconds.
Shapes for every argument are in the tools reference: flora_add_to_canvas, flora_run_canvas_nodes and flora_create_generations.
Last updated
Was this helpful?