﻿---
title: Cost and models
description: Find out what Elastic nightshift costs, what drives the cost, how to keep it predictable, which models it uses, and what happens to your data.
url: https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9659/solutions/observability/nightshift/cost-and-models
products:
  - Elastic Cloud Serverless
  - Elastic Documentation
  - Elastic Observability
applies_to:
  - Serverless Observability projects: Preview
---

# Cost and models
Elastic nightshift is billed by the AI model tokens it uses. In Elastic's testing, a typical investigation costs about $1.50, and detection costs a few dollars per day. Daily run limits keep the total predictable, and you can lower them at any time.
This page also explains which models Elastic nightshift uses, and what happens to your data.

## What you're billed for

Elastic nightshift sends its model calls through the [Elastic Inference Service (EIS)](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9659/explore-analyze/elastic-inference/eis). EIS bills per million tokens, for both input and output. Tokens are the units that a model reads and writes: your question, the data that Elastic nightshift queries, its reasoning, and its answer all count.
The token cost appears on your Elastic Observability Serverless bill. For rates, refer to [EIS pricing](/elastic/docs-content/pull/9659/explore-analyze/elastic-inference/eis#pricing) and [Elastic Observability Serverless billing dimensions](/elastic/docs-content/pull/9659/deploy-manage/cloud-organization/billing/elastic-observability-billing-dimensions#observability-billing-elastic-managed-llms).
Workflow executions that Elastic nightshift runs aren't billed separately. You pay only for the tokens.

## Typical cost

These figures come from Elastic's testing. Your cost depends on your data and how you use Elastic nightshift.
- **One investigation**: About $1.50
- **Detection**: A few dollars per day
- **A follow-up question in chat**: Usually a few cents, depending on the model you pick in chat

For example, with the default run limits, at most 10 investigations start each day. At the typical cost, that's about $15 per day for investigations, plus detection.
Your cost goes up with data volume, the number of detection sources, follow-ups, and investigation length: an investigation that tests many hypotheses or reads a lot of code uses more tokens than one that finds the cause quickly.
Context works the other way: because investigations start from what Elastic nightshift already learned about your system, they spend fewer tokens on finding indices, services, and dependencies again. Refer to [How Elastic nightshift builds context](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9659/solutions/observability/nightshift/context).

## What uses tokens


| Activity                              | When it runs                                                                                                                                                                                                   | How to limit it                                                                            |
|---------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------|
| Investigations that you start         | When you select **Investigate** on the home page, an alert, or a significant event. Each `@Elastic` mention that opens a new conversation in Slack also counts, even though it doesn't start an investigation. | **Manual investigations daily limit**                                                      |
| Investigations that automations start | When an automation's trigger fires                                                                                                                                                                             | **Automatic investigations daily limit**, and each automation's **Daily trigger limit**    |
| Follow-up questions                   | When you ask in chat or in the Slack thread                                                                                                                                                                    | Not limited                                                                                |
| Knowledge Indicator extraction        | When you add a source, generate KIs, or continuous KI onboarding runs                                                                                                                                          | **Knowledge indicators extraction daily limit**, fewer sources, longer onboarding interval |
| Detection discovery                   | On the detection schedule                                                                                                                                                                                      | **Discovery daily limit**, fewer or narrower sources                                       |

For the cost profile of each detection phase, refer to [Cost drivers](/elastic/docs-content/pull/9659/solutions/observability/nightshift/significant-events/operator-guide#sig-events-op-costs) in the operator guide.

## Keep your cost under control

Start with the defaults, then use the controls in the previous table: [Run limits](/elastic/docs-content/pull/9659/solutions/observability/nightshift/settings#nightshift-settings-run-limits), [Detection run limits](/elastic/docs-content/pull/9659/solutions/observability/nightshift/settings#nightshift-settings-detection-limits), [sources](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9659/solutions/observability/nightshift/detection/sources), and [Continuous KI onboarding](/elastic/docs-content/pull/9659/solutions/observability/nightshift/settings#nightshift-settings-ki-onboarding). Also:
- **Turn off a noisy automation**, or lower its **Daily trigger limit**. Refer to [Automations](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9659/solutions/observability/nightshift/investigation/automations).
- **Pause detection.** Stops all detection cost in the space until you resume it. Refer to [Pause or resume detection](/elastic/docs-content/pull/9659/solutions/observability/nightshift/settings#nightshift-settings-pause).


## Monitor your cost

Your bill is the source of truth. To check your token use, go to [**Billing** → **Usage**](https://cloud.elastic.co/billing/usage) in the Elastic Cloud console and look for line items with the **Inference** billing dimension. Refer to [Monitor your token usage](/elastic/docs-content/pull/9659/explore-analyze/elastic-inference/eis#monitor-your-token-usage).
Elastic nightshift can also show an estimate of its own cost. To turn it on, you need the privileges to open **Settings** and permission to save Advanced Settings. Refer to [Grant access](/elastic/docs-content/pull/9659/solutions/observability/nightshift/privileges#nightshift-privileges-admin).
1. On the Elastic nightshift home page, open the `boxes_vertical` menu and select **Settings**.
2. On the **General** tab, turn on **Enable nightshift developer mode**. Refer to [Developer mode](/elastic/docs-content/pull/9659/solutions/observability/nightshift/settings#nightshift-settings-developer-mode).
3. Select the **Detections** tab, and scroll to **Advanced developer settings**.
4. In **Approximate inference cost across all spaces**, turn on **Enable token tracking in this space**.
5. Select **Save changes**.

The estimate shows the cost for **Today** and **This month**, split into **Discovery**, **Investigation**, and **KI extraction**. Select **Refresh** to update it. It counts only calls made while tracking is on, so right after you turn it on, it shows **No recorded calls**.
The estimate covers all spaces in the deployment, and it's approximate. It uses EIS list prices, and leaves out embedding and reranking calls, cache-write tokens, and calls that fail before their tokens are recorded. Turning tracking on or off doesn't change what you pay.

## Models

Elastic picks the models that Elastic nightshift uses, and runs them through EIS. You don't need to set up an LLM connector, and you can't change the models that investigations and scheduled detection use. Elastic picks a model for each step, and can change these models over time.
The model picker in the Agent Builder chat applies only to your follow-up questions in that chat. It doesn't change investigations.
Elastic plans to offer on-premises deployment options for Elastic nightshift in 2027, which might include a choice of model. This is a plan, not a commitment, and it can change.
EIS routes each request to the nearest region where it runs. To keep requests in certain regions, refer to [Region and hosting](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9659/explore-analyze/elastic-inference/eis-region-and-hosting).

## Your data and Elastic nightshift

This section explains what Elastic nightshift reads, what it sends to models, and what it keeps. For how Elastic handles data in its AI features, refer to the [data and AI FAQ](https://www.elastic.co/trust/faq#data-ai) in the Elastic Trust Center.
<definitions>
  <definition term="Where it runs">
    Your data stays in your Elastic Observability Serverless project, except the excerpts that Elastic nightshift sends to models. Models run only through EIS: you can't bring your own model, and there's no air-gapped option.
  </definition>
  <definition term="What it reads">
    Investigations reach your data and code through the connectors in the space, with the credentials stored in each connector. Detection reads the data that your detection sources select. Refer to [Privileges that Elastic nightshift runs with](/elastic/docs-content/pull/9659/solutions/observability/nightshift/privileges#nightshift-privileges-accounts).
  </definition>
  <definition term="What it sends to models">
    To investigate, Elastic nightshift sends your question or alert, the results of its queries, excerpts of logs, metrics, and traces, code it reads, Slack messages in the thread, and messages it reads from connected public Slack channels to a model through EIS. Detection sends samples of the logs in your sources.
  </definition>
  <definition term="Model providers">
    Depending on the model, EIS processes requests on Elastic infrastructure or with trusted third-party model providers. Refer to [Supported models](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9659/explore-analyze/elastic-inference/eis-supported-models).
  </definition>
  <definition term="What it stores">
    Investigations, the Wiki, Memory, decision trees, Knowledge Indicators, rules, and significant events are stored in your project, in the space where Elastic nightshift runs. Results that automations post to Slack, and `@Elastic` answers, are also stored in Slack.
  </definition>
  <definition term="Your code">
    When an investigation needs code, it clones the repository into a temporary sandbox, searches it, and discards it when the investigation ends. Elastic nightshift doesn't copy, sync, or index your repositories. The sandbox can only reach the hosts of your connectors and the hosts on the [sandbox egress allowlist](/elastic/docs-content/pull/9659/solutions/observability/nightshift/settings#nightshift-settings-egress).
  </definition>
  <definition term="Who can read it">
    Everyone with the **Read** privilege for Elastic nightshift in the space can read its investigations, Wiki, and Memory. Everyone in a connected Slack channel can ask `@Elastic` and read its answers. Those answers come from what the service account and connectors can reach, not from the permissions of the person who asks.
  </definition>
  <definition term="Changes to your environment">
    Elastic nightshift reads and proposes. It doesn't change your systems: a person decides whether to apply each proposed action, and applies it.
  </definition>
  <definition term="Deleting data">
    An Agent Builder admin can delete an investigation from its `boxes_vertical` menu on the home page. Investigations can't be archived. Delete a memory on the **Memory** tab. Wiki pages can be archived, not deleted. In [developer mode](/elastic/docs-content/pull/9659/solutions/observability/nightshift/settings#nightshift-settings-developer-mode), you can purge everything that Elastic nightshift learned after a point in time. Snapshots can still hold deleted documents.
  </definition>
</definitions>


## Learn more

- [Settings and limits](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9659/solutions/observability/nightshift/settings): Change the limits that keep your cost predictable.
- [Investigation limits](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9659/solutions/observability/nightshift/investigation/limits): Find out what happens when a limit is reached.
- [Limitations](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9659/solutions/observability/nightshift/known-issues): Check the Tech Preview limits on cost controls.