Interface SignageAIJob

An image generation or edit job

interface SignageAIJob {
    candidates: number;
    cost_units?: number;
    created_at?: number;
    error_kind?: string;
    error_message?: string;
    finished_at?: number;
    id: string;
    images: (null | SignageAIImage)[];
    images_produced: number;
    kind: SignageAIJobKind;
    latency_ms?: number;
    model?: string;
    parent_job_id?: string;
    prompt?: string;
    provider?: SignageAIProviderType;
    state: SignageAIJobState;
    version: number;
}

Properties

candidates: number

Number of candidates asked for

cost_units?: number

Vendor spend attributed to the job

created_at?: number

Unix epoch in seconds at which the job was accepted

error_kind?: string

Class of failure, when the job failed

error_message?: string

Description of the failure, when the job failed

finished_at?: number

Unix epoch in seconds at which the job stopped

id: string

ID of the job

images: (null | SignageAIImage)[]

Candidate slots in order, null until that candidate lands

images_produced: number

Number of candidates that have landed so far

Whether the job generates or edits

latency_ms?: number

Time the job took, in milliseconds

model?: string

Model the job was sent to

parent_job_id?: string

ID of the job this one refines, when it is a refine

prompt?: string

Brief the user asked for

Vendor the job was sent to

Lifecycle state of the job

version: number

Bumped on every change to the job. Pass it back as since when long polling so the request only returns once something new has landed