Skip to main content

Try On Job Status (Beta)

GET 

/v1/try-on/job/:jobId

BETA - This endpoint is currently in beta and may change without notice.

Checks the status of a Try On job. When using the Try On API with wait_for_result set to false, it returns a job ID. This endpoint allows you to check the status of that job and retrieve the final result when processing is complete.

Request

Path Parameters

    jobId stringrequired

    The ID of the job to check

Responses

Job status retrieved successfully

Schema

    job_id string

    The ID of the job

    status string

    Possible values: [pending, running, completed, failed]

    The current status of the job

    result_url string

    A URL to access the resultant image, only present when status is 'completed'

    error

    object

    message string

    A description of the error.

    error_code string

    Possible values: [invalid_parameter, content_filter_error, request_timeout, job_expired, job_cancelled, unexpected_error, service_unavailable]

    The error codes provide a way to programmatically handle errors.

    The following error codes are currently in use:

    • invalid_parameter: The request contained invalid parameters.
    • content_filter_error: The content was flagged by our content filter.
    • request_timeout: The request timed out while processing.
    • job_expired: The job has expired and is no longer available.
    • job_cancelled: The job was cancelled.
    • unexpected_error: An unexpected error occurred during processing.
    • service_unavailable: The service is temporarily unavailable.
Loading...