Skip to content

Tasks Endpoints

Generation and processing task management.


Overview

Method Endpoint Description
POST /tasks/ Create task
GET /tasks/{task_id} Get task status
POST /tasks/{task_id}/cancel Cancel task
POST /tasks/{task_id}/cleanup Cleanup task resources
POST /tasks/generation Create generation task
GET /tasks/generation/{task_id} Get generation task
POST /tasks/generation/{task_id}/cancel Cancel generation

Task Lifecycle

stateDiagram-v2
    [*] --> Pending: Create
    Pending --> Running: Worker picks up
    Running --> Completed: Success
    Running --> Failed: Error
    Running --> Cancelled: User cancels
    Completed --> [*]
    Failed --> [*]
    Cancelled --> [*]

API Reference

Custom API - Tasks 1.0.0

This is a very custom OpenAPI schema


Tasks


POST /api/v1/tasks/

Create Task

Description

Create and start a new task.

Input parameters

Parameter In Type Default Nullable Description
HTTPBearer header string N/A No JWT Bearer token

Request body

Schema of the request body
{
    "anyOf": [
        {
            "$ref": "#/components/schemas/CreateGenerationTask"
        },
        {
            "$ref": "#/components/schemas/CreateEditingTask"
        },
        {
            "$ref": "#/components/schemas/CreateRefineTask"
        },
        {
            "$ref": "#/components/schemas/CreateExperimentalFalTask"
        },
        {
            "$ref": "#/components/schemas/CreateVideoGenerationTask"
        },
        {
            "$ref": "#/components/schemas/CreateLLMInteractionTask"
        },
        {
            "$ref": "#/components/schemas/CreateBackgroundRemovalTask"
        },
        {
            "$ref": "#/components/schemas/CreateDetailEnhancerTask"
        },
        {
            "$ref": "#/components/schemas/CreateBackgroundFixTask"
        },
        {
            "$ref": "#/components/schemas/CreateImageAdjusterTask"
        },
        {
            "$ref": "#/components/schemas/CreateFaceEnhancerTask"
        }
    ],
    "title": "Task Data"
}

Responses

Schema of the response body
{
    "anyOf": [
        {
            "$ref": "#/components/schemas/GenerationTaskPublic"
        },
        {
            "$ref": "#/components/schemas/EditingTaskPublic"
        },
        {
            "$ref": "#/components/schemas/RefineTaskPublic"
        },
        {
            "$ref": "#/components/schemas/ExperimentalFalTaskPublic"
        },
        {
            "$ref": "#/components/schemas/VideoGenerationTaskPublic"
        },
        {
            "$ref": "#/components/schemas/LLMInteractionTaskPublic"
        },
        {
            "$ref": "#/components/schemas/BackgroundRemovalTaskPublic"
        },
        {
            "$ref": "#/components/schemas/DetailEnhancerTaskPublic"
        },
        {
            "$ref": "#/components/schemas/BackgroundFixTaskPublic"
        },
        {
            "$ref": "#/components/schemas/ImageAdjusterTaskPublic"
        },
        {
            "$ref": "#/components/schemas/FaceEnhancerTaskPublic"
        }
    ],
    "title": "Response Create Task"
}

{
    "detail": [
        {
            "loc": [
                null
            ],
            "msg": "string",
            "type": "string"
        }
    ]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "properties": {
        "detail": {
            "items": {
                "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
        }
    },
    "type": "object",
    "title": "HTTPValidationError"
}

GET /api/v1/tasks/

List Tasks

Description

List tasks with optional filtering and pagination.

Input parameters

Parameter In Type Default Nullable Description
HTTPBearer header string N/A No JWT Bearer token
limit query integer 100 No Maximum number of tasks to return
origin_instance query No Filter by origin instance
origin_tenant_id query No Filter by origin tenant ID
origin_zone query No Filter by origin zone
skip query integer 0 No Number of tasks to skip
status query No Filter by task status
task_type query No Filter by task type

Responses

[
    null
]
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "type": "array",
    "items": {
        "anyOf": [
            {
                "$ref": "#/components/schemas/GenerationTaskPublic"
            },
            {
                "$ref": "#/components/schemas/EditingTaskPublic"
            },
            {
                "$ref": "#/components/schemas/RefineTaskPublic"
            },
            {
                "$ref": "#/components/schemas/ExperimentalFalTaskPublic"
            },
            {
                "$ref": "#/components/schemas/VideoGenerationTaskPublic"
            },
            {
                "$ref": "#/components/schemas/LLMInteractionTaskPublic"
            },
            {
                "$ref": "#/components/schemas/BackgroundRemovalTaskPublic"
            },
            {
                "$ref": "#/components/schemas/DetailEnhancerTaskPublic"
            },
            {
                "$ref": "#/components/schemas/BackgroundFixTaskPublic"
            },
            {
                "$ref": "#/components/schemas/ImageAdjusterTaskPublic"
            },
            {
                "$ref": "#/components/schemas/FaceEnhancerTaskPublic"
            }
        ]
    },
    "title": "Response List Tasks"
}

