Start a generation
Changed onWith quote=true, returns an estimate for the prepared request without reserving credits, creating a node, or starting a generation. Quotes expire after five minutes and do not lock pricing or guarantee admission. Otherwise starts a model generation using type, prompt, workspace_id, project_id, optional model endpoint ID, optional model parameters, and optional reference_node_ids (canvas node UUIDs used as image or model3d inputs; the new node is wired to them with edges). Use type=image|video|audio|text|model3d and model IDs returned by GET /models or list_models. The response includes node_id for the created canvas node, or null when add_to_canvas is false. Poll the returned run_id via GET /runs/{runId} for progress and outputs. Mutating public API requests support an optional Idempotency-Key header for client retries; duplicate keys within two hours return idempotency_duplicate.
Request
- Base URLhttps://app.flora.ai/api/v1
- URLhttps://app.flora.ai/api/v1/generate
- AuthHTTP bearer
Request body
Example request
{
"prompt": "A cinematic product photo of a ceramic mug on a sunlit table",
"model": "t2i-flux-2-pro",
"workspace_id": "ws_abc123",
"project_id": "prj_abc123",
"reference_node_ids": [
"7f6ae6da-4a0e-4a2f-9c6a-2c1c6b8d1f21"
]
}Response
Generation started, or a read-only quote returned.
Example response
{
"run_id": "run_abc123",
"model": {
"model_id": "t2i-flux-2-pro"
},
"technique": {
"technique_id": "tech_abcd1234"
},
"action": {
"action_id": "color-grade-image-browser"
},
"project_id": "prj_abc123",
"node_id": "7f6ae6da-4a0e-4a2f-9c6a-2c1c6b8d1f21"
}Changes
- warning
added the new
not_configuredenum value to the/response property for the response status - warning
added the new
not_configuredenum value to the/response property for the response status - warning
added the new
not_configuredenum value to the/response property for the response status - warning
added the new
not_configuredenum value to the/response property for the response status - warning
added the new
not_configuredenum value to the/response property for the response status - warning
added the new
not_configuredenum value to the/response property for the response status - warning
added the new
not_configuredenum value to the/response property for the response status - warning
added the new
not_configuredenum value to the/response property for the response status - warning
added the new
not_configuredenum value to the/response property for the response status
- warning
- breaking
response property
anyOf[subschema #1]/node_idlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
response property
anyOf[subschema #1]/node_idlist-of-types was widened by adding typesnullto media typeapplication/jsonof response201 - breaking
the
/response property's minLength was decreased from1to0for the response status - breaking
the
/response property's minLength was decreased from1to0for the response status - info
added the new optional request property
- breaking