Run a canvas action
POST
/projects/{projectId}/actions/{nodeId}/run
import { FloraClient } from '@flora-ai/flora';
const client = new FloraClient({ apiKey: process.env['FLORA_API_KEY'] });
const action = await client.projects.actions.run({ projectId: '<projectId>', nodeId: '<nodeId>',});console.log(action);curl -X POST 'https://app.flora.ai/api/v1/projects/<projectId>/actions/<nodeId>/run' \ -H 'Authorization: Bearer $FLORA_API_KEY'Runs an existing canvas action node through the action execution workflow.
Error responses use the standard error body.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” projectId
required
Project identifier
string
Project identifier
nodeId
required
Canvas action node identifier
string
Canvas action node identifier
Responses
Section titled “ Responses ”Canvas action run started.
Media type application/json
object
run_id
required
Run identifier
string
type
required
Run type
string
technique
charged_cost
required
Cost charged in USD
number
warnings
Warnings for accepted input (unknown parameters and applied preprocessing changes)
Array<object>
object
code
required
Stable warning code
string
message
required
Human-readable warning message
string
field
Feature or parameter the warning relates to
string
Example
{ "run_id": "run_abc123", "type": "generation", "model": { "model_id": "t2i-flux-2-pro" }, "technique": { "technique_id": "tech_abcd1234" }, "action": { "action_id": "color-grade-image-browser" }, "project_id": "prj_abc123"}