For the complete documentation index, see llms.txt. This page is also available as Markdown.

Orders

List Orders

get

Lists the orders for the current user with optional search and sorting.

Query Parameters:

  • q: Free-text search term applied to order name

  • sort: Sorting key (name, -name, date, -date). Defaults to -date (most recent first)

  • offset: Pagination offset token

  • per_page: Number of items per page

Authorizations
x-api-keystringRequired
Query parameters
offsetstringOptional

The offset token used to indicate which page of results to use.

Default: 0
per_pageinteger · max: 15Optional

The amount of items to be loaded per page of results. The final response may have a smaller number than requested if too large.

Default: 5
qstring · nullableOptional

Free-text search term applied to order name. If omitted or empty, no search filter is applied.

Default: null
sortstringOptional

Sorting key with optional '-' prefix for descending order. Allowed values: 'name' (sort by name ascending), '-name' (sort by name descending), 'date' (sort by created_at ascending), '-date' (sort by created_at descending). If omitted or invalid, defaults to '-date' (most recent first).

Default: -date
Responses
200

Successful response

application/json
get/v3/orders/
GET /v3/orders/ HTTP/1.1
Host: api:8080
x-api-key: YOUR_API_KEY
Accept: */*
{
  "orders": [
    {
      "created_at": "2026-01-01T00:00:00.000Z",
      "default_image_sort_order": "name",
      "images": [
        {
          "ai_version": "text",
          "cloud_type": "CLEAR",
          "date_added": 1,
          "downloaded": true,
          "enhance": true,
          "finetune_settings": {},
          "image_id": "123e4567-e89b-12d3-a456-426614174000",
          "image_name": "text",
          "lens_correction": true,
          "metadata": {
            "ANY_ADDITIONAL_PROPERTY": "anything"
          },
          "order_id": null,
          "parent_image_id": "text",
          "perspective_correction": true,
          "perspective_correction_mode": "OFF",
          "preset_id": null,
          "preset_version": null,
          "privacy": true,
          "rating": 1,
          "restage": {
            "fire_in_fireplaces": "AS_SHOT",
            "grass": "AS_SHOT",
            "photographer": "AS_SHOT",
            "sky": "AS_SHOT",
            "tvs": "AS_SHOT"
          },
          "scene": "text",
          "sky_replacement": true,
          "status": null,
          "status_reason": null,
          "tripod_hide": true,
          "upscale": true,
          "user_id": null,
          "window_pull_type": "NONE"
        }
      ],
      "is_deleted": true,
      "is_merging": true,
      "is_processing": true,
      "last_updated_at": "2026-01-01T00:00:00.000Z",
      "name": "text",
      "order_id": "text",
      "status": null,
      "total_images": 1
    }
  ],
  "pagination": {
    "next_offset": "text",
    "per_page": 5
  }
}

Create Order

post
Authorizations
x-api-keystringRequired
Body
default_image_sort_orderundefined · enumOptional

Default sort order for images in the order. Prefix with '-' for descending order.

Possible values:
namestringOptional

The name for the order.

order_idstring · min: 1Optional

The ID for the order.

Responses
200

Successful response

application/json
anyOptional
post/v3/orders/
POST /v3/orders/ HTTP/1.1
Host: api:8080
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 67

{
  "default_image_sort_order": "name",
  "name": "text",
  "order_id": "text"
}

No content

Retrieve Order

get

Retrieve a specific order. Images can be sorted using the sort_images_by parameter.

Path parameters
idstringRequired
Query parameters
sort_images_byundefined · enumOptional

Specifies sort order for images in the order

Possible values:
Responses
200

Successful response

application/json
created_atstring · date-timeOptional

The creation date of the order.

default_image_sort_orderundefined · enumOptional

Default sort order for images in the order.

Possible values:
is_deletedbooleanOptional

The status of the order.

is_mergingbooleanOptional

The processing status for the order

is_processingbooleanOptional

The processing status for the order

last_updated_atstring · date-timeOptional

The last updated date of the order.

namestringOptional

The name for the order.

order_idstringOptional

The ID for the order.

statusanyRead-onlyOptional

The status of the order.

total_imagesnumberOptional

Number of images in the order.

get/v3/orders/{id}
GET /v3/orders/{id} HTTP/1.1
Host: api:8080
Accept: */*
{
  "created_at": "2026-01-01T00:00:00.000Z",
  "default_image_sort_order": "name",
  "images": [
    {
      "ai_version": "text",
      "cloud_type": "CLEAR",
      "date_added": 1,
      "downloaded": true,
      "enhance": true,
      "finetune_settings": {},
      "image_id": "123e4567-e89b-12d3-a456-426614174000",
      "image_name": "text",
      "lens_correction": true,
      "metadata": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      },
      "order_id": null,
      "parent_image_id": "text",
      "perspective_correction": true,
      "perspective_correction_mode": "OFF",
      "preset_id": null,
      "preset_version": null,
      "privacy": true,
      "rating": 1,
      "restage": {
        "fire_in_fireplaces": "AS_SHOT",
        "grass": "AS_SHOT",
        "photographer": "AS_SHOT",
        "sky": "AS_SHOT",
        "tvs": "AS_SHOT"
      },
      "scene": "text",
      "sky_replacement": true,
      "status": null,
      "status_reason": null,
      "tripod_hide": true,
      "upscale": true,
      "user_id": null,
      "window_pull_type": "NONE"
    }
  ],
  "is_deleted": true,
  "is_merging": true,
  "is_processing": true,
  "last_updated_at": "2026-01-01T00:00:00.000Z",
  "name": "text",
  "order_id": "text",
  "status": null,
  "total_images": 1
}

