﻿---
title: Elasticsearch Serverless billing dimensions
description: Learn about how costs for Elasticsearch Serverless projects are calculated, and strategies you can use to lower your costs.
url: https://www.elastic.co/elastic/docs-builder/docs/2541/deploy-manage/cloud-organization/billing/elasticsearch-billing-dimensions
products:
  - Elastic Cloud Serverless
applies_to:
  - Serverless Elasticsearch projects: Generally available
---

# Elasticsearch Serverless billing dimensions
Elasticsearch Serverless projects are priced based on consumption of the underlying infrastructure that supports your use case with the performance characteristics you need.
Measurements are in virtual compute units (VCUs).
Each VCU represents a fraction of RAM, CPU, and local disk for caching.
The number of VCUs you need is determined by:
- Volume and ingestion rate of your data
- Data retention requirements
- Search query volume
- Search Power setting
- Machine learning usage

For detailed Elasticsearch Serverless project rates, refer to the [Elasticsearch Serverless pricing page](https://www.elastic.co/pricing/serverless-search).

## VCU types: search, indexing, and ML

Elasticsearch Serverless uses the following VCU types:
- **Indexing:** The VCUs used to index incoming documents. Indexing VCUs account for compute resources consumed for ingestion. This is based on ingestion rate and amount of data ingested at any given time. Transforms and ingest pipelines also contribute to ingest VCU consumption.
- **Search:** The VCUs used to return search results with the latency and queries per second (QPS) you require. Search VCUs are calculated as a factor of the compute resources needed to run search queries, search throughput, and latency. Search VCUs are not charged per search request. Instead, they are a factor of the compute resources that scale up and down based on amount of searchable data, search load (QPS), and performance (latency and availability).
- **Machine learning:** The VCUs used to perform inference, NLP tasks, and other ML activities. ML VCUs are a factor of the models deployed and number of ML operations such as inference for search and ingest. ML VCUs are typically consumed for generating embeddings during ingestion and during semantic search or reranking.
- **Tokens:** [The Elastic Inference Service](https://www.elastic.co/docs/explore-analyze/elastic-inference/eis) is charged based on tokens used with machine learning models. For embeddings and rerankers, usage is billed per million input tokens sent to the models. For LLMs, this is either per 1 million input or per 1 million output tokens. Elastic Managed LLMs can power all AI Search features (such as Playground and AI Assistant for Search), as well as features in the Security and Observability products, and are enabled by default.


## Data storage and billing

Elasticsearch Serverless projects store data in the [Search AI Lake](/elastic/docs-builder/docs/2541/deploy-manage/deploy/elastic-cloud/project-settings#elasticsearch-manage-project-search-ai-lake-settings). You are charged per GB of stored data at rest. Note that if you perform operations at ingest such as vectorization or enrichment, the size of your stored data will differ from the size of the original source data.

## Managing Elasticsearch costs

You can control costs using the following strategies:
- **Search Power setting**: [Search Power](/elastic/docs-builder/docs/2541/deploy-manage/deploy/elastic-cloud/project-settings#elasticsearch-manage-project-search-power-settings) controls the speed of searches against your data. With Search Power, you can improve search performance by adding more resources for querying or you can reduce provisioned resources to cut costs.
- **Search boost window**: By limiting the number of days of [time series data](/elastic/docs-builder/docs/2541/solutions/search/ingest-for-search#elasticsearch-ingest-time-series-data) that are available for caching, you can reduce the number of search VCUs required.
- **Machine learning trained model autoscaling**: [Trained model autoscaling](https://www.elastic.co/elastic/docs-builder/docs/2541/deploy-manage/autoscaling/trained-model-autoscaling) is always enabled and cannot be disabled, ensuring efficient resource usage, reduced costs, and optimal performance without manual configuration.
  Trained model deployments automatically scale down to zero allocations after 24 hours without any inference requests. When they scale up again, they remain active for 5 minutes before they can scale down. During these cooldown periods, you will continue to be billed for the active resources.
- **Indexing strategies**: Consider your indexing strategies and how they might impact overall VCU usage and costs.
  To ensure optimal performance and cost-effectiveness for your project, it's important to consider how you structure your data.
  Consolidate small indices for better efficiency.
  In general, avoid a design where your project contains hundreds of very small indices, specifically those under 1GB each.
  Avoiding small indices is important because every index in Elasticsearch has a certain amount of resource overhead.
  Elasticsearch needs to maintain metadata for each index to keep it running smoothly.
  When you have a very large number of small indices, the combined overhead from all of them can consume more CPU resources than if the same data were stored in fewer, larger indices.
  Higher resource consumption can lead to higher costs and potentially impact the overall performance of your project.
  If your use case naturally generates many small, separate streams of data, the recommended approach is to implement a process to consolidate them into fewer, larger indices. This practice leads to more efficient resource utilization. By grouping your data into larger indices, you can ensure a more performant and cost-efficient experience with Elasticsearch Serverless.
- **Project subtype or profile**: When you use the [API](https://www.elastic.co/docs/api/doc/elastic-cloud-serverless/operation/operation-createelasticsearchproject) to create projects, be aware that the `optimized_for` option affects the VCU allocation and costs.
  The `general_purpose` option is suitable for most search use cases. For example, it is the right profile for full-text search, sparse vectors, and dense vectors that use compression such as BBQ. It is used by default when you create projects from the UI.
  The `vector` option is recommended only for uncompressed dense vectors ([dense_vector](https://docs-v3-preview.elastic.dev/elastic/docs-builder/docs/2541/reference/elasticsearch/mapping-reference/dense-vector) fields with `int4` or `int8` quantization strategies) and high dimensionality. Though the per VCU cost is the same for general purpose and vector profiles, the latter allocates more VCUs for searchable data. This leads to higher VCU consumption in order to improve the performance for uncompressed vector data.