For the complete documentation index, see llms.txt. This page is also available as Markdown.

Generation and run tools

Reference for the FLORA MCP tools that start image, video, audio, text and 3D generations, quote their cost, and poll their runs.

These FLORA MCP tools start generations and read their results. flora_create_generations starts 1 to 20 runs in one call and lands each result on the project's canvas, and flora_list_generations polls them. Quote first with quote: true, show the user the cost in US dollars, and run only after they approve.

For a worked example, see Generate an image or video. For timeouts and failed runs, see FLORA MCP runs.

Polling rule. Save every run_id. Wait at least 15 seconds between polls, or 2 seconds per run for bigger batches (40 seconds for 20 runs). Then read every run_id in one flora_list_generations call (up to 20 per call). For example: flora_list_generations({"run_ids": ["run_a", "run_b"]}). For Technique runs, also pass "technique_id". Polling faster returns 429 or cooldown errors with retry_after_seconds.

Tool
What it does
Labels

Start 1 to 20 image, video, audio, text or 3D generations in one call, or price them first with quote: true.

writes, destructive, spends money, async

Read up to 20 runs by run_id in one call, or list generation history with cost and outputs.

read-only

Open an interactive 3D viewer for a 3D run, with GLB links and preview images.

read-only

flora_create_generations

Start 1 to 20 image, video, audio, text or 3D generations in one call, or price them first with quote: true.

Labels: writes · destructive · spends money · async

Shown in clients as: Create generations

Use when: The user wants new images, video, audio, text or 3D from a prompt, optionally with canvas nodes as image or 3D references.

Don't use when: You want to animate an image that's on the canvas: canvas references to a video model are rejected with input_validation_error (HTTP 400), so add a video node wired to it with flora_add_to_canvas and run it with flora_run_canvas_nodes. For a team's saved workflow, use flora_run_technique.

To animate a photo from a URL instead, pass it in params under the image field flora_list_models names for that model (image_url or image_urls).

Arguments

Argument
Type
Required
Notes

quote

boolean

no

Quote every request without reserving usage, creating canvas nodes, or starting generations. Requires generation_quote API support; unsupported deployments fail closed.

generations

array of object

yes

Independent generation requests. Use a one-item array for one generation. Each item accepts only the keys documented below — model-specific options go under params with names from flora_list_models; unknown top-level keys are rejected, not ignored. 1 to 20 items.

generations[].workspace_id

string

no

Workspace to bill (ws_…). Optional: resolved from project_id when omitted. Can't be empty.

generations[].project_id

string

yes

Project canvas to generate into (prj_…). Use project_id from flora_list_projects or flora_create_project. An API-issued canvas URL's /projects/<id> segment becomes prj_<id>.

generations[].type

string

yes

Output modality. One of image, video, audio, text, model3d.

generations[].prompt

string

yes

The generation prompt.

generations[].model

string

no

Model id from flora_list_models.

generations[].params

object

no

Model-specific parameters, with names from flora_list_models — the only place model options go. Do not pass them as top-level item keys.

generations[].reference_node_ids

array of string

no

