⚡ NEW: Flux Klein 9B — Faster inference, stunning quality · Try Now
curl --request GET \
--url https://modelslab.com/api/v1/workflows/{workflow_id}/runs/{execution_id}Returns the status and results of a workflow execution.
curl --request GET \
--url https://modelslab.com/api/v1/workflows/{workflow_id}/runs/{execution_id}Documentation Index
Fetch the complete documentation index at: https://docs.modelslab.com/llms.txt
Use this file to discover all available pages before exploring further.
{
"status": "success",
"execution": {
"id": 12345,
"workflow_id": "uuid-string",
"status": "running",
"started_at": "2024-01-15T10:30:00Z",
"completed_at": null,
"execution_time": null
},
"steps": [
{
"name": "Text to Image",
"status": "completed",
"started_at": "2024-01-15T10:30:00Z",
"completed_at": "2024-01-15T10:30:05Z"
},
{
"name": "Image Upscaler",
"status": "running",
"started_at": "2024-01-15T10:30:05Z",
"completed_at": null
}
]
}
{
"status": "success",
"execution": {
"id": 12345,
"workflow_id": "uuid-string",
"status": "completed",
"started_at": "2024-01-15T10:30:00Z",
"completed_at": "2024-01-15T10:30:15Z",
"execution_time": 15.234
},
"output": {
"output": ["https://cdn.modelslab.com/generated/image1.png"],
"proxy_links": ["https://cdn.modelslab.com/proxy/image1.png"],
"status": "success"
},
"steps": [
{
"name": "Text to Image",
"status": "completed",
"started_at": "2024-01-15T10:30:00Z",
"completed_at": "2024-01-15T10:30:05Z"
},
{
"name": "Image Upscaler",
"status": "completed",
"started_at": "2024-01-15T10:30:05Z",
"completed_at": "2024-01-15T10:30:15Z"
}
]
}
{
"status": "success",
"execution": {
"id": 12345,
"workflow_id": "uuid-string",
"status": "failed",
"started_at": "2024-01-15T10:30:00Z",
"completed_at": "2024-01-15T10:30:05Z",
"execution_time": 5.123
},
"error": "Image generation failed: Invalid prompt",
"steps": [
{
"name": "Text to Image",
"status": "failed",
"started_at": "2024-01-15T10:30:00Z",
"completed_at": "2024-01-15T10:30:05Z"
}
]
}
| Status | Description |
|---|---|
| pending | Execution is queued |
| running | Execution is in progress |
| completed | Execution finished successfully |
| failed | Execution encountered an error |
| cancelled | Execution was cancelled by the user |
Was this page helpful?