{
    "detail": [
        {
            "loc": [
                null
            ],
            "msg": "string",
            "type": "string"
        }
    ]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "properties": {
        "detail": {
            "items": {
                "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
        }
    },
    "type": "object",
    "title": "HTTPValidationError"
}

GET /api/v1/tasks/{task_id}

Get Task

Description

Get a specific task by ID.

Input parameters

Parameter In Type Default Nullable Description
HTTPBearer header string N/A No JWT Bearer token
task_id path string No

Responses

Schema of the response body
{
    "anyOf": [
        {
            "$ref": "#/components/schemas/GenerationTaskPublic"
        },
        {
            "$ref": "#/components/schemas/EditingTaskPublic"
        },
        {
            "$ref": "#/components/schemas/RefineTaskPublic"
        },
        {
            "$ref": "#/components/schemas/ExperimentalFalTaskPublic"
        },
        {
            "$ref": "#/components/schemas/VideoGenerationTaskPublic"
        },
        {
            "$ref": "#/components/schemas/LLMInteractionTaskPublic"
        },
        {
            "$ref": "#/components/schemas/BackgroundRemovalTaskPublic"
        },
        {
            "$ref": "#/components/schemas/DetailEnhancerTaskPublic"
        },
        {
            "$ref": "#/components/schemas/BackgroundFixTaskPublic"
        },
        {
            "$ref": "#/components/schemas/ImageAdjusterTaskPublic"
        },
        {
            "$ref": "#/components/schemas/FaceEnhancerTaskPublic"
        }
    ],
    "title": "Response Get Task"
}

{
    "detail": [
        {
            "loc": [
                null
            ],
            "msg": "string",
            "type": "string"
        }
    ]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "properties": {
        "detail": {
            "items": {
                "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
        }
    },
    "type": "object",
    "title": "HTTPValidationError"
}

PUT /api/v1/tasks/{task_id}

Update Task

Description

Update a specific task.

Input parameters

Parameter In Type Default Nullable Description
HTTPBearer header string N/A No JWT Bearer token
task_id path string No

Request body

Schema of the request body
{
    "anyOf": [
        {
            "$ref": "#/components/schemas/GenerationTaskPublicUpdate"
        },
        {
            "$ref": "#/components/schemas/EditingTaskPublicUpdate"
        },
        {
            "$ref": "#/components/schemas/RefineTaskPublicUpdate"
        },
        {
            "$ref": "#/components/schemas/ExperimentalFalTaskPublicUpdate"
        },
        {
            "$ref": "#/components/schemas/VideoGenerationTaskPublicUpdate"
        },
        {
            "$ref": "#/components/schemas/LLMInteractionTaskPublicUpdate"
        },
        {
            "$ref": "#/components/schemas/BackgroundRemovalTaskPublicUpdate"
        },
        {
            "$ref": "#/components/schemas/DetailEnhancerTaskPublicUpdate"
        },
        {
            "$ref": "#/components/schemas/BackgroundFixTaskPublicUpdate"
        },
        {
            "$ref": "#/components/schemas/ImageAdjusterTaskPublicUpdate"
        },
        {
            "$ref": "#/components/schemas/FaceEnhancerTaskPublicUpdate"
        }
    ],
    "title": "Update Data"
}

Responses

Schema of the response body
{
    "anyOf": [
        {
            "$ref": "#/components/schemas/GenerationTaskPublic"
        },
        {
            "$ref": "#/components/schemas/EditingTaskPublic"
        },
        {
            "$ref": "#/components/schemas/RefineTaskPublic"
        },
        {
            "$ref": "#/components/schemas/ExperimentalFalTaskPublic"
        },
        {
            "$ref": "#/components/schemas/VideoGenerationTaskPublic"
        },
        {
            "$ref": "#/components/schemas/LLMInteractionTaskPublic"
        },
        {
            "$ref": "#/components/schemas/BackgroundRemovalTaskPublic"
        },
        {
            "$ref": "#/components/schemas/DetailEnhancerTaskPublic"
        },
        {
            "$ref": "#/components/schemas/BackgroundFixTaskPublic"
        },
        {
            "$ref": "#/components/schemas/ImageAdjusterTaskPublic"
        },
        {
            "$ref": "#/components/schemas/FaceEnhancerTaskPublic"
        }
    ],
    "title": "Response Update Task"
}

{
    "detail": [
        {
            "loc": [
                null
            ],
            "msg": "string",
            "type": "string"
        }
    ]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "properties": {
        "detail": {
            "items": {
                "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
        }
    },
    "type": "object",
    "title": "HTTPValidationError"
}

DELETE /api/v1/tasks/{task_id}

Delete Task

Description

Delete a task and permanently remove its associated files.

This endpoint: 1. Permanently deletes all associated image files 2. Removes the task record from the database

For image-based tasks (EDITING, GENERATION, REFINE), this will permanently delete all files in: - editings/{task_id}/ for EDITING tasks - generations/{task_id}/ for GENERATION tasks - refines/{task_id}/ for REFINE tasks

Unlike /cleanup, this endpoint completely removes the task from the database (no audit trail).

Input parameters

Parameter In Type Default Nullable Description
HTTPBearer header string N/A No JWT Bearer token
task_id path string No

Responses

Schema of the response body
{
    "anyOf": [
        {
            "$ref": "#/components/schemas/GenerationTaskPublic"
        },
        {
            "$ref": "#/components/schemas/EditingTaskPublic"
        },
        {
            "$ref": "#/components/schemas/RefineTaskPublic"
        },
        {
            "$ref": "#/components/schemas/ExperimentalFalTaskPublic"
        },
        {
            "$ref": "#/components/schemas/VideoGenerationTaskPublic"
        },
        {
            "$ref": "#/components/schemas/LLMInteractionTaskPublic"
        },
        {
            "$ref": "#/components/schemas/BackgroundRemovalTaskPublic"
        },
        {
            "$ref": "#/components/schemas/DetailEnhancerTaskPublic"
        },
        {
            "$ref": "#/components/schemas/BackgroundFixTaskPublic"
        },
        {
            "$ref": "#/components/schemas/ImageAdjusterTaskPublic"
        },
        {
            "$ref": "#/components/schemas/FaceEnhancerTaskPublic"
        }
    ],
    "title": "Response Delete Task"
}

{
    "detail": [
        {
            "loc": [
                null
            ],
            "msg": "string",
            "type": "string"
        }
    ]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "properties": {
        "detail": {
            "items": {
                "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
        }
    },
    "type": "object",
    "title": "HTTPValidationError"
}

POST /api/v1/tasks/{task_id}/cleanup

Cleanup Task

Description

Clean up a task by marking it as deleted and permanently removing its files.

This endpoint: 1. Marks the task as deleted (is_deleted=True, deleted_at=now) 2. Permanently deletes all associated image files

For image-based tasks (EDITING, GENERATION, REFINE), this will permanently delete all files in: - editings/{task_id}/ for EDITING tasks - generations/{task_id}/ for GENERATION tasks - refines/{task_id}/ for REFINE tasks

The task record remains in the database for tracking and audit purposes.

Input parameters

Parameter In Type Default Nullable Description
HTTPBearer header string N/A No JWT Bearer token
task_id path string No

Responses

Schema of the response body

{
    "detail": [
        {
            "loc": [
                null
            ],
            "msg": "string",
            "type": "string"
        }
    ]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "properties": {
        "detail": {
            "items": {
                "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
        }
    },
    "type": "object",
    "title": "HTTPValidationError"
}

POST /api/v1/tasks/{task_id}/cancel

Cancel Task

Description

Cancel a specific task.

Input parameters

Parameter In Type Default Nullable Description
HTTPBearer header string N/A No JWT Bearer token
task_id path string No

Responses

Schema of the response body
{
    "anyOf": [
        {
            "$ref": "#/components/schemas/GenerationTaskPublic"
        },
        {
            "$ref": "#/components/schemas/EditingTaskPublic"
        },
        {
            "$ref": "#/components/schemas/RefineTaskPublic"
        },
        {
            "$ref": "#/components/schemas/ExperimentalFalTaskPublic"
        },
        {
            "$ref": "#/components/schemas/VideoGenerationTaskPublic"
        },
        {
            "$ref": "#/components/schemas/LLMInteractionTaskPublic"
        },
        {
            "$ref": "#/components/schemas/BackgroundRemovalTaskPublic"
        },
        {
            "$ref": "#/components/schemas/DetailEnhancerTaskPublic"
        },
        {
            "$ref": "#/components/schemas/BackgroundFixTaskPublic"
        },
        {
            "$ref": "#/components/schemas/ImageAdjusterTaskPublic"
        },
        {
            "$ref": "#/components/schemas/FaceEnhancerTaskPublic"
        }
    ],
    "title": "Response Cancel Task"
}

{
    "detail": [
        {
            "loc": [
                null
            ],
            "msg": "string",
            "type": "string"
        }
    ]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "properties": {
        "detail": {
            "items": {
                "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
        }
    },
    "type": "object",
    "title": "HTTPValidationError"
}

PUT /api/v1/tasks/generation/{task_id}

Update Generation Task

Description

Update a generation task with generation-specific fields.

Input parameters

Parameter In Type Default Nullable Description
HTTPBearer header string N/A No JWT Bearer token
task_id path string No

Request body

{
    "status": null,
    "priority": null,
    "executor_type": null,
    "executor_instance": null,
    "errors": null,
    "config": null,
    "created_at": null,
    "updated_at": null,
    "task_type": null,
    "origin_instance": null,
    "origin_zone": null,
    "origin_tenant_id": null,
    "origin_reference": null,
    "started_at": null,
    "completed_at": null,
    "celery_task_id": null,
    "service_task_id": null,
    "retry_count": null,
    "progress": null,
    "is_resumed": null,
    "provider_type": null,
    "active_provider_capabilities": null,
    "queue_name": null,
    "fallback_provider_type": null,
    "fallback_provider_config": null,
    "fallback_provider_capabilities": null,
    "resume_attempt_count": null,
    "last_resume_attempt": null,
    "error_category": null,
    "service_requests": null,
    "fal_app_id": null,
    "fal_request_id": null,
    "subject_model_path": null,
    "product_model_path": null,
    "style_model_path": null,
    "product2_model_path": null,
    "subject_lora_weight": null,
    "product_lora_weight": null,
    "style_lora_weight": null,
    "product2_lora_weight": null,
    "reference_image_path": null,
    "reference_image_strength": null,
    "result_image_path": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "properties": {
        "status": {
            "anyOf": [
                {
                    "$ref": "#/components/schemas/TaskStatus"
                },
                {
                    "type": "null"
                }
            ]
        },
        "priority": {
            "anyOf": [
                {
                    "type": "integer"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Priority"
        },
        "executor_type": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Executor Type"
        },
        "executor_instance": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Executor Instance"
        },
        "errors": {
            "anyOf": [
                {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Errors"
        },
        "config": {
            "anyOf": [
                {
                    "additionalProperties": true,
                    "type": "object"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Config",
            "description": "Flexible configuration storage"
        },
        "created_at": {
            "anyOf": [
                {
                    "type": "string",
                    "format": "date-time"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Created At",
            "description": "Task creation timestamp"
        },
        "updated_at": {
            "anyOf": [
                {
                    "type": "string",
                    "format": "date-time"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Updated At",
            "description": "Task last update timestamp"
        },
        "task_type": {
            "anyOf": [
                {
                    "$ref": "#/components/schemas/TaskType"
                },
                {
                    "type": "null"
                }
            ],
            "description": "Task type"
        },
        "origin_instance": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Origin Instance",
            "description": "Task origin instance"
        },
        "origin_zone": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Origin Zone",
            "description": "Task origin zone"
        },
        "origin_tenant_id": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Origin Tenant Id",
            "description": "Task origin tenant ID"
        },
        "origin_reference": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Origin Reference",
            "description": "Optional reference ID or string from the origin system"
        },
        "started_at": {
            "anyOf": [
                {
                    "type": "string",
                    "format": "date-time"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Started At",
            "description": "Task start timestamp"
        },
        "completed_at": {
            "anyOf": [
                {
                    "type": "string",
                    "format": "date-time"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Completed At",
            "description": "Task completion timestamp"
        },
        "celery_task_id": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Celery Task Id",
            "description": "Task Celery task ID"
        },
        "service_task_id": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Service Task Id",
            "description": "Task service task ID"
        },
        "retry_count": {
            "anyOf": [
                {
                    "type": "integer"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Retry Count",
            "description": "Task retry count"
        },
        "progress": {
            "anyOf": [
                {
                    "type": "number"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Progress",
            "description": "Task progress (0.0 to 100.0)"
        },
        "is_resumed": {
            "anyOf": [
                {
                    "type": "boolean"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Is Resumed",
            "description": "Whether task is being resumed"
        },
        "provider_type": {
            "anyOf": [
                {
                    "$ref": "#/components/schemas/ProviderType"
                },
                {
                    "type": "null"
                }
            ],
            "description": "Provider type for task execution"
        },
        "active_provider_capabilities": {
            "anyOf": [
                {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Active Provider Capabilities",
            "description": "List of active capabilities for this task"
        },
        "queue_name": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Queue Name",
            "description": "Task queue name"
        },
        "fallback_provider_type": {
            "anyOf": [
                {
                    "$ref": "#/components/schemas/ProviderType"
                },
                {
                    "type": "null"
                }
            ],
            "description": "Fallback provider type"
        },
        "fallback_provider_config": {
            "anyOf": [
                {},
                {
                    "type": "null"
                }
            ],
            "title": "Fallback Provider Config",
            "description": "Fallback provider-specific config"
        },
        "fallback_provider_capabilities": {
            "anyOf": [
                {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Fallback Provider Capabilities",
            "description": "Fallback provider capabilities"
        },
        "resume_attempt_count": {
            "anyOf": [
                {
                    "type": "integer"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Resume Attempt Count",
            "description": "Number of resume attempts"
        },
        "last_resume_attempt": {
            "anyOf": [
                {
                    "type": "string",
                    "format": "date-time"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Last Resume Attempt",
            "description": "Last resume attempt timestamp"
        },
        "error_category": {
            "anyOf": [
                {
                    "$ref": "#/components/schemas/ErrorCategory"
                },
                {
                    "type": "null"
                }
            ],
            "description": "Error category classification"
        },
        "service_requests": {
            "anyOf": [
                {
                    "items": {
                        "additionalProperties": true,
                        "type": "object"
                    },
                    "type": "array"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Service Requests",
            "description": "External service request log for observability"
        },
        "fal_app_id": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Fal App Id",
            "description": "FAL app ID"
        },
        "fal_request_id": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Fal Request Id",
            "description": "FAL request ID"
        },
        "subject_model_path": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Subject Model Path",
            "description": "Path to the subject model"
        },
        "product_model_path": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Product Model Path",
            "description": "Path to the product model"
        },
        "style_model_path": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Style Model Path",
            "description": "Path to the style model"
        },
        "product2_model_path": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Product2 Model Path",
            "description": "Path to the second product model"
        },
        "subject_lora_weight": {
            "anyOf": [
                {
                    "type": "number"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Subject Lora Weight",
            "description": "Subject LoRA weight"
        },
        "product_lora_weight": {
            "anyOf": [
                {
                    "type": "number"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Product Lora Weight",
            "description": "Product LoRA weight"
        },
        "style_lora_weight": {
            "anyOf": [
                {
                    "type": "number"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Style Lora Weight",
            "description": "Style LoRA weight"
        },
        "product2_lora_weight": {
            "anyOf": [
                {
                    "type": "number"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Product2 Lora Weight",
            "description": "Second product LoRA weight"
        },
        "reference_image_path": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Reference Image Path",
            "description": "Path to the reference image"
        },
        "reference_image_strength": {
            "anyOf": [
                {
                    "type": "number",
                    "maximum": 100.0,
                    "minimum": 0.0
                },
                {
                    "type": "null"
                }
            ],
            "title": "Reference Image Strength",
            "description": "Influence of the reference image on generation (0-100)"
        },
        "result_image_path": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Result Image Path",
            "description": "Path to the result image"
        }
    },
    "type": "object",
    "title": "GenerationTaskUpdate",
    "description": "Schema for updating generation task fields"
}

Responses

{
    "task_type": "string",
    "priority": 0,
    "config": null,
    "origin_instance": "string",
    "origin_zone": null,
    "origin_tenant_id": null,
    "origin_reference": null,
    "id": "26afd507-bed4-454a-85f7-f16512664f57",
    "created_at": "2022-04-13T15:42:05.901Z",
    "updated_at": "2022-04-13T15:42:05.901Z",
    "status": "PENDING",
    "started_at": null,
    "completed_at": null,
    "executor_type": null,
    "executor_instance": null,
    "celery_task_id": null,
    "service_task_id": null,
    "provider_type": null,
    "active_provider_capabilities": null,
    "fallback_provider_type": null,
    "fallback_provider_config": null,
    "fallback_provider_capabilities": null,
    "errors": null,
    "error_category": null,
    "retry_count": 0,
    "progress": 10.12,
    "provider_config": null,
    "subject_model_path": null,
    "product_model_path": null,
    "style_model_path": null,
    "product2_model_path": null,
    "subject_lora_weight": null,
    "product_lora_weight": null,
    "style_lora_weight": null,
    "product2_lora_weight": null,
    "workflow_id": null,
    "prompt": null,
    "width": null,
    "height": null,
    "seed": null,
    "result_image_path": null,
    "reference_image_path": null,
    "reference_image_strength": null,
    "fal_app_id": null,
    "fal_request_id": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "properties": {
        "task_type": {
            "type": "string",
            "const": "GENERATION",
            "title": "Task Type",
            "default": "GENERATION"
        },
        "priority": {
            "type": "integer",
            "title": "Priority",
            "description": "Task priority"
        },
        "config": {
            "anyOf": [
                {
                    "additionalProperties": true,
                    "type": "object"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Config"
        },
        "origin_instance": {
            "type": "string",
            "title": "Origin Instance",
            "description": "Task origin instance"
        },
        "origin_zone": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Origin Zone",
            "description": "Task origin zone"
        },
        "origin_tenant_id": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Origin Tenant Id",
            "description": "Task origin tenant ID"
        },
        "origin_reference": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Origin Reference",
            "description": "Optional reference ID or string from the origin system"
        },
        "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
        },
        "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
        },
        "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
        },
        "status": {
            "$ref": "#/components/schemas/TaskStatus"
        },
        "started_at": {
            "anyOf": [
                {
                    "type": "string",
                    "format": "date-time"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Started At"
        },
        "completed_at": {
            "anyOf": [
                {
                    "type": "string",
                    "format": "date-time"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Completed At"
        },
        "executor_type": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Executor Type"
        },
        "executor_instance": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Executor Instance"
        },
        "celery_task_id": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Celery Task Id"
        },
        "service_task_id": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Service Task Id"
        },
        "provider_type": {
            "anyOf": [
                {
                    "$ref": "#/components/schemas/ProviderType"
                },
                {
                    "type": "null"
                }
            ]
        },
        "active_provider_capabilities": {
            "anyOf": [
                {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Active Provider Capabilities"
        },
        "fallback_provider_type": {
            "anyOf": [
                {
                    "$ref": "#/components/schemas/ProviderType"
                },
                {
                    "type": "null"
                }
            ]
        },
        "fallback_provider_config": {
            "anyOf": [
                {},
                {
                    "type": "null"
                }
            ],
            "title": "Fallback Provider Config"
        },
        "fallback_provider_capabilities": {
            "anyOf": [
                {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Fallback Provider Capabilities"
        },
        "errors": {
            "anyOf": [
                {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Errors"
        },
        "error_category": {
            "anyOf": [
                {
                    "$ref": "#/components/schemas/ErrorCategory"
                },
                {
                    "type": "null"
                }
            ]
        },
        "retry_count": {
            "type": "integer",
            "title": "Retry Count",
            "default": 0
        },
        "progress": {
            "type": "number",
            "title": "Progress",
            "default": 0.0
        },
        "provider_config": {
            "anyOf": [
                {},
                {
                    "type": "null"
                }
            ],
            "title": "Provider Config"
        },
        "subject_model_path": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Subject Model Path"
        },
        "product_model_path": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Product Model Path"
        },
        "style_model_path": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Style Model Path"
        },
        "product2_model_path": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Product2 Model Path"
        },
        "subject_lora_weight": {
            "anyOf": [
                {
                    "type": "number"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Subject Lora Weight"
        },
        "product_lora_weight": {
            "anyOf": [
                {
                    "type": "number"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Product Lora Weight"
        },
        "style_lora_weight": {
            "anyOf": [
                {
                    "type": "number"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Style Lora Weight"
        },
        "product2_lora_weight": {
            "anyOf": [
                {
                    "type": "number"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Product2 Lora Weight"
        },
        "workflow_id": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Workflow Id"
        },
        "prompt": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Prompt"
        },
        "width": {
            "anyOf": [
                {
                    "type": "integer"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Width"
        },
        "height": {
            "anyOf": [
                {
                    "type": "integer"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Height"
        },
        "seed": {
            "anyOf": [
                {
                    "type": "integer"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Seed"
        },
        "result_image_path": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Result Image Path"
        },
        "reference_image_path": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Reference Image Path"
        },
        "reference_image_strength": {
            "anyOf": [
                {
                    "type": "number"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Reference Image Strength"
        },
        "fal_app_id": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Fal App Id",
            "description": "Get FAL app ID from provider config.",
            "readOnly": true
        },
        "fal_request_id": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Fal Request Id",
            "description": "Get FAL request ID from provider config.",
            "readOnly": true
        }
    },
    "type": "object",
    "required": [
        "priority",
        "origin_instance",
        "id",
        "created_at",
        "updated_at",
        "status",
        "fal_app_id",
        "fal_request_id"
    ],
    "title": "GenerationTaskPublic",
    "description": "Public generation task schema for API responses"
}

{
    "detail": [
        {
            "loc": [
                null
            ],
            "msg": "string",
            "type": "string"
        }
    ]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "properties": {
        "detail": {
            "items": {
                "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
        }
    },
    "type": "object",
    "title": "HTTPValidationError"
}

GET /api/v1/tasks/generation/{task_id}

Get Generation Task

Description

Get a specific generation task by ID.

Input parameters

Parameter In Type Default Nullable Description
HTTPBearer header string N/A No JWT Bearer token
task_id path string No

Responses

{
    "task_type": "string",
    "priority": 0,
    "config": null,
    "origin_instance": "string",
    "origin_zone": null,
    "origin_tenant_id": null,
    "origin_reference": null,
    "id": "4db1e3ce-8e8a-484e-bf68-8313a102b3c3",
    "created_at": "2022-04-13T15:42:05.901Z",
    "updated_at": "2022-04-13T15:42:05.901Z",
    "status": "PENDING",
    "started_at": null,
    "completed_at": null,
    "executor_type": null,
    "executor_instance": null,
    "celery_task_id": null,
    "service_task_id": null,
    "provider_type": null,
    "active_provider_capabilities": null,
    "fallback_provider_type": null,
    "fallback_provider_config": null,
    "fallback_provider_capabilities": null,
    "errors": null,
    "error_category": null,
    "retry_count": 0,
    "progress": 10.12,
    "provider_config": null,
    "subject_model_path": null,
    "product_model_path": null,
    "style_model_path": null,
    "product2_model_path": null,
    "subject_lora_weight": null,
    "product_lora_weight": null,
    "style_lora_weight": null,
    "product2_lora_weight": null,
    "workflow_id": null,
    "prompt": null,
    "width": null,
    "height": null,
    "seed": null,
    "result_image_path": null,
    "reference_image_path": null,
    "reference_image_strength": null,
    "fal_app_id": null,
    "fal_request_id": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "properties": {
        "task_type": {
            "type": "string",
            "const": "GENERATION",
            "title": "Task Type",
            "default": "GENERATION"
        },
        "priority": {
            "type": "integer",
            "title": "Priority",
            "description": "Task priority"
        },
        "config": {
            "anyOf": [
                {
                    "additionalProperties": true,
                    "type": "object"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Config"
        },
        "origin_instance": {
            "type": "string",
            "title": "Origin Instance",
            "description": "Task origin instance"
        },
        "origin_zone": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Origin Zone",
            "description": "Task origin zone"
        },
        "origin_tenant_id": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Origin Tenant Id",
            "description": "Task origin tenant ID"
        },
        "origin_reference": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Origin Reference",
            "description": "Optional reference ID or string from the origin system"
        },
        "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
        },
        "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
        },
        "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
        },
        "status": {
            "$ref": "#/components/schemas/TaskStatus"
        },
        "started_at": {
            "anyOf": [
                {
                    "type": "string",
                    "format": "date-time"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Started At"
        },
        "completed_at": {
            "anyOf": [
                {
                    "type": "string",
                    "format": "date-time"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Completed At"
        },
        "executor_type": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Executor Type"
        },
        "executor_instance": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Executor Instance"
        },
        "celery_task_id": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Celery Task Id"
        },
        "service_task_id": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Service Task Id"
        },
        "provider_type": {
            "anyOf": [
                {
                    "$ref": "#/components/schemas/ProviderType"
                },
                {
                    "type": "null"
                }
            ]
        },
        "active_provider_capabilities": {
            "anyOf": [
                {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Active Provider Capabilities"
        },
        "fallback_provider_type": {
            "anyOf": [
                {
                    "$ref": "#/components/schemas/ProviderType"
                },
                {
                    "type": "null"
                }
            ]
        },
        "fallback_provider_config": {
            "anyOf": [
                {},
                {
                    "type": "null"
                }
            ],
            "title": "Fallback Provider Config"
        },
        "fallback_provider_capabilities": {
            "anyOf": [
                {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Fallback Provider Capabilities"
        },
        "errors": {
            "anyOf": [
                {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Errors"
        },
        "error_category": {
            "anyOf": [
                {
                    "$ref": "#/components/schemas/ErrorCategory"
                },
                {
                    "type": "null"
                }
            ]
        },
        "retry_count": {
            "type": "integer",
            "title": "Retry Count",
            "default": 0
        },
        "progress": {
            "type": "number",
            "title": "Progress",
            "default": 0.0
        },
        "provider_config": {
            "anyOf": [
                {},
                {
                    "type": "null"
                }
            ],
            "title": "Provider Config"
        },
        "subject_model_path": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Subject Model Path"
        },
        "product_model_path": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Product Model Path"
        },
        "style_model_path": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Style Model Path"
        },
        "product2_model_path": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Product2 Model Path"
        },
        "subject_lora_weight": {
            "anyOf": [
                {
                    "type": "number"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Subject Lora Weight"
        },
        "product_lora_weight": {
            "anyOf": [
                {
                    "type": "number"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Product Lora Weight"
        },
        "style_lora_weight": {
            "anyOf": [
                {
                    "type": "number"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Style Lora Weight"
        },
        "product2_lora_weight": {
            "anyOf": [
                {
                    "type": "number"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Product2 Lora Weight"
        },
        "workflow_id": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Workflow Id"
        },
        "prompt": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Prompt"
        },
        "width": {
            "anyOf": [
                {
                    "type": "integer"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Width"
        },
        "height": {
            "anyOf": [
                {
                    "type": "integer"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Height"
        },
        "seed": {
            "anyOf": [
                {
                    "type": "integer"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Seed"
        },
        "result_image_path": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Result Image Path"
        },
        "reference_image_path": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Reference Image Path"
        },
        "reference_image_strength": {
            "anyOf": [
                {
                    "type": "number"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Reference Image Strength"
        },
        "fal_app_id": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Fal App Id",
            "description": "Get FAL app ID from provider config.",
            "readOnly": true
        },
        "fal_request_id": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Fal Request Id",
            "description": "Get FAL request ID from provider config.",
            "readOnly": true
        }
    },
    "type": "object",
    "required": [
        "priority",
        "origin_instance",
        "id",
        "created_at",
        "updated_at",
        "status",
        "fal_app_id",
        "fal_request_id"
    ],
    "title": "GenerationTaskPublic",
    "description": "Public generation task schema for API responses"
}

{
    "detail": [
        {
            "loc": [
                null
            ],
            "msg": "string",
            "type": "string"
        }
    ]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "properties": {
        "detail": {
            "items": {
                "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
        }
    },
    "type": "object",
    "title": "HTTPValidationError"
}

GET /api/v1/tasks/generation

List Generation Tasks

Description

List generation tasks with optional filtering and pagination.

Input parameters

Parameter In Type Default Nullable Description
HTTPBearer header string N/A No JWT Bearer token
limit query integer 100 No Maximum number of tasks to return
origin_instance query No Filter by origin instance
origin_tenant_id query No Filter by origin tenant ID
origin_zone query No Filter by origin zone
skip query integer 0 No Number of tasks to skip
status query No Filter by task status
workflow_id query No Filter by workflow ID

Responses

[
    {
        "task_type": "string",
        "priority": 0,
        "config": null,
        "origin_instance": "string",
        "origin_zone": null,
        "origin_tenant_id": null,
        "origin_reference": null,
        "id": "56bee1ba-a729-47a0-9170-7428837ffb6d",
        "created_at": "2022-04-13T15:42:05.901Z",
        "updated_at": "2022-04-13T15:42:05.901Z",
        "status": "PENDING",
        "started_at": null,
        "completed_at": null,
        "executor_type": null,
        "executor_instance": null,
        "celery_task_id": null,
        "service_task_id": null,
        "provider_type": null,
        "active_provider_capabilities": null,
        "fallback_provider_type": null,
        "fallback_provider_config": null,
        "fallback_provider_capabilities": null,
        "errors": null,
        "error_category": null,
        "retry_count": 0,
        "progress": 10.12,
        "provider_config": null,
        "subject_model_path": null,
        "product_model_path": null,
        "style_model_path": null,
        "product2_model_path": null,
        "subject_lora_weight": null,
        "product_lora_weight": null,
        "style_lora_weight": null,
        "product2_lora_weight": null,
        "workflow_id": null,
        "prompt": null,
        "width": null,
        "height": null,
        "seed": null,
        "result_image_path": null,
        "reference_image_path": null,
        "reference_image_strength": null,
        "fal_app_id": null,
        "fal_request_id": null
    }
]
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "type": "array",
    "items": {
        "$ref": "#/components/schemas/GenerationTaskPublic"
    },
    "title": "Response List Generation Tasks"
}

{
    "detail": [
        {
            "loc": [
                null
            ],
            "msg": "string",
            "type": "string"
        }
    ]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "properties": {
        "detail": {
            "items": {
                "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
        }
    },
    "type": "object",
    "title": "HTTPValidationError"
}

POST /api/v1/tasks/generation/{task_id}/cancel

Cancel Generation Task

Description

Cancel a specific generation task.

Input parameters

Parameter In Type Default Nullable Description
HTTPBearer header string N/A No JWT Bearer token
task_id path string No

Responses

{
    "task_type": "string",
    "priority": 0,
    "config": null,
    "origin_instance": "string",
    "origin_zone": null,
    "origin_tenant_id": null,
    "origin_reference": null,
    "id": "dd48f8d3-bffb-4ae5-9013-5c285fb93955",
    "created_at": "2022-04-13T15:42:05.901Z",
    "updated_at": "2022-04-13T15:42:05.901Z",
    "status": "PENDING",
    "started_at": null,
    "completed_at": null,
    "executor_type": null,
    "executor_instance": null,
    "celery_task_id": null,
    "service_task_id": null,
    "provider_type": null,
    "active_provider_capabilities": null,
    "fallback_provider_type": null,
    "fallback_provider_config": null,
    "fallback_provider_capabilities": null,
    "errors": null,
    "error_category": null,
    "retry_count": 0,
    "progress": 10.12,
    "provider_config": null,
    "subject_model_path": null,
    "product_model_path": null,
    "style_model_path": null,
    "product2_model_path": null,
    "subject_lora_weight": null,
    "product_lora_weight": null,
    "style_lora_weight": null,
    "product2_lora_weight": null,
    "workflow_id": null,
    "prompt": null,
    "width": null,
    "height": null,
    "seed": null,
    "result_image_path": null,
    "reference_image_path": null,
    "reference_image_strength": null,
    "fal_app_id": null,
    "fal_request_id": null
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "properties": {
        "task_type": {
            "type": "string",
            "const": "GENERATION",
            "title": "Task Type",
            "default": "GENERATION"
        },
        "priority": {
            "type": "integer",
            "title": "Priority",
            "description": "Task priority"
        },
        "config": {
            "anyOf": [
                {
                    "additionalProperties": true,
                    "type": "object"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Config"
        },
        "origin_instance": {
            "type": "string",
            "title": "Origin Instance",
            "description": "Task origin instance"
        },
        "origin_zone": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Origin Zone",
            "description": "Task origin zone"
        },
        "origin_tenant_id": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Origin Tenant Id",
            "description": "Task origin tenant ID"
        },
        "origin_reference": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Origin Reference",
            "description": "Optional reference ID or string from the origin system"
        },
        "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
        },
        "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
        },
        "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
        },
        "status": {
            "$ref": "#/components/schemas/TaskStatus"
        },
        "started_at": {
            "anyOf": [
                {
                    "type": "string",
                    "format": "date-time"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Started At"
        },
        "completed_at": {
            "anyOf": [
                {
                    "type": "string",
                    "format": "date-time"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Completed At"
        },
        "executor_type": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Executor Type"
        },
        "executor_instance": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Executor Instance"
        },
        "celery_task_id": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Celery Task Id"
        },
        "service_task_id": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Service Task Id"
        },
        "provider_type": {
            "anyOf": [
                {
                    "$ref": "#/components/schemas/ProviderType"
                },
                {
                    "type": "null"
                }
            ]
        },
        "active_provider_capabilities": {
            "anyOf": [
                {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Active Provider Capabilities"
        },
        "fallback_provider_type": {
            "anyOf": [
                {
                    "$ref": "#/components/schemas/ProviderType"
                },
                {
                    "type": "null"
                }
            ]
        },
        "fallback_provider_config": {
            "anyOf": [
                {},
                {
                    "type": "null"
                }
            ],
            "title": "Fallback Provider Config"
        },
        "fallback_provider_capabilities": {
            "anyOf": [
                {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Fallback Provider Capabilities"
        },
        "errors": {
            "anyOf": [
                {
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Errors"
        },
        "error_category": {
            "anyOf": [
                {
                    "$ref": "#/components/schemas/ErrorCategory"
                },
                {
                    "type": "null"
                }
            ]
        },
        "retry_count": {
            "type": "integer",
            "title": "Retry Count",
            "default": 0
        },
        "progress": {
            "type": "number",
            "title": "Progress",
            "default": 0.0
        },
        "provider_config": {
            "anyOf": [
                {},
                {
                    "type": "null"
                }
            ],
            "title": "Provider Config"
        },
        "subject_model_path": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Subject Model Path"
        },
        "product_model_path": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Product Model Path"
        },
        "style_model_path": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Style Model Path"
        },
        "product2_model_path": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Product2 Model Path"
        },
        "subject_lora_weight": {
            "anyOf": [
                {
                    "type": "number"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Subject Lora Weight"
        },
        "product_lora_weight": {
            "anyOf": [
                {
                    "type": "number"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Product Lora Weight"
        },
        "style_lora_weight": {
            "anyOf": [
                {
                    "type": "number"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Style Lora Weight"
        },
        "product2_lora_weight": {
            "anyOf": [
                {
                    "type": "number"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Product2 Lora Weight"
        },
        "workflow_id": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Workflow Id"
        },
        "prompt": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Prompt"
        },
        "width": {
            "anyOf": [
                {
                    "type": "integer"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Width"
        },
        "height": {
            "anyOf": [
                {
                    "type": "integer"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Height"
        },
        "seed": {
            "anyOf": [
                {
                    "type": "integer"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Seed"
        },
        "result_image_path": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Result Image Path"
        },
        "reference_image_path": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Reference Image Path"
        },
        "reference_image_strength": {
            "anyOf": [
                {
                    "type": "number"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Reference Image Strength"
        },
        "fal_app_id": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Fal App Id",
            "description": "Get FAL app ID from provider config.",
            "readOnly": true
        },
        "fal_request_id": {
            "anyOf": [
                {
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "title": "Fal Request Id",
            "description": "Get FAL request ID from provider config.",
            "readOnly": true
        }
    },
    "type": "object",
    "required": [
        "priority",
        "origin_instance",
        "id",
        "created_at",
        "updated_at",
        "status",
        "fal_app_id",
        "fal_request_id"
    ],
    "title": "GenerationTaskPublic",
    "description": "Public generation task schema for API responses"
}

{
    "detail": [
        {
            "loc": [
                null
            ],
            "msg": "string",
            "type": "string"
        }
    ]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "properties": {
        "detail": {
            "items": {
                "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
        }
    },
    "type": "object",
    "title": "HTTPValidationError"
}

Schemas

BackgroundFixStrategy

Type: string

BackgroundFixTaskPublic

Name Type Description
active_provider_capabilities
base_image_path string
celery_task_id
completed_at
config
created_at string(date-time)
edge_blur_sigma
error_category
errors
executor_instance
executor_type
fallback_provider_capabilities
fallback_provider_config
fallback_provider_type
id string(uuid)
light_threshold
mask_expansion_percentage
origin_instance string Task origin instance
origin_reference Optional reference ID or string from the origin system
origin_tenant_id Task origin tenant ID
origin_zone Task origin zone
palette_image_path string
priority integer Task priority
progress number
provider_config
provider_type
result_image_path
retry_count integer
service_task_id
shadow_threshold
started_at
status TaskStatus
strategy BackgroundFixStrategy
task_type string
updated_at string(date-time)

BackgroundFixTaskPublicUpdate

Name Type Description
config
errors
executor_instance
executor_type
priority
status

BackgroundRemovalTaskPublic

Name Type Description
active_provider_capabilities
celery_task_id
completed_at
config
created_at string(date-time)
error_category
errors
executor_instance
executor_type
fallback_provider_capabilities
fallback_provider_config
fallback_provider_type
id string(uuid)
input_image_paths Array<string>
origin_instance string Task origin instance
origin_reference Optional reference ID or string from the origin system
origin_tenant_id Task origin tenant ID
origin_zone Task origin zone
priority integer Task priority
progress number
provider_config
provider_type
result_image_paths
retry_count integer
service_task_id
started_at
status TaskStatus
task_type string
updated_at string(date-time)

BackgroundRemovalTaskPublicUpdate

Name Type Description
config
errors
executor_instance
executor_type
priority
status

CreateBackgroundFixTask

Name Type Description
active_provider_capabilities List of active capabilities for this task
base_image string Base image as base64, data URL (data:image/...), remote URL (http://...), or local path
config Flexible configuration storage
edge_blur_sigma Gaussian blur sigma for soft edge transitions (default 20.0)
fallback_provider_capabilities Capabilities for the fallback provider. Replaces active_provider_capabilities on fallback activation.
fallback_provider_config Provider-specific config for the fallback provider. Shape varies by provider type.
fallback_provider_type Fallback provider activated when primary exhausts all retries (non-ValueError only).
light_threshold Brightness above which full color shift applied (0-255, default 220)
mask_expansion_percentage Percentage to expand person mask (0-1, default 0.005 = 0.5%)
origin_instance string Identifier for the instance that created this task
origin_reference Optional field that can be used to map an id or a reference string from the origin (such as prediction id in the external backend)
origin_tenant_id Optional tenant/organization identifier
origin_zone Environment/zone identifier (e.g., 'eu', 'us')
palette_image string Palette/reference image for target background color as base64, data URL, remote URL, or local path
priority integer
provider_config Provider-specific configuration
provider_type Provider type for task execution
queue_name Optional queue override. If not specified, determined by provider_type
shadow_threshold Brightness below which no color shift applied (0-255, default 150)
strategy Processing strategy
task_type string
webhook_url Webhook URL

CreateBackgroundRemovalTask

Name Type Description
active_provider_capabilities List of active capabilities for this task
config Flexible configuration storage
fallback_provider_capabilities Capabilities for the fallback provider. Replaces active_provider_capabilities on fallback activation.
fallback_provider_config Provider-specific config for the fallback provider. Shape varies by provider type.
fallback_provider_type Fallback provider activated when primary exhausts all retries (non-ValueError only).
input_image_paths Array<string> List of image paths or URLs for batch background removal
origin_instance string Identifier for the instance that created this task
origin_reference Optional field that can be used to map an id or a reference string from the origin (such as prediction id in the external backend)
origin_tenant_id Optional tenant/organization identifier
origin_zone Environment/zone identifier (e.g., 'eu', 'us')
priority integer
provider_config Provider-specific configuration
provider_type Provider type for task execution
queue_name Optional queue override. If not specified, determined by provider_type
task_type string
webhook_url Webhook URL

CreateDetailEnhancerTask

Name Type Description
active_provider_capabilities List of active capabilities for this task
base_image string Base image as base64, data URL (data:image/...), or remote URL (http://...)
config Flexible configuration storage
detail_label Type of detail to enhance (e.g., tshirt, shirt, pants, logos)
fallback_provider_capabilities Capabilities for the fallback provider. Replaces active_provider_capabilities on fallback activation.
fallback_provider_config Provider-specific config for the fallback provider. Shape varies by provider type.
fallback_provider_type Fallback provider activated when primary exhausts all retries (non-ValueError only).
origin_instance string Identifier for the instance that created this task
origin_reference Optional field that can be used to map an id or a reference string from the origin (such as prediction id in the external backend)
origin_tenant_id Optional tenant/organization identifier
origin_zone Environment/zone identifier (e.g., 'eu', 'us')
priority integer
provider_config Provider-specific configuration
provider_type Provider type for task execution
queue_name Optional queue override. If not specified, determined by provider_type
reference_image string Reference image for detail transfer as base64, data URL, or remote URL
task_type string
webhook_url Webhook URL

CreateEditingTask

Name Type Description
active_provider_capabilities List of active capabilities for this task
base_image string Base image as base64, data URL (data:image/...), or remote URL (http://...)
base_image_data DEPRECATED: Use base_image instead. Base64-encoded base image data.
base_image_url DEPRECATED: Use base_image instead. URL to base image file.
config Flexible configuration storage
fal_app_id FAL app ID for task execution
fallback_provider_capabilities Capabilities for the fallback provider. Replaces active_provider_capabilities on fallback activation.
fallback_provider_config Provider-specific config for the fallback provider. Shape varies by provider type.
fallback_provider_type Fallback provider activated when primary exhausts all retries (non-ValueError only).
height integer Image height
origin_instance string Identifier for the instance that created this task
origin_reference Optional field that can be used to map an id or a reference string from the origin (such as prediction id in the external backend)
origin_tenant_id Optional tenant/organization identifier
origin_zone Environment/zone identifier (e.g., 'eu', 'us')
priority integer
prompt string Task prompt
provider_config Provider-specific configuration
provider_type Provider type for task execution
queue_name Optional queue override. If not specified, determined by provider_type
reference_image_data DEPRECATED: Use reference_images instead. Base64-encoded reference image data.
reference_image_url DEPRECATED: Use reference_images instead. URL to reference image file.
reference_images List of reference images (base64, data URLs, or remote URLs)
seed Random seed for generation
task_type string
webhook_url Webhook URL
width integer Image width
workflow_id Workflow ID

CreateExperimentalFalTask

Name Type Description
active_provider_capabilities List of active capabilities for this task
config Flexible configuration storage
fal_app_id string FAL app ID for task execution
fal_parameters Arbitrary parameters to pass to the FAL app
fallback_provider_capabilities Capabilities for the fallback provider. Replaces active_provider_capabilities on fallback activation.
fallback_provider_config Provider-specific config for the fallback provider. Shape varies by provider type.
fallback_provider_type Fallback provider activated when primary exhausts all retries (non-ValueError only).
origin_instance string Identifier for the instance that created this task
origin_reference Optional field that can be used to map an id or a reference string from the origin (such as prediction id in the external backend)
origin_tenant_id Optional tenant/organization identifier
origin_zone Environment/zone identifier (e.g., 'eu', 'us')
priority integer
provider_config Provider-specific configuration
provider_type Provider type for task execution
queue_name Optional queue override. If not specified, determined by provider_type
task_type string
webhook_url Webhook URL

CreateFaceEnhancerTask

Name Type Description
active_provider_capabilities List of active capabilities for this task
config Flexible configuration storage
fallback_provider_capabilities Capabilities for the fallback provider. Replaces active_provider_capabilities on fallback activation.
fallback_provider_config Provider-specific config for the fallback provider. Shape varies by provider type.
fallback_provider_type Fallback provider activated when primary exhausts all retries (non-ValueError only).
input_image string Input image as base64, data URL (data:image/...), or remote URL (http://...)
origin_instance string Identifier for the instance that created this task
origin_reference Optional field that can be used to map an id or a reference string from the origin (such as prediction id in the external backend)
origin_tenant_id Optional tenant/organization identifier
origin_zone Environment/zone identifier (e.g., 'eu', 'us')
priority integer
provider_config Provider-specific configuration
provider_type Provider type for task execution
queue_name Optional queue override. If not specified, determined by provider_type
task_type string
webhook_url Webhook URL

CreateGenerationTask

Name Type Description
active_provider_capabilities List of active capabilities for this task
config Flexible configuration storage
fal_app_id FAL app ID for task execution
fallback_provider_capabilities Capabilities for the fallback provider. Replaces active_provider_capabilities on fallback activation.
fallback_provider_config Provider-specific config for the fallback provider. Shape varies by provider type.
fallback_provider_type Fallback provider activated when primary exhausts all retries (non-ValueError only).
height Image height
origin_instance string Identifier for the instance that created this task
origin_reference Optional field that can be used to map an id or a reference string from the origin (such as prediction id in the external backend)
origin_tenant_id Optional tenant/organization identifier
origin_zone Environment/zone identifier (e.g., 'eu', 'us')
priority integer
product2_lora_weight Second product LoRA weight
product2_model_path Path to the second product model
product_lora_weight Product LoRA weight
product_model_path Path to the product model
prompt string Task prompt
provider_config Provider-specific configuration
provider_type Provider type for task execution
queue_name Optional queue override. If not specified, determined by provider_type
reference_image_data Base64-encoded reference image data (data:image/jpeg;base64,... format)
reference_image_strength Influence of the reference image on generation (0-100)
reference_image_url URL to reference image file
seed Random seed for generation
style_lora_weight Style LoRA weight
style_model_path Path to the style model
subject_lora_weight Subject LoRA weight
subject_model_path Path to the subject model
task_type string
webhook_url Webhook URL
width Image width

CreateImageAdjusterTask

Name Type Description
active_provider_capabilities List of active capabilities for this task
aspect_ratio Target aspect ratio (width/height). Use either this or target_width/target_height.
config Flexible configuration storage
cropping_position Position to crop from (only used when mode='crop')
fallback_provider_capabilities Capabilities for the fallback provider. Replaces active_provider_capabilities on fallback activation.
fallback_provider_config Provider-specific config for the fallback provider. Shape varies by provider type.
fallback_provider_type Fallback provider activated when primary exhausts all retries (non-ValueError only).
input_image string Input image as base64, data URL (data:image/...), remote URL (http://...), or local path
margin_bottom Minimum bottom margin as percentage of final height (0.0-1.0). Subject detection required.
margin_left Minimum left margin as percentage of final width (0.0-1.0). Subject detection required.
margin_right Minimum right margin as percentage of final width (0.0-1.0). Subject detection required.
margin_top Minimum top margin as percentage of final height (0.0-1.0). Subject detection required.
mode string Resize mode: 'auto' intelligently chooses crop or pad based on AR difference (>5% diff = pad to preserve content, <=5% = crop for minimal loss), 'crop' removes pixels, 'pad' adds padding, 'scale' resizes based on proportions
origin_instance string Identifier for the instance that created this task
origin_reference Optional field that can be used to map an id or a reference string from the origin (such as prediction id in the external backend)
origin_tenant_id Optional tenant/organization identifier
origin_zone Environment/zone identifier (e.g., 'eu', 'us')
priority integer
provider_config Provider-specific configuration
provider_type Provider type for task execution
queue_name Optional queue override. If not specified, determined by provider_type
reference_image Optional reference image used to derive subject margins automatically (base64, data URL, remote URL, or local path).
resampling Resampling filter to use
scaling_proportions Scaling proportions mode. 'height' matches vertical margins exactly (may crop horizontally).
target_height Target height in pixels (required if target_width is set)
target_width Target width in pixels (required if target_height is set)
task_type string
tolerance Tolerance for checking if adjustment is needed (0-1, default 0% for pixel-perfect)
webhook_url Webhook URL

CreateLLMInteractionTask

Name Type Description
active_provider_capabilities List of active capabilities for this task
config Flexible configuration storage
fallback_provider_capabilities Capabilities for the fallback provider. Replaces active_provider_capabilities on fallback activation.
fallback_provider_config Provider-specific config for the fallback provider. Shape varies by provider type.
fallback_provider_type Fallback provider activated when primary exhausts all retries (non-ValueError only).
input_images List of image paths/URLs
origin_instance string Identifier for the instance that created this task
origin_reference Optional field that can be used to map an id or a reference string from the origin (such as prediction id in the external backend)
origin_tenant_id Optional tenant/organization identifier
origin_zone Environment/zone identifier (e.g., 'eu', 'us')
priority integer
prompt string User prompt
provider_config Provider-specific configuration
provider_type Provider type for task execution
queue_name Optional queue override. If not specified, determined by provider_type
system_prompt System prompt
task_type TaskType
webhook_url Webhook URL

CreateRefineTask

Name Type Description
active_provider_capabilities List of active capabilities for this task
base_image_url string Base image URL
config Flexible configuration storage
face_detail_denoise number Denoise strength
face_detail_enabled boolean Whether to enhance face details in the image
face_detail_prompt Face detail prompt
face_detail_seed Seed for the face detail enhancement
face_detail_steps integer Number of inference steps
fal_app_id FAL app ID for task execution
fallback_provider_capabilities Capabilities for the fallback provider. Replaces active_provider_capabilities on fallback activation.
fallback_provider_config Provider-specific config for the fallback provider. Shape varies by provider type.
fallback_provider_type Fallback provider activated when primary exhausts all retries (non-ValueError only).
origin_instance string Identifier for the instance that created this task
origin_reference Optional field that can be used to map an id or a reference string from the origin (such as prediction id in the external backend)
origin_tenant_id Optional tenant/organization identifier
origin_zone Environment/zone identifier (e.g., 'eu', 'us')
priority integer
provider_config Provider-specific configuration
provider_type Provider type for task execution
queue_name Optional queue override. If not specified, determined by provider_type
target_height Target output height in pixels
target_width Target output width in pixels
task_type string
upscale_denoise number Denoise strength
upscale_enabled boolean Whether to upscale the image
upscale_factor Upscale factor (float value). Integer values 2, 4, 8 use specific UPSCALE_*X capabilities. Non-integer values require UPSCALE_FLOAT capability. If not provided, OUTPUT_SIZE capability is required
upscale_prompt Task prompt
upscale_seed Seed for the upscale
upscale_steps integer Number of inference steps
webhook_url Webhook URL

CreateVideoGenerationTask

Name Type Description
active_provider_capabilities List of active capabilities for this task
cfg_scale number Classifier-free guidance scale (0.0-2.0)
config Flexible configuration storage
duration_seconds integer Video duration in seconds (1-60)
fallback_provider_capabilities Capabilities for the fallback provider. Replaces active_provider_capabilities on fallback activation.
fallback_provider_config Provider-specific config for the fallback provider. Shape varies by provider type.
fallback_provider_type Fallback provider activated when primary exhausts all retries (non-ValueError only).
input_image_data Base64-encoded input image data (data:image/jpeg;base64,... format)
input_image_url URL to input image for video generation
negative_prompt Negative prompt to avoid unwanted elements
origin_instance string Identifier for the instance that created this task
origin_reference Optional field that can be used to map an id or a reference string from the origin (such as prediction id in the external backend)
origin_tenant_id Optional tenant/organization identifier
origin_zone Environment/zone identifier (e.g., 'eu', 'us')
priority integer
prompt string Text prompt describing the desired video content
provider_config Provider-specific configuration
provider_type Provider type for task execution
queue_name Optional queue override. If not specified, determined by provider_type
task_type string
webhook_url Webhook URL

DetailEnhancerTaskPublic

Name Type Description
active_provider_capabilities
base_image_path string
celery_task_id
completed_at
config
created_at string(date-time)
detail_label
error_category
errors
executor_instance
executor_type
fallback_provider_capabilities
fallback_provider_config
fallback_provider_type
fallback_used boolean
id string(uuid)
origin_instance string Task origin instance
origin_reference Optional reference ID or string from the origin system
origin_tenant_id Task origin tenant ID
origin_zone Task origin zone
priority integer Task priority
progress number
provider_config
provider_type
reference_image_path string
result_image_path
retry_count integer
service_task_id
started_at
status TaskStatus
task_type string
updated_at string(date-time)

DetailEnhancerTaskPublicUpdate

Name Type Description
config
errors
executor_instance
executor_type
priority
status

EditingTaskPublic

Name Type Description
active_provider_capabilities
base_image_path string
celery_task_id
completed_at
config
created_at string(date-time)
error_category
errors
executor_instance
executor_type
fal_app_id Get FAL app ID from provider config.
fal_request_id Get FAL request ID from provider config.
fallback_provider_capabilities
fallback_provider_config
fallback_provider_type
height integer
id string(uuid)
origin_instance string Task origin instance
origin_reference Optional reference ID or string from the origin system
origin_tenant_id Task origin tenant ID
origin_zone Task origin zone
priority integer Task priority
progress number
prompt string
provider_config
provider_type
reference_image_path
reference_images
result_image_path
retry_count integer
seed
service_task_id
started_at
status TaskStatus
task_type string
updated_at string(date-time)
width integer
workflow_id Workflow ID

EditingTaskPublicUpdate

Name Type Description
config
errors
executor_instance
executor_type
priority
status

ErrorCategory

Type: string

ExperimentalFalTaskPublic

Name Type Description
active_provider_capabilities
celery_task_id
completed_at
config
created_at string(date-time)
error_category
errors
executor_instance
executor_type
fal_app_id string FAL app ID for task execution
fal_parameters Parameters passed to the FAL app
fal_request_id FAL request ID
fallback_provider_capabilities
fallback_provider_config
fallback_provider_type
id string(uuid)
origin_instance string Task origin instance
origin_reference Optional reference ID or string from the origin system
origin_tenant_id Task origin tenant ID
origin_zone Task origin zone
priority integer Task priority
progress number
provider_config
provider_type
result_url URL of the result from FAL
retry_count integer
service_task_id
started_at
status TaskStatus
task_type string
updated_at string(date-time)

ExperimentalFalTaskPublicUpdate

Name Type Description
config
errors
executor_instance
executor_type
fal_app_id FAL app ID for task execution
fal_parameters Parameters to pass to the FAL app
priority
status

FaceEnhancerTaskPublic

Name Type Description
active_provider_capabilities
attempts_used integer
celery_task_id
completed_at
config
created_at string(date-time)
error_category
errors
executor_instance
executor_type
face_detected boolean
fallback_provider_capabilities
fallback_provider_config
fallback_provider_type
fallback_used boolean
final_dists_score
final_lpips_score
final_ssim_score
id string(uuid)
input_image_path string
origin_instance string Task origin instance
origin_reference Optional reference ID or string from the origin system
origin_tenant_id Task origin tenant ID
origin_zone Task origin zone
priority integer Task priority
progress number
provider_config
provider_type
result_image_path
retry_count integer
service_task_id
started_at
status TaskStatus
task_type string
updated_at string(date-time)

FaceEnhancerTaskPublicUpdate

Name Type Description
config
errors
executor_instance
executor_type
priority
status

GenerationTaskPublic

Name Type Description
active_provider_capabilities
celery_task_id
completed_at
config
created_at string(date-time)
error_category
errors
executor_instance
executor_type
fal_app_id Get FAL app ID from provider config.
fal_request_id Get FAL request ID from provider config.
fallback_provider_capabilities
fallback_provider_config
fallback_provider_type
height
id string(uuid)
origin_instance string Task origin instance
origin_reference Optional reference ID or string from the origin system
origin_tenant_id Task origin tenant ID
origin_zone Task origin zone
priority integer Task priority
product2_lora_weight
product2_model_path
product_lora_weight
product_model_path
progress number
prompt
provider_config
provider_type
reference_image_path
reference_image_strength
result_image_path
retry_count integer
seed
service_task_id
started_at
status TaskStatus
style_lora_weight
style_model_path
subject_lora_weight
subject_model_path
task_type string
updated_at string(date-time)
width
workflow_id

GenerationTaskPublicUpdate

Name Type Description
config
errors
executor_instance
executor_type
priority
status

GenerationTaskUpdate

Name Type Description
active_provider_capabilities List of active capabilities for this task
celery_task_id Task Celery task ID
completed_at Task completion timestamp
config Flexible configuration storage
created_at Task creation timestamp
error_category Error category classification
errors
executor_instance
executor_type
fal_app_id FAL app ID
fal_request_id FAL request ID
fallback_provider_capabilities Fallback provider capabilities
fallback_provider_config Fallback provider-specific config
fallback_provider_type Fallback provider type
is_resumed Whether task is being resumed
last_resume_attempt Last resume attempt timestamp
origin_instance Task origin instance
origin_reference Optional reference ID or string from the origin system
origin_tenant_id Task origin tenant ID
origin_zone Task origin zone
priority
product2_lora_weight Second product LoRA weight
product2_model_path Path to the second product model
product_lora_weight Product LoRA weight
product_model_path Path to the product model
progress Task progress (0.0 to 100.0)
provider_type Provider type for task execution
queue_name Task queue name
reference_image_path Path to the reference image
reference_image_strength Influence of the reference image on generation (0-100)
result_image_path Path to the result image
resume_attempt_count Number of resume attempts
retry_count Task retry count
service_requests External service request log for observability
service_task_id Task service task ID
started_at Task start timestamp
status
style_lora_weight Style LoRA weight
style_model_path Path to the style model
subject_lora_weight Subject LoRA weight
subject_model_path Path to the subject model
task_type Task type
updated_at Task last update timestamp

HTTPValidationError

Name Type Description
detail Array<ValidationError>

ImageAdjusterTaskPublic

Name Type Description
active_provider_capabilities
aspect_ratio
celery_task_id
completed_at
config
created_at string(date-time)
cropping_position
error_category
errors
executor_instance
executor_type
fallback_provider_capabilities
fallback_provider_config
fallback_provider_type
id string(uuid)
input_image_path string
margin_bottom
margin_left
margin_right
margin_top
mode string
origin_instance string Task origin instance
origin_reference Optional reference ID or string from the origin system
origin_tenant_id Task origin tenant ID
origin_zone Task origin zone
priority integer Task priority
progress number
provider_config
provider_type
reference_image_path
resampling
result_image_path
retry_count integer
scaling_proportions
service_task_id
started_at
status TaskStatus
target_height
target_width
task_type string
tolerance
updated_at string(date-time)

ImageAdjusterTaskPublicUpdate

Name Type Description
config
errors
executor_instance
executor_type
priority
status

LLMInteractionTaskPublic

Name Type Description
active_provider_capabilities
celery_task_id
completed_at
config
created_at string(date-time)
error_category
errors
executor_instance
executor_type
fallback_provider_capabilities
fallback_provider_config
fallback_provider_type
id string(uuid)
input_images
input_tokens
origin_instance string Task origin instance
origin_reference Optional reference ID or string from the origin system
origin_tenant_id Task origin tenant ID
origin_zone Task origin zone
output_tokens
priority integer Task priority
progress number
prompt string
provider_config
provider_type
result_text
retry_count integer
service_task_id
started_at
status TaskStatus
system_prompt
task_type TaskType Task type
updated_at string(date-time)

LLMInteractionTaskPublicUpdate

Name Type Description
active_provider_capabilities List of active capabilities for this task
celery_task_id Task Celery task ID
completed_at Task completion timestamp
config Flexible configuration storage
created_at Task creation timestamp
error_category Error category classification
errors
executor_instance
executor_type
fallback_provider_capabilities Fallback provider capabilities
fallback_provider_config Fallback provider-specific config
fallback_provider_type Fallback provider type
is_resumed Whether task is being resumed
last_resume_attempt Last resume attempt timestamp
origin_instance Task origin instance
origin_reference Optional reference ID or string from the origin system
origin_tenant_id Task origin tenant ID
origin_zone Task origin zone
priority
progress
provider_type Provider type for task execution
queue_name Task queue name
resume_attempt_count Number of resume attempts
retry_count Task retry count
service_requests External service request log for observability
service_task_id Task service task ID
started_at Task start timestamp
status
task_type Task type
updated_at Task last update timestamp

ProviderCapability

Type: string

ProviderType

Type: string

RefineTaskPublic

Name Type Description
active_provider_capabilities
celery_task_id
completed_at
config
created_at string(date-time)
error_category
errors
executor_instance
executor_type
face_detail_denoise number
face_detail_seed integer
face_detail_steps integer
fal_app_id Get FAL app ID from provider config.
fal_request_id Get FAL request ID from provider config.
fallback_provider_capabilities
fallback_provider_config
fallback_provider_type
id string(uuid)
origin_instance string Task origin instance
origin_reference Optional reference ID or string from the origin system
origin_tenant_id Task origin tenant ID
origin_zone Task origin zone
priority integer Task priority
progress number
provider_config
provider_type
result_image_path
retry_count integer
service_task_id
started_at
status TaskStatus
target_height
target_width
task_type string
updated_at string(date-time)
upscale_denoise number
upscale_factor
upscale_seed integer
upscale_steps integer

RefineTaskPublicUpdate

Name Type Description
config
errors
executor_instance
executor_type
priority
status

TaskStatus

Type: string

TaskType

Type: string

ValidationError

Name Type Description
loc Array<>
msg string
type string

VideoGenerationTaskPublic

Name Type Description
active_provider_capabilities
celery_task_id
cfg_scale number
completed_at
config
created_at string(date-time)
duration_seconds integer
error_category
errors
executor_instance
executor_type
fallback_provider_capabilities
fallback_provider_config
fallback_provider_type
id string(uuid)
input_image_path string
negative_prompt
origin_instance string Task origin instance
origin_reference Optional reference ID or string from the origin system
origin_tenant_id Task origin tenant ID
origin_zone Task origin zone
priority integer Task priority
progress number
prompt string
provider_config
provider_type
result_video_path
retry_count integer
service_task_id
started_at
status TaskStatus
task_type string
updated_at string(date-time)

VideoGenerationTaskPublicUpdate

Name Type Description
config
errors
executor_instance
executor_type
priority
status

Security schemes

Name Type Scheme Description
HTTPBearer http bearer