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> or x-api-key: <your key>.
Requests
JSON in and out. Send Content-Type: application/json with 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 true

  • limitinteger

    Max results per page.

    Default 50up to 250

  • cursorstring

    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 10

  • roomsstring

    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 true for catalogue use so AI rendering never alters the artwork itself. No effect in shadowMode: "css" (no AI call happens).

    Default false

  • shadowModestring

    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, hybridDefault css

  • featherPercentnumber

    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 when applyOverlay is false.

    Default 0.0750.01 to 0.25

  • formatstring

    File format of the returned image. jpeg for places that do not accept WebP, such as Etsy listings.

    One of webp, jpegDefault webp

Response

  • imageUrlstring (uri)

    Public URL of the generated mockup: WebP, or JPEG when format is jpeg.

  • mockupIdstring (uuid)

    Database ID of the saved mockup.

  • typestring

    One of composite

  • positionPosition

  • 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 2

  • maxEdgeinteger

    Longest edge of the picture in pixels.

    Default 1600400 to 2048

  • formatstring

    File format of the returned image. jpeg for places that do not accept WebP, such as Etsy listings.

    One of webp, jpegDefault webp

Response

  • imageUrlstring (uri)

    Public URL of the scale view: WebP, or JPEG when format is jpeg.

  • typestring

    One of scale

  • dimensionsDimensions

  • 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.

  • UNAUTHORIZED
  • FORBIDDEN
  • VALIDATION_ERROR
  • BACKGROUND_NOT_FOUND
  • NO_BACKGROUNDS_AVAILABLE
  • ARTWORK_FETCH_FAILED
  • PAYLOAD_TOO_LARGE
  • USAGE_LIMIT_EXCEEDED
  • RATE_LIMITED
  • PROVIDER_ERROR
  • INTERNAL_ERROR