Canvas node UUIDs or short ids (n7 from flora_get_canvas / flora_list_canvas_nodes (GET /projects/{projectId}/nodes) or a previous flora_create_generations response's node_id) whose image or model3d outputs feed this generation. Wires an edge from each source node to the new node and attaches their outputs as the model's media inputs — use this instead of pasting URLs into params when the source already lives on the canvas. Read the media field name (image_url, image_urls, or model_url) from flora_list_models. Works with image-to-image models (type=image) and model3d models that accept image or model3d inputs. A text-to-image id (t2i-*) with references is routed to the same model's image-to-image / images-to-image shape when one exists; the response reports the model actually used. Image models with no image-input shape are rejected with input_validation_error. Model3D models must accept image or model3d inputs; video, audio, and text reference inputs remain unsupported. To animate a canvas image, add a video node wired to it with flora_add_to_canvas and start it with flora_run_canvas_nodes using the short id from the created map. Up to 20 items. Each item: 1 to 128 characters.

generations[].add_to_canvas

boolean

no

Defaults to true: the generation gets a canvas node in project_id. Set false to keep it off the canvas; its node_id is then null, so it cannot be passed as reference_node_ids. Poll its run_id with flora_list_generations as usual.

Also takes the optional skill attribution arguments skill and skill_run_id. Pass them when the agent is following a skill.

Returns: {generations: [...]} in input order, each with index and ok. Successes carry run_id, canvas_url and node_id; failures carry error and status. With quote: true, each entry is a cost estimate with no run_id. Give users canvas_url; never build project URLs from IDs.

Cost: Spends money for each successful item. Call it first with quote: true to price the exact requests without reserving money or starting anything, show the user the total in US dollars, and send the same request without quote after they approve. Never retry a whole batch after a partial failure: successful items already spent money, and a timeout may still have started a run.

Example prompt: "Make two 16:9 images of a red sneaker on wet asphalt in my Spring campaign project. Quote me first."

Example call:

Full description from the server

flora_list_generations

Read up to 20 runs by run_id in one call, or list generation history with cost and outputs.

Labels: read-only

Shown in clients as: List generations

Use when: You're polling runs you started (with flora_create_generations, flora_run_canvas_nodes, flora_run_technique, flora_train_lora or an action), or the user asks what was generated before.

Don't use when: You'd poll runs one at a time or faster than the polling rule allows: read every ID of a batch in one call and wait at least 15 seconds between polls. Pass only run_… IDs, never node IDs, asset IDs or quote entries.

Arguments

Argument
Type
Required
Notes

run_ids

array of string

no

Runs to read, at most 20; each is the run_… id returned as run_id by flora_create_generations or flora_run_technique (never a canvas node id, asset id or generation history entry). Omit this and the run_id/runIds aliases to list history instead. Pass technique_id alongside for technique runs. 1 to 20 items.

run_id

string

no

Alias for reading one run: the same as run_ids with a single entry. If several of run_ids/run_id/runIds are given, their ids are combined. Can't be empty.

runIds

array of string

no

camelCase alias for run_ids; accepted for hosts that emit camelCase keys. If several of run_ids/run_id/runIds are given, their ids are combined. 1 to 20 items.

technique_id

string

no

Technique the runs belong to (tech_…); required for flora_run_technique runs, and applied to every id in the call.

workspace_id

string

no

Filter by workspace (ws_…).

project_id

string

no

Filter by project (prj_…). Use project_id from flora_list_projects or flora_create_project. An API-issued canvas URL's /projects/<id> segment becomes prj_<id>.

status

string

no

Filter by run status. One of pending, running, completed, failed.

include_inputs

boolean

no

History listing only: include each generation's submitted inputs block — the prompt it executed (plus raw_prompt when preprocessing rewrote it), wired canvas input elements, and reference asset ids. Off by default; the block can be large.

limit

number

no

Max items to return (default 20).

cursor

string

no

Pagination cursor from a previous call's meta.next_cursor.

Also takes the optional skill attribution arguments skill and skill_run_id. Pass them when the agent is following a skill.

Returns: With run_ids: {runs}, one entry per ID with its status, cost and outputs, or an error entry (ok: false, error, status) for an ID it couldn't read. Without run_ids: a history page under generations, newest first, with cost and outputs, and meta.next_cursor.

Cost: Free. Polling too fast returns 429 entries or a cooldown error with retry_after_seconds.

Example prompt: "Check on the four images you just started."

Example call:

Full description from the server

flora_view_model3d

Open an interactive 3D viewer for a 3D run, with GLB links and preview images.

Labels: read-only

Shown in clients as: View 3D model

Use when: A 3D generation finished and the user wants to inspect it, or you need its asset_id to chain it into another step.

Don't use when: You want to judge how the model looks from the user's viewer: you can only evaluate the provider preview images this returns. Never paste GLB bytes into a reply.

Arguments

Argument
Type
Required
Notes

run_id

string

yes

Run to inspect (run_…). Can't be empty.

technique_id

string

no

Technique owning the run (tech_…); required for technique runs.

Returns: The run's asset_id, GLB links, and up to three provider preview images when available. No previews means the visual quality is unknown. Pending runs can be refreshed.

Cost: Free. This tool doesn't spend money.

Usually comes after: flora_list_generations

Usually comes before: flora_create_generations

Example prompt: "Show me the 3D model from that run."

Example call:

Full description from the server

Last updated

Was this helpful?