API reference
Make mockups of your artworks from your own website or catalogue software (what it’s for). API access comes with an Enterprise plan, and your key is on the API access page.
- Base URL
https://situ.art/api/v1- Authentication
- Send your key with every request as
Authorization: Bearer <your key>orx-api-key: <your key>. - Requests
- JSON in and out. Send
Content-Type: application/jsonwith a request body. - For tools
- The OpenAPI 3.1 spec can be imported into your API client or given to your AI assistant.
List available backgrounds
GET /backgrounds
Returns backgrounds available for mockup generation. Use the id field when calling the mockup endpoints.
Query parameters
categorystring
Filter by category (e.g. gallery, contemporary, grand, eclectic).
shortliststring
Only return the rooms on your shortlist (set on the API page): the ones select-backgrounds picks from with "rooms": "shortlist". Returned in one page; category, limit and cursor are ignored.
One of
truelimitinteger
Max results per page.
Default
50up to 250cursorstring
Pagination cursor from a previous response.
Response
backgroundsarray of Background
backgrounds[].idstring (uuid)
backgrounds[].namestring
backgrounds[].categorystring or null
backgrounds[].thumbnailUrlstring (uri)
backgrounds[].hasPositioningDataboolean
Whether auto-positioning is available for this background.
backgrounds[].zoomRationumber or null
totalCountinteger
nextCursorstring or null
Errors
- 401
- Unauthorized
Get ranked, varied backgrounds for an artwork
POST /mockups/select-backgrounds
Returns a ranked, varied list of background IDs, scored to fit the given artwork dimensions, from your room shortlist or the whole library (rooms). Deterministic per (artwork, rooms); the library gains rooms over time, so cache the result on your side keyed by artwork id. Length can be < count if fewer qualifying backgrounds exist — iterate over backgroundIds.length.
Request body
artworkWidthCmnumberRequired
Physical width of the artwork in centimetres.
0.1 to 500
artworkHeightCmnumberRequired
Physical height of the artwork in centimetres.
0.1 to 500
countinteger
Maximum number of background IDs to return. Response array may be shorter if few rooms are used or the artwork is large.
Default
51 to 10roomsstring
Where to pick from: "shortlist", the rooms on your shortlist (set on the API page), or "library", the whole library. Left out: your shortlist if you have one, otherwise the whole library.
One of
library,shortlist
Response
backgroundIdsarray of string (uuid)
Errors
- 400
- Validation error
- 401
- Unauthorized
- 422
- No room fits the artwork, or "rooms": "shortlist" with an empty shortlist
- 429
- Rate limited
Generate a quick composite mockup
POST /mockups/composite
Places artwork on a background at the correct scale. Fast, and does not use AI credits.
Request body
artworkImagestringRequired
Artwork as a base64 data URL or a publicly accessible URL. Max 10 MB.
backgroundIdstring (uuid)Required
A background ID from GET /backgrounds or POST /mockups/select-backgrounds: any library room, or one of your own rooms on your shortlist.
artworkWidthCmnumberRequired
Physical width of the artwork in centimetres.
0.1 to 500
artworkHeightCmnumberRequired
Physical height of the artwork in centimetres.
0.1 to 500
xOffsetnumber or null
Horizontal offset. null or omit for auto-positioning.
-50 to 50
yOffsetnumber or null
Vertical offset. null or omit for auto-positioning.
-50 to 50
applyOverlayboolean
When true, re-composites the original artwork pixel-perfectly on top of the AI output. Recommended
truefor catalogue use so AI rendering never alters the artwork itself. No effect inshadowMode: "css"(no AI call happens).Default
falseshadowModestring
css(default): server renders a rectangular shadow, no AI call. Fast/free/deterministic.llm: AI generates the shadow from scratch — conforms to ornate frames, ~$0.02, ~15s.hybrid: CSS shadow baked as intensity reference, AI refines shape — ~$0.02, ~15s.One of
css,llm,hybridDefaultcssfeatherPercentnumber
Alpha-gradient softness applied to the artwork edge when
applyOverlay: true. Lower = crisper frame edge but more visible seam; higher = softer blend at the cost of fading the outer frame. No effect whenapplyOverlayis false.Default
0.0750.01 to 0.25formatstring
File format of the returned image.
jpegfor places that do not accept WebP, such as Etsy listings.One of
webp,jpegDefaultwebp
Response
imageUrlstring (uri)
Public URL of the generated mockup: WebP, or JPEG when
formatisjpeg.mockupIdstring (uuid)
Database ID of the saved mockup.
typestring
One of
compositepositionPosition
position.xOffsetnumber
Horizontal offset used (-50 to 50).
position.yOffsetnumber
Vertical offset used (-50 to 50).
position.wasAutoPositionedboolean
Whether the position was automatically calculated.
dimensionsDimensions
dimensions.widthinteger
Output width in pixels.
dimensions.heightinteger
Output height in pixels.
Errors
- 400
- Validation error
- 401
- Unauthorized
- 404
- Background not found
- 413
- Artwork too large
- 422
- Artwork fetch failed
- 429
- Rate limited
Show the artwork beside a person, to scale
POST /mockups/scale
Hangs the artwork on a plain wall beside a standing woman 162 cm tall, both at true scale, so a buyer sees its size at a glance. The work hangs with its centre 139 cm up, raised for a tall work so its bottom edge stays 30 cm off the floor. Fast, and does not use AI credits.
Request body
artworkImagestringRequired
Artwork as a base64 data URL or a publicly accessible URL. Max 10 MB.
artworkWidthCmnumberRequired
Physical width of the artwork in centimetres.
0.1 to 500
artworkHeightCmnumberRequired
Physical height of the artwork in centimetres.
0.1 to 500
aspectnumber
Width over height of the picture: 0.75 (3:4 portrait) by default, 1.5 for 3:2 landscape.
Default
0.750.5 to 2maxEdgeinteger
Longest edge of the picture in pixels.
Default
1600400 to 2048formatstring
File format of the returned image.
jpegfor places that do not accept WebP, such as Etsy listings.One of
webp,jpegDefaultwebp
Response
imageUrlstring (uri)
Public URL of the scale view: WebP, or JPEG when
formatisjpeg.typestring
One of
scaledimensionsDimensions
dimensions.widthinteger
Output width in pixels.
dimensions.heightinteger
Output height in pixels.
Errors
- 400
- Validation error
- 401
- Unauthorized
- 413
- Artwork too large
- 422
- Artwork fetch failed
- 429
- Rate limited
Errors
A request that fails returns its HTTP status and a JSON body with a readable error and one of these code values.
UNAUTHORIZEDFORBIDDENVALIDATION_ERRORBACKGROUND_NOT_FOUNDNO_BACKGROUNDS_AVAILABLEARTWORK_FETCH_FAILEDPAYLOAD_TOO_LARGEUSAGE_LIMIT_EXCEEDEDRATE_LIMITEDPROVIDER_ERRORINTERNAL_ERROR