Recuperare un job di rimozione dello sfondo
Interroga un job di rimozione dello sfondo per lo stato e, una volta completato, il PNG trasparente.
pending o
processing, continua a interrogare; una volta completed, la risposta include un
singolo oggetto risultato image — un PNG trasparente con un presigned url valido
per 24 ore. Un job in cache hit nasce completed con il suo risultato già
allegato. Sono visibili solo i job creati dalla tua organizzazione; qualsiasi altro
id restituisce 404 not_found. Richiede lo scope
images.transform.
Esempio: job completato
L’image è un oggetto risultato di formato derivato; per la rimozione dello sfondo,
model, width e height sono sempre null. Questo esempio è un cache hit, quindi
credits_used è 0 (un miss normale mostra 1):
Autorizzazioni
Organization API key as a bearer token: Authorization: Bearer samsa_sk_....
Parametri del percorso
Risposta
Successful Response
GET /images/background-removals/{id} body (SAM-820 / S8.8 — ADR §7.2).
The standard async-job envelope plus ONE nullable image result object (an
image_formats derivative — a transparent PNG — built by the S8.2 egress
builder; model/width/height are always null for background removal).
created_at is the job's submit time from the credit ledger (the
image_generation_tasks table has no created_at column). A cache-hit job is
born completed with a frozen result; a normal job progresses
pending → processing → completed/failed.
pending, processing, completed, failed, or cancelled.
pending, processing, completed, failed, cancelled "completed"
When the job was submitted.
Net credits charged for this job, after any refunds (0 for a cache hit).
1
The produced transparent PNG (presigned URL); null until completed.
Failure detail when status is failed; otherwise null.

