Skip to main content
POST
Refine a job's mask with a SAM3 text prompt

Authorizations

X-Api-Key
string
header
required

API key with format vbr_ followed by 32 characters

Headers

Idempotency-Key
string

Unique request key; reuse only when retrying the same operation.

Required string length: 1 - 128
Pattern: ^[\x21-\x7e]+$

Path Parameters

id
string<uuid>
required

Completed job ID to refine

Body

application/json
prompt
object
required
op
enum<string>
default:add

Fuse mode — union (add) or difference (subtract)

Available options:
add,
subtract
model
enum<string>
default:videobgremover-pro

Segmentation model (must support text prompts)

Available options:
videobgremover-pro,
videobgremover-original
edge_cleanup
object

Optional VideoMaMa soft-alpha edge refinement on the fused mask (smooths the union seam). Same engine as edge_cleanup on the direct removal flow.

Response

Persisted refinement and its current status (including terminal status on replay)

refinement_id
string<uuid>
job_id
string<uuid>
status
string
Example:

"queued"

op
string
model
string
version
integer
credits_used
integer
created_at
string<date-time>