> For the complete documentation index, see [llms.txt](https://docs.autoenhance.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.autoenhance.ai/images/basic-enhancements/restaging/day-to-dusk.md). Agents can also search and read this documentation through its [MCP server](https://docs.autoenhance.ai/~gitbook/mcp).

# Day to Dusk

Turn a daytime exterior into a dusk or twilight shot

Turns a daytime exterior into a dusk (twilight) shot, with the sky and lighting changed to match. Day to Dusk is a premium edit: it is applied to an image that has already been processed, and it produces a new image rather than changing the original.

**Parent Property Name:** `restage`

**Sub-property:** `environment`

**Accepted Values:** <mark style="color:blue;">string</mark> | <mark style="color:blue;">null</mark>

**Values:**

* `AS_SHOT`: Leaves the scene exactly as captured.
* `DUSK`: Transforms a daylight scene so it appears as dusk or twilight.

**Default:** `AS_SHOT`

**Example:**

```json
{
  "restage": {
    "environment": "DUSK"
  }
}
```

## How it works

Day to Dusk differs from the other restaging options in three ways:

* **It is requested on an existing image.** Send `environment: DUSK` when updating an image that has finished processing. It cannot be set when you create an image or process an order. Doing so returns a `422` with the error code `PREMIUM_RESTAGE_ON_INITIAL_PROCESSING`.
* **It creates a new image.** The original is never modified. The response is the original image, with status `201` and a `Location` header pointing at the new image. The new image has its own `image_id` and a `parent_image_id` that refers back to the original.
* **It does not reprocess the original.** The original keeps its standard enhancement, so you can compare the two.

You can send `finetune_settings` or `preset_id` in the same request to control how the new image is finished. Other settings in the same request, such as `ai_version`, would reprocess the original instead of creating a dusk image, so send Day to Dusk on its own.

## Billing

Day to Dusk is billed through its own add-on on your subscription, not from your plan's image credits. Downloading a Day to Dusk image does not use a credit, and it can still be downloaded if your account has no credits left. If your subscription has been cancelled, downloading a Day to Dusk image returns `402`.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.autoenhance.ai/images/basic-enhancements/restaging/day-to-dusk.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
