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.
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"
}Changes
Changed in 5 of the 8 revisions of this API.91314
- ●
added the new
actionenum value to thetyperesponse property for the response status201response-property-enum-value-added
- ○
endpoint deprecated
endpoint-deprecated
- ○
added the optional property
actionto the response with the201statusresponse-optional-property-added
- ●
- ▲
added the new required request property
project_idnew-required-request-property
- ▲
added the new required request property
promptnew-required-request-property
- ▲
added the new required request property
typenew-required-request-property
- ▲
added the new required request property
workspace_idnew-required-request-property
- ○
added the new optional request property
modelnew-optional-request-property
- ○
added the new optional request property
paramsnew-optional-request-property
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
removed the required property
workflow_run_idfrom the response with the201statusresponse-required-property-removed
- ●
removed the request property
modelrequest-property-removed
- ●
removed the request property
paramsrequest-property-removed
- ●
removed the request property
project_idrequest-property-removed
- ●
removed the request property
promptrequest-property-removed
- ●
removed the request property
typerequest-property-removed
- ●
removed the request property
workspace_idrequest-property-removed
- ○
added the non-success response with the status
400response-non-success-status-added
- ○
added the non-success response with the status
401response-non-success-status-added
- ○
added the non-success response with the status
402response-non-success-status-added
- ○
added the non-success response with the status
403response-non-success-status-added
- ○
added the non-success response with the status
404response-non-success-status-added
- ○
added the non-success response with the status
409response-non-success-status-added
- ○
added the non-success response with the status
429response-non-success-status-added
- ○
added the non-success response with the status
500response-non-success-status-added
- ▲
- ▲
added the new required request property
project_idnew-required-request-property
- ▲
added the new required request property
promptnew-required-request-property
- ▲
added the new required request property
typenew-required-request-property
- ▲
added the new required request property
workspace_idnew-required-request-property
- ○
added the new optional request property
modelnew-optional-request-property
- ○
added the new optional request property
paramsnew-optional-request-property
- ▲
- ●
removed the request property
modelrequest-property-removed
- ●
removed the request property
paramsrequest-property-removed
- ●
removed the request property
project_idrequest-property-removed
- ●
removed the request property
promptrequest-property-removed
- ●
removed the request property
typerequest-property-removed
- ●
removed the request property
workspace_idrequest-property-removed
- ●