Skip to main content
GET
Get an image job

Authorizations

Authorization
string
header
required

Send your API key as Authorization: Bearer <API key>. Keys begin with sk-. A missing or invalid key answers 401 UNAUTHENTICATED. Never expose an API key in browser code.

Headers

X-Request-Id
string

Optional caller-supplied correlation ID, echoed as sent in the response header. Omit it and the service generates one. Use it for tracing and support.

Minimum string length: 1

Path Parameters

image_id
string
required

Public image job ID (img_ prefix) returned by POST /v1/images. It must have been created with the calling API key.

Minimum string length: 1

Response

Current image generation state.

An image generation job (img_ prefix), returned by both POST /v1/images and GET /v1/images/{image_id}. It only moves forward — queued → processing → ready or failed — and is never cancelled. images stays empty until the job is ready, then lists every generated image in request order. A job either produces all n images or fails; it never returns a partial set.

id
string
required

Public image job ID, img_ prefix.

Minimum string length: 1
status
enum<string>
required

Lifecycle state. ready and failed are terminal.

Available options:
queued,
processing,
ready,
failed
model
string
required

Model that ran the job, viggle-image.

progress
integer | null
required

Share of the requested images generated so far — 0 while queued, 0–99 while processing, 100 when ready, null when failed.

Required range: 0 <= x <= 100
images
object[]
required

Empty until ready, then all n generated images in request order.

created_at
string<date-time> | null
required

Creation timestamp, RFC 3339.

completed_at
string<date-time> | null
required

Terminal-state timestamp; set once the job is ready or failed, null before that.

error
object | null
required

Failure details, only when status is failed; otherwise null. code is SERVICE_BUSY (retryable — the generation service is busy or unavailable, or the job did not finish within 15 minutes), TASK_FAILED (retryable — any other generation or upload failure), or INVALID_REQUEST (not retryable — the model rejected the request, for example an unusable reference image).