Runs
Start a generation run
Starts a model generation run in a project canvas using a prompt, workspace, project, optional model, and optional model parameters. Mutating public API requests support an optional Idempotency-Key header for client retries; duplicate keys within two hours return idempotency_duplicate.
post/runs/generation
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"
}Response
Generation run started.
Example response
{
"run_id": "run_abc123",
"model": {
"model_id": "t2i-flux-2-pro"
},
"technique": {
"technique_id": "tech_abcd1234"
},
"action": {
"action_id": "split-text"
},
"project_id": "prj_abc123"
}