Skip to content

Reference images

Upload one PNG, JPEG or WebP with the signed-in account. The maximum size is 3,750,000 bytes and 2,000 pixels on each side.

터미널 창
curl -X POST "$COGGS_URL/api/reference-images" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: image/png" \
--data-binary @scene.png

The 201 response contains the digest (sha256), media type (type), byte count (bytes) and dimensions (width, height). Send the entire object as referenceImage in the JSON body of POST /api/runs or Patch at POST /api/runs/{id}/patch. Omit the field to start without an image.

To discard a draft attachment, send DELETE /api/reference-images/{sha256} using the same account. It returns 204. A run that already captured the image retains its copy.