Delete Order

delete

Deletes the specific order.

Authorizations
x-api-keystringRequired
Path parameters
idstringRequired
Responses
204

No Content

No content

delete/v3/orders/{id}
DELETE /v3/orders/{id} HTTP/1.1
Host: api:8080
x-api-key: YOUR_API_KEY
Accept: */*

No content

Update Order

patch

Updates the details for the specific order. Images can be sorted using the sort_images_by parameter.

Authorizations
x-api-keystringRequired
Path parameters
idstringRequired
Query parameters
sort_images_byundefined · enumOptional

Specifies sort order for images in the order

Possible values:
Body
default_image_sort_orderundefined · enumOptional

Default sort order for images in the order. Prefix with '-' for descending order.

Possible values:
namestringOptional

The name for the order.

order_idstring · min: 1Optional

The ID for the order.

Responses
200

Successful response

application/json
created_atstring · date-timeOptional

The creation date of the order.

default_image_sort_orderundefined · enumOptional

Default sort order for images in the order.

Possible values:
is_deletedbooleanOptional

The status of the order.

is_mergingbooleanOptional

The processing status for the order

is_processingbooleanOptional

The processing status for the order

last_updated_atstring · date-timeOptional

The last updated date of the order.

namestringOptional

The name for the order.

order_idstringOptional

The ID for the order.

statusanyRead-onlyOptional

The status of the order.

total_imagesnumberOptional

Number of images in the order.

patch/v3/orders/{id}
PATCH /v3/orders/{id} HTTP/1.1
Host: api:8080
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 67

{
  "default_image_sort_order": "name",
  "name": "text",
  "order_id": "text"
}
{
  "created_at": "2026-01-01T00:00:00.000Z",
  "default_image_sort_order": "name",
  "images": [
    {
      "ai_version": "text",
      "cloud_type": "CLEAR",
      "date_added": 1,
      "downloaded": true,
      "enhance": true,
      "finetune_settings": {},
      "image_id": "123e4567-e89b-12d3-a456-426614174000",
      "image_name": "text",
      "lens_correction": true,
      "metadata": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      },
      "order_id": null,
      "parent_image_id": "text",
      "perspective_correction": true,
      "perspective_correction_mode": "OFF",
      "preset_id": null,
      "preset_version": null,
      "privacy": true,
      "rating": 1,
      "restage": {
        "fire_in_fireplaces": "AS_SHOT",
        "grass": "AS_SHOT",
        "photographer": "AS_SHOT",
        "sky": "AS_SHOT",
        "tvs": "AS_SHOT"
      },
      "scene": "text",
      "sky_replacement": true,
      "status": null,
      "status_reason": null,
      "tripod_hide": true,
      "upscale": true,
      "user_id": null,
      "window_pull_type": "NONE"
    }
  ],
  "is_deleted": true,
  "is_merging": true,
  "is_processing": true,
  "last_updated_at": "2026-01-01T00:00:00.000Z",
  "name": "text",
  "order_id": "text",
  "status": null,
  "total_images": 1
}

Reorder Images

patch

Reorders images within an order. This endpoint allows you to set custom sort order for images using fractional indexing, which minimizes database updates.

If sort_images_by is provided in the query data, the images will first be sorted by that field, and then the custom reordering will be applied on top.

We use fractional indexing to handle the reordering, https://www.figma.com/blog/realtime-editing-of-ordered-sequences/

Authorizations
x-api-keystringRequired
Path parameters
idstringRequired
Query parameters
sort_images_byundefined · enumOptional

Specifies sort order for images in the order

Possible values:
Body
Responses
200

Successful response

application/json
imagesanyRead-onlyOptional

The list of images for the order.

patch/v3/orders/{id}/images
PATCH /v3/orders/{id}/images HTTP/1.1
Host: api:8080
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 72

{
  "images": [
    {
      "id": "image-id-1",
      "index": 0
    },
    {
      "id": "image-id-2",
      "index": 1
    }
  ]
}
{
  "images": null
}

Process Order

post

Triggers the grouping of any brackets contained in the order and process the final images in the order.

TODO: Ideally we use transactions to help deal with errors but it;s a pain with MongoEngine so need to do it as part of Django or other ORM

Authorizations
x-api-keystringRequired
Path parameters
idstringRequired
Body
ai_versionstringOptional

The version of the AI model to use for enhancing the image. Versions ending in an .x will use the latest minor version as soon as it's published.

cloud_typestring · enum · nullableOptional

The type of clouds in the new sky to replace the original sky with. Options include: CLEAR, LOW_CLOUD, HIGH_CLOUD

Possible values:
enhancebooleanOptional

Whether to enhance the image.

Default: true
finetune_settingsany ofOptional
object · nullableOptional
or
object · FinetuneOptionsOptional
lens_correctionbooleanOptional

Correct any lens distortion in the image.

Default: true
number_of_brackets_per_imageintegerOptional

If provided then group into an image after every specified number of brackets, if not provided or set to 0 then we automatically group based on visual analysis.

perspective_correctionbooleanOptional

Enable perspective correction to straighten vertical and horizontal lines in the image.

Default: true
perspective_correction_modestring · enum · nullableOptional

Controls how aggressively perspective correction is applied when enabled. Only used when perspective_correction is true. 'PRESERVE_CONTENT' prioritizes keeping original image contents intact with strict guardrails. 'PRIORITIZE_PERSPECTIVE' relaxes guardrails to enforce straight lines, accepting heavy cropping. If omitted, or explicitly sent as null, when perspective_correction is true, the AI uses its default behavior.

Possible values:
preset_idstring · nullableOptional
privacyboolean · nullableOptional

Whether to blur any faces or license plates in the image.

restageany ofOptional

Restage options for in-painting or modifying scene elements. Allows correcting details like lighting a fireplace, removing fingerprints from a TV screen, or removing unwanted items like tripods.

or
object · nullableOptional
sky_replacementbooleanOptional

Enable the replacement of the original sky for a summer sky.

tripod_hideboolean · nullableOptional

Whether to crop the bottom of 360-degree images to hide the tripod. Note: This performs a simple crop and does not use generative in-painting.

upscalebooleanOptional

Whether to upscale the image.

window_pull_typestring · enum · nullableOptional

What type of window pull to apply to the image (Available since AI version >= 4.0, WITH_SKIES can only be used from AI version 5.2 or higher).

Possible values:
Responses
200

Successful response

application/json
created_atstring · date-timeOptional

The creation date of the order.

default_image_sort_orderundefined · enumOptional

Default sort order for images in the order.

Possible values:
is_deletedbooleanOptional

The status of the order.

is_mergingbooleanOptional

The processing status for the order

is_processingbooleanOptional

The processing status for the order

last_updated_atstring · date-timeOptional

The last updated date of the order.

namestringOptional

The name for the order.

order_idstringOptional

The ID for the order.

statusanyRead-onlyOptional

The status of the order.

total_imagesnumberOptional

Number of images in the order.

post/v3/orders/{id}/process
POST /v3/orders/{id}/process HTTP/1.1
Host: api:8080
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 473

{
  "ai_version": "text",
  "cloud_type": "CLEAR",
  "enhance": true,
  "finetune_settings": {},
  "images": [
    {
      "bracket_ids": [
        "text"
      ]
    }
  ],
  "lens_correction": true,
  "number_of_brackets_per_image": 1,
  "perspective_correction": true,
  "perspective_correction_mode": "OFF",
  "preset_id": "text",
  "privacy": true,
  "restage": {
    "fire_in_fireplaces": "AS_SHOT",
    "grass": "AS_SHOT",
    "photographer": "AS_SHOT",
    "sky": "AS_SHOT",
    "tvs": "AS_SHOT"
  },
  "sky_replacement": true,
  "tripod_hide": true,
  "upscale": true,
  "window_pull_type": "NONE"
}
{
  "created_at": "2026-01-01T00:00:00.000Z",
  "default_image_sort_order": "name",
  "images": [
    {
      "ai_version": "text",
      "cloud_type": "CLEAR",
      "date_added": 1,
      "downloaded": true,
      "enhance": true,
      "finetune_settings": {},
      "image_id": "123e4567-e89b-12d3-a456-426614174000",
      "image_name": "text",
      "lens_correction": true,
      "metadata": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      },
      "order_id": null,
      "parent_image_id": "text",
      "perspective_correction": true,
      "perspective_correction_mode": "OFF",
      "preset_id": null,
      "preset_version": null,
      "privacy": true,
      "rating": 1,
      "restage": {
        "fire_in_fireplaces": "AS_SHOT",
        "grass": "AS_SHOT",
        "photographer": "AS_SHOT",
        "sky": "AS_SHOT",
        "tvs": "AS_SHOT"
      },
      "scene": "text",
      "sky_replacement": true,
      "status": null,
      "status_reason": null,
      "tripod_hide": true,
      "upscale": true,
      "user_id": null,
      "window_pull_type": "NONE"
    }
  ],
  "is_deleted": true,
  "is_merging": true,
  "is_processing": true,
  "last_updated_at": "2026-01-01T00:00:00.000Z",
  "name": "text",
  "order_id": "text",
  "status": null,
  "total_images": 1
}

Download Order Archive

post

Generates a zip archive of an order's images. Use the original, enhanced and restaged flags to choose which variants of each image to include — any combination is allowed. When no flag is set the archive contains the final restaged deliverable, preserving the behaviour of the legacy POST /orders//enhanced endpoint that aliases to this one.

Generation is asynchronous: the first call returns 202 while the archive is built, and subsequent calls 302-redirect to the finished zip.

Authorizations
x-api-keystringRequired
Path parameters
order_idstringRequired
Body
dpiinteger · min: 72Optional

DPI of the image, must at least be 72.

enhancedbooleanOptional

Include the enhanced (non-restaged) image in the archive.

Default: false
finetuneboolean · nullableOptional

Whether to apply finetuning to the image. Deprecated: use 'finetuned' instead.

Default: null
finetunedboolean · nullableOptional

Whether to apply finetuning to the image.

Default: null
formatstring · enumOptional

Format of the image, must be one of 'avif', 'png', 'jpeg', 'jxl', or 'webp'.

Possible values:
image_idsstring[]Optional

IDs of the images to retrieve.

Example: ["image-id-1","image-id-2"]
image_name_optionundefined · enumOptional

Naming convention for images in the export. 'image_name' uses the original image name, 'order_name' uses the order name with a numeric prefix for sortability.

Possible values:
max_widthinteger · min: 1Optional

Maximum width of the image in pixels. Must be a positive integer.

originalbooleanOptional

Include the original uploaded image in the archive.

Default: false
previewbooleanOptional

Whether to show a lower quality preview version.

qualityinteger · min: 1 · max: 90Optional

Quality of the image, must be between 1 and 90.

restagedbooleanOptional

Include the final restaged-if-available image in the archive.

Default: false
scalenumber · max: 1Optional

Scale factor for the image, must be between 0.0 and 1.0.

sort_images_byundefined · enumOptional

Sort images by field name. Prefix with '-' for descending order.

Possible values:
visible_disclosurebooleanOptional

Whether to overlay an AI disclosure label on the image.

Default: false
watermarkbooleanOptional

Whether to apply a watermark to the image.

Responses
200

Successful response

application/zip
string · binaryOptional
post/v3/orders/{order_id}/archive
POST /v3/orders/{order_id}/archive HTTP/1.1
Host: api:8080
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 301

{
  "dpi": 1,
  "enhanced": false,
  "finetune": true,
  "finetuned": true,
  "format": "avif",
  "image_ids": [
    "image-id-1",
    "image-id-2"
  ],
  "image_name_option": "image_name",
  "max_width": 1,
  "original": false,
  "preview": true,
  "quality": 1,
  "restaged": false,
  "scale": 1,
  "sort_images_by": "name",
  "visible_disclosure": false,
  "watermark": true
}
binary

Retrieve Order Brackets

get

Retrieves the brackets for a specific order by its unique identifier. If the order is not found, a 404 error is raised.

Args: order_id (str): The unique identifier of the order to retrieve brackets for.

Returns: Order: The retrieved order object containing brackets.

Raises: HTTPException: If the order is not found, a 404 error is raised.

Path parameters
order_idstringRequired
Responses
200

Successful response

application/json
get/v3/orders/{order_id}/brackets
GET /v3/orders/{order_id}/brackets HTTP/1.1
Host: api:8080
Accept: */*
{
  "brackets": [
    {
      "bracket_id": "text",
      "image_id": null,
      "is_uploaded": true,
      "metadata": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      },
      "name": "text",
      "order_id": null
    }
  ]
}

Last updated

Was this helpful?