Open Inventory / Docs
EndpointsAiResourcesIdCover

Generate a square studio or transparent cover from an item image

The API runs on your application instance. Schemas and field names come directly from the OpenAPI specification. Session-authenticated requests require a session on that instance.

POST
/resources/{id}/cover

Authorization

bearerAuth
headerAuthorizationBearer <inv_ token>

Path Parameters

id*string
Formatuuid

Header Parameters

Idempotency-Key?string

UUID identifying one queue operation; safe to reuse for retries.

Formatuuid
X-Organization-ID?string

Organization membership selected for this request. User-bound credentials may select any active membership; standalone tokens may only repeat their pinned organization ID.

Formatuuid

Request Body

application/json
  1. body
sourceMediaId?string

Image to use as the visual reference. Defaults to the first non-AI image, then falls back to the first image.

Formatuuid
prompt?string

Optional replacement for the built-in studio or transparent-cover prompt. Omit it to use the matching server default.

Lengthlength <= 5000
modelId?string

An ID returned by GET /ai/image-models. Omit it to use the deployment default.

Lengthlength <= 240
maximumImageSize?integer

Maximum requested longest edge in pixels. Models use the largest supported standard square size at or below this value; transparent covers are capped at 2048 for safe processing.

Default1024
Value in102420484096
transparentBackground?boolean

When true, store a transparent PNG instead of an opaque JPEG.

Defaultfalse
transparencyMethod?string

Greenscreen uses one generated chroma-key pass. Difference matting uses aligned white and black passes for higher-quality alpha, including translucent details and soft shadows.

Default"difference-matting"
Value in"greenscreen""difference-matting"

Response Body

Cover generated or completed response replayed

Example Request
curl -X POST 'https://inventory.example.com/api/v1/resources/497f6eca-6276-4993-bfeb-53cbbbba6f08/cover' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
Empty