﻿---
title: Elastic Inference Service
description: Use Elastic Inference Service (EIS) to run inference for search, embeddings, and chat without deploying models in your environment.
url: https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9383/explore-analyze/elastic-inference/eis
products:
  - Elastic Cloud Enterprise
  - Elastic Cloud on Kubernetes
  - Elastic Documentation
  - Elastic Stack
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available
---

# Elastic Inference Service
Elastic Inference Service (EIS) enables you to leverage AI-powered search as a service without deploying a model in your environment.
With EIS, you don't need to manage the infrastructure and resources required for machine learning inference by adding, configuring, and scaling machine learning nodes.
Instead, you can use machine learning models for ingest, search, and chat independently of your Elasticsearch infrastructure.
<applies-to>Elastic Stack: Generally available since 9.3</applies-to> You can use EIS with your [Elastic Cloud Enterprise](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9383/deploy-manage/deploy/cloud-enterprise), [Elastic Cloud on Kubernetes](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9383/deploy-manage/deploy/cloud-on-k8s), or [self-managed](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9383/deploy-manage/deploy/self-managed) cluster through Cloud Connect. For details, refer to [Elastic Inference Service for Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed clusters](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9383/explore-analyze/elastic-inference/connect-self-managed-cluster-to-eis).

## AI features powered by EIS

- Your Elastic deployment or project comes with [Elastic Managed LLMs](https://www.elastic.co/docs/reference/kibana/connectors-kibana/elastic-managed-llm) by default. These can be used in Agent Builder, the AI Assistant, Attack Discovery, and Automatic Import. For the list of available models, refer to [Supported models](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9383/explore-analyze/elastic-inference/eis-supported-models).
- Search Playground also uses Elastic Managed LLMs. <applies-to>Elastic Stack: Planned for removal, Elastic Stack: Deprecated from 9.4 to 9.5, Elastic Stack: Beta from 9.1 to 9.3, Elastic Stack: Preview in 9.0</applies-to> <applies-to>Elastic Cloud Serverless: Unavailable</applies-to>
- You can use [ELSER](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9383/explore-analyze/machine-learning/nlp/ml-nlp-elser) to perform semantic search as a service (ELSER on EIS). <applies-to>Elastic Stack: Generally available since 9.2, Elastic Stack: Preview in 9.1</applies-to> <applies-to>Elastic Cloud Serverless: Generally available</applies-to>
- You can use the [`jina-embeddings-v3`](/elastic/docs-content/pull/9383/explore-analyze/machine-learning/nlp/ml-nlp-jina#jina-text-embeddings) multilingual dense vector embedding model to perform semantic search through the Elastic Inference Service. <applies-to>Elastic Stack: Preview since 9.3</applies-to> <applies-to>Elastic Cloud Serverless: Preview</applies-to>


## Manage your models

Kibana provides interfaces for managing EIS models and endpoints.
<applies-switch>
  <applies-item title="{ stack: ga 9.4+, serverless: ga }" applies-to="Elastic Cloud Serverless: Generally available, Elastic Stack: Generally available since 9.4">
    Go to the **Elastic inference** page by using the navigation menu or the [global search field](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9383/explore-analyze/find-and-organize/find-apps-and-objects).
    ![Elastic Inference UI](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9383/explore-analyze/images/eis-ui.png)

    <tip>
      To access **Elastic inference**, you need the `Inference Endpoints: all` and `Advanced Settings: read` Kibana privileges.
    </tip>
  </applies-item>

  <applies-item title="stack: ga 9.0-9.3" applies-to="Elastic Stack: Generally available from 9.0 to 9.3">
    Go to the **Inference endpoints** page by using the navigation menu or the [global search field](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9383/explore-analyze/find-and-organize/find-apps-and-objects).
    ![Inference endpoints UI](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9383/explore-analyze/images/kibana-inference-endpoints-ui.png)
  </applies-item>
</applies-switch>

Available actions include:
- Add endpoints
- View endpoint details
- Copy the inference endpoint ID
- Delete endpoints
- <applies-to>Elastic Stack: Generally available since 9.5</applies-to> <applies-to>Elastic Cloud Serverless: Generally available</applies-to> [Region preferences](/elastic/docs-content/pull/9383/explore-analyze/elastic-inference/eis-region-and-hosting#inference-region-preferences) for where EIS processes inference requests
- <applies-to>Elastic Cloud Serverless: Generally available</applies-to> <applies-to>Elastic Stack: Planned</applies-to> [Show or hide models](#eis-display-options) that are in preview, past end of life, or outside your region preferences
- <applies-to>Elastic Cloud Serverless: Generally available</applies-to> <applies-to>Elastic Stack: Planned</applies-to> Find models available in specific geographies or regions with the **Region** filter on the toolbar. The filter doesn't change where EIS processes inference requests, which [region preferences](/elastic/docs-content/pull/9383/explore-analyze/elastic-inference/eis-region-and-hosting#inference-region-preferences) control. Models that are [hidden by default](#eis-display-options) stay hidden unless you show them.
- <applies-to>Elastic Cloud Serverless: Generally available</applies-to> <applies-to>Elastic Stack: Planned</applies-to> Find models by what they do with the **Model type** filter on the toolbar.

<tip applies-to="Elastic Cloud Serverless: Generally available, Elastic Stack: Planned">
  To find a model faster, filter the list by model type or region, sort the model cards by name or release date, or [show models that are hidden by default](#eis-display-options).
</tip>


### Show models that are hidden by default

<applies-to>
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Planned
</applies-to>

If a model you expect is missing from the list, it might be hidden. By default, Kibana leaves out three groups of models:
- **Models outside your region preferences**: Models that you can't use until you update your [region preferences](/elastic/docs-content/pull/9383/explore-analyze/elastic-inference/eis-region-and-hosting#inference-region-preferences). If you can edit region preferences, open the model's details, expand the banner with **View details**, and select **Edit Region preferences**.
- **End-of-life models**: Models that have already reached their end-of-life date, which you can't use. Models that are close to that date stay in the list.
- **Preview models**: Models in preview, which aren't recommended for production use.

To show or hide any of these groups:
1. On the toolbar, select `controls` **Display options**.
2. In **Model display options**, set each group to **Show** or **Hide**.
3. Select **Apply**.

The list now includes the groups you set to **Show**. In card view, Kibana shows how many models match, for example **Showing 12 of 20**. The second number also counts hidden models, so a lower first number doesn't always mean that your search or filters removed a model.
Kibana doesn't save your selection. After you reload Kibana, all three groups are hidden again.

## Add endpoints

Your deployment includes default inference endpoints which are preconfigured and ready to use.
In most cases, you should use these default endpoints.
However, you can choose to create custom EIS endpoints if you need to instantiate a specific model version or configuration that is not covered by the defaults.
<applies-switch>
  <applies-item title="{ stack: ga 9.4+, serverless: ga }" applies-to="Elastic Cloud Serverless: Generally available, Elastic Stack: Generally available since 9.4">
    1. Go to the **Elastic inference** page by using the navigation menu or the [global search field](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9383/explore-analyze/find-and-organize/find-apps-and-objects).
    2. Select the model you want the new endpoint to use.
    3. Click **Add endpoint**.
    4. Enter a unique **Model ID**. For a complete list of valid Model IDs and their corresponding task types, refer to the [Supported models](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9383/explore-analyze/elastic-inference/eis-supported-models).
    5. Select **Save**.
  </applies-item>

  <applies-item title="stack: ga 9.0-9.3" applies-to="Elastic Stack: Generally available from 9.0 to 9.3">
    1. Go to the **Inference endpoints** page by using the navigation menu or the [global search field](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9383/explore-analyze/find-and-organize/find-apps-and-objects).
    2. In the **Service** dropdown, select **Elastic Inference Service**.
    3. In the **Settings** section, enter the specific **Model ID**. For a complete list of valid Model IDs and their corresponding task types, refer to the [Elastic Inference Service supported models](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9383/explore-analyze/elastic-inference/eis-supported-models).
    4. (Optional) Under **More options**, set the **Maximum Input Tokens**. This limits the number of tokens processed per request. If left blank, the model's default limit is used.
    5. Expand **Additional settings** and select the **Task type** that corresponds to your model.
    6. Select **Save**.
  </applies-item>
</applies-switch>

Alternatively, you can use [inference APIs](https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-inference), as described in the following section.

## Get started with models on EIS

The following sections describe how to get started with specific models available through Elastic Inference Service, including creating inference endpoints and using them for search and ingest.

### Jina v5 omni embedding models

<applies-to>
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available since 9.3
</applies-to>

<important>
  The Jina v5 omni models availability and the support for the [`semantic_text`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/tree/main/reference/elasticsearch/mapping-reference/semantic-text) field type depend on your Elastic Stack version:
  - <applies-to>Elastic Stack: Generally available since 9.3</applies-to> In Elastic Stack 9.3 and later, you can create endpoints and run multimodal `embedding` inference requests. You cannot use these models with the [`semantic_text`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/tree/main/reference/elasticsearch/mapping-reference/semantic-text) field type.
  - <applies-to>Elastic Stack: Generally available since 9.4</applies-to> In Elastic Stack 9.4 and later, you can use [`semantic_text`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/tree/main/reference/elasticsearch/mapping-reference/semantic-text) mappings for text-only embeddings at ingest and search time.
  - <applies-to>Elastic Stack: Generally available since 9.5</applies-to> In Elastic Stack 9.5 and later, the `semantic` field type supports all modalities, such as text, images, video, audio, and documents.
</important>

There are two Jina v5 omni embedding models available through Elastic Inference Service, [`jina-embeddings-v5-omni-small`](#jina-embeddings-v5-omni-small-on-eis) and [`jina-embeddings-v5-omni-nano`](#jina-embeddings-v5-omni-nano-on-eis). Both models support multimodal embeddings for text, images, video, audio, and documents such as PDF in one shared vector space.
- Use [`jina-embeddings-v5-omni-small`](#jina-embeddings-v5-omni-small-on-eis) for larger context windows and higher-capacity retrieval workloads.
- Use [`jina-embeddings-v5-omni-nano`](#jina-embeddings-v5-omni-nano-on-eis) for lower cost and lower resource usage.


#### `jina-embeddings-v5-omni-small` on EIS

Create an inference endpoint that references the `jina-embeddings-v5-omni-small` model in the `model_id` field. Use the `embedding` task type so the endpoint can accept multimodal input.
```console
PUT _inference/embedding/eis-jina-embeddings-v5-omni-small
{
  "service": "elastic",
  "service_settings": {
    "model_id": "jina-embeddings-v5-omni-small"
  }
}
```

You can reference the `inference_id` in `embedding` inference tasks and search queries on any supported version.
For examples of ingesting different media types and generating embeddings for text, images, audio, and video, refer to [Getting started with Jina v5 omni embedding models through Elastic Inference Service](/elastic/docs-content/pull/9383/explore-analyze/machine-learning/nlp/ml-nlp-jina#jina-omni-getting-started). Select the jina-embeddings-v5-omni-small tab in each example.

#### `jina-embeddings-v5-omni-nano` on EIS

Create an inference endpoint that references the `jina-embeddings-v5-omni-nano` model in the `model_id` field. Use the `embedding` task type so the endpoint can accept multimodal input.
```console
PUT _inference/embedding/eis-jina-embeddings-v5-omni-nano
{
  "service": "elastic",
  "service_settings": {
    "model_id": "jina-embeddings-v5-omni-nano"
  }
}
```

You can reference the `inference_id` in `embedding` inference tasks and search queries on any supported version.
For examples of ingesting different media types and generating embeddings for text, images, audio, and video, refer to [Getting started with Jina v5 omni embedding models through Elastic Inference Service](/elastic/docs-content/pull/9383/explore-analyze/machine-learning/nlp/ml-nlp-jina#jina-omni-getting-started). Select the jina-embeddings-v5-omni-nano tab in each example.

### `jina-embeddings-v5-text-small` on EIS

<applies-to>
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview since 9.4
</applies-to>

You can use the `jina-embeddings-v5-text-small` model through Elastic Inference Service. Running the model on EIS means that you use the model on GPUs, without the need of managing infrastructure and model resources.

#### Get started with `jina-embeddings-v5-text-small` on EIS

Create an inference endpoint that references the `jina-embeddings-v5-text-small` model in the `model_id` field.
```console
PUT _inference/text_embedding/eis-jina-embeddings-v5-text-small
{
  "service": "elastic",
  "service_settings": {
    "model_id": "jina-embeddings-v5-text-small"
  }
}
```

The created inference endpoint uses the model for inference operations on the Elastic Inference Service. You can reference the `inference_id` of the endpoint in index mappings for the [`semantic_text`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/tree/main/reference/elasticsearch/mapping-reference/semantic-text) field type, `text_embedding` inference tasks, or search queries.

### `jina-embeddings-v3` on EIS

<applies-to>
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview since 9.3
</applies-to>

You can use the `jina-embeddings-v3` model through Elastic Inference Service. Running the model on EIS means that you use the model on GPUs, without the need of managing infrastructure and model resources.

#### Get started with `jina-embeddings-v3` on EIS

Create an inference endpoint that references the `jina-embeddings-v3` model in the `model_id` field.
```console
PUT _inference/text_embedding/eis-jina-embeddings-v3
{
  "service": "elastic",
  "service_settings": {
    "model_id": "jina-embeddings-v3"
  }
}
```

The created inference endpoint uses the model for inference operations on the Elastic Inference Service. You can reference the `inference_id` of the endpoint in index mappings for the [`semantic_text`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/tree/main/reference/elasticsearch/mapping-reference/semantic-text) field type, text_embedding inference tasks, or search queries.

### Document extraction with Jina Reader on EIS

<applies-to>
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Planned
</applies-to>

The `document_extraction` task type converts PDFs, images, and web pages into Markdown. On EIS, the `jina-reader` model runs document extraction with [Jina Reader](https://jina.ai/reader/). Use it to prepare documents for indexing and retrieval-augmented generation (RAG).
Document extraction returns Markdown but doesn't index it. To make the extracted content searchable, index it yourself. Refer to [Elastic Inference Service > Index the extracted content](#document-extraction-index).

#### Extract content from documents

Use the preconfigured `.jina-reader` endpoint to extract content without creating an endpoint first. It handles every supported document type, so one endpoint covers PDFs, images, and web pages.
Send one or more documents in the `input` array. Each item has a `content` object with the following fields:
<definitions>
  <definition term="type">
    The document type. Supported values are `pdf`, `image`, and `html`.
  </definition>
  <definition term="format">
    How you provide the document. Use `url` to pass a link that Jina Reader fetches, or `base64` to pass the document as a base64-encoded data URL. The `html` type supports `url` only. Defaults to `base64` for `pdf` and `image`, and `url` for `html`.
  </definition>
  <definition term="value">
    The URL or the base64-encoded data URL.
  </definition>
</definitions>

The following example extracts a PDF from a URL:
```console
POST _inference/document_extraction/.jina-reader
{
  "input": [
    {
      "content": {
        "type": "pdf", <1>
        "format": "url", <2>
        "value": "https://example.com/annual-report.pdf" <3>
      }
    }
  ]
}
```

The following example extracts a PDF from a base64-encoded data URL:
```console
POST _inference/document_extraction/.jina-reader
{
  "input": [
    {
      "content": {
        "type": "pdf",
        "format": "base64", <1>
        "value": "data:application/pdf;base64,JVBERi0xLjQK..." <2>
      }
    }
  ]
}
```

The response contains one result for each document, in the same order as the `input` array:
```json
{
  "document_extraction": [
    {
      "content": "# Annual Report 2025\n\nRevenue grew by 12% year over year...", 
      "format": "markdown" 
    }
  ]
}
```

A result can also include a `metadata` object. Its fields can change, so don't rely on them in your application.
There's no limit on the number of documents in a request. The request size is limited by the [`http.max_content_length`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/tree/main/reference/elasticsearch/configuration-reference/networking-settings) setting, which defaults to 100 MB. Base64 encoding adds overhead, so the largest base64-encoded PDF you can send is about 75 MB.

#### Default extraction behavior

Each document type uses a different extraction method by default:
- PDFs: Converts the PDF's text layer to Markdown. Scanned PDFs have no text layer, so use OCR to extract their content. Refer to [Elastic Inference Service > Change how documents are extracted](#document-extraction-parameters).
- Images: Extracts text with optical character recognition (OCR).
- Web pages: Converts the page content to Markdown.


#### Change how documents are extracted

Use the `parameters` task setting to pass [Jina Reader options](https://r.jina.ai/docs) to Jina Reader. Options you set are combined with the defaults, and setting `preset` replaces the default extraction method. The `output_format` task setting supports `markdown` only.
Use the `preset` option to choose how Jina Reader extracts content. For example:
- `ocr`: Extracts text with the `jina-ocr-v1` OCR model. Use it for scanned PDFs.
- `pdf+`: Reads the PDF's text layer, adds support for images in the PDF, and uses `jina-ocr-v1` for tables, formulas, and pages without text. Use it for PDFs with tables or formulas, or with a mix of text and scanned pages.

OCR and layout presets extract pages 1 to 35 by default. To extract other pages, set the `page` option, such as `36-70`. A `page` range can include at most 35 pages. A wider range returns an error.
The following example extracts the first three pages of a PDF with the `pdf+` preset:
```console
POST _inference/document_extraction/.jina-reader
{
  "input": [
    {
      "content": {
        "type": "pdf",
        "format": "url",
        "value": "https://example.com/research-paper.pdf"
      }
    }
  ],
  "task_settings": {
    "parameters": { <1>
      "preset": "pdf+", <2>
      "page": "1-3" <3>
    }
  }
}
```


#### Create a document extraction endpoint

To apply the same `parameters` to every request, create your own inference endpoint and set them in `task_settings`:
```console
PUT _inference/document_extraction/my-jina-reader
{
  "service": "elastic", <1>
  "service_settings": {
    "model_id": "jina-reader" <2>
  },
  "task_settings": {
    "parameters": {
      "preset": "pdf+" <3>
    }
  }
}
```


#### Index the extracted content

Your application sends each document to the extraction endpoint and then indexes the `content` value from the response. To search the content semantically, index it into a [`semantic_text`](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/tree/main/reference/elasticsearch/mapping-reference/semantic-text) field:
1. Create an index with a `semantic_text` field for the extracted content:
   ```console
   PUT annual-reports
   {
     "mappings": {
       "properties": {
         "source_url": { "type": "keyword" }, <1>
         "content": { "type": "semantic_text" } <2>
       }
     }
   }
   ```
2. Extract the content from the document, as shown in [Elastic Inference Service > Extract content from documents](#document-extraction-run).
3. Index the `content` value from the response:
   ```console
   POST annual-reports/_doc
   {
     "source_url": "https://example.com/annual-report.pdf",
     "content": "# Annual Report 2025\n\nRevenue grew by 12% year over year..."
   }
   ```


### ELSER through Elastic Inference Service (ELSER on EIS)

<applies-to>
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available since 9.2
  - Elastic Stack: Preview in 9.1
</applies-to>

ELSER on EIS enables you to use the ELSER model on GPUs, without having to manage your own ML nodes. We expect better performance for ingest throughput than ML nodes and equivalent performance for search latency. We will continue to benchmark, remove limitations and address concerns.

#### Using the ELSER on EIS endpoint

You can now use `semantic_text` with the new ELSER endpoint on EIS. To learn how to use the `.elser-2-elastic` inference endpoint, refer to [Using ELSER on EIS](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/tree/main/reference/elasticsearch/mapping-reference/semantic-text-setup-configuration#using-elser-on-eis).

##### Get started with semantic search with ELSER on EIS

[Semantic Search with `semantic_text`](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9383/solutions/search/semantic-search/semantic-search-semantic-text) has a detailed tutorial on using the `semantic_text` field and using the ELSER endpoint on EIS instead of the default endpoint. This is a great way to get started and try the new endpoint.
<note>
  If you ran a kNN search and it failed or returned no results, [check whether your vectors are searchable and compatible with kNN search](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9383/solutions/search/vector/knn/troubleshoot-knn-search).
</note>


## Pricing

All models on EIS incur a charge per million tokens. Certain LLM providers charge different prices depending on the prompt size. The pricing details are available on our [Pricing page](https://cloud.elastic.co/cloud-pricing-table?productType=serverless).
This pricing model differs from the existing [Machine Learning Nodes](https://www.elastic.co/docs/explore-analyze/machine-learning/data-frame-analytics/ml-trained-models), which is billed through VCUs consumed.

### Token-based billing

EIS is billed per million tokens used:
- For **chat** models, input and output tokens are billed. Longer conversations with extensive context or detailed responses will consume more tokens.
- For **embeddings** models, only input tokens are billed.

Tokens are the fundamental units that language models process for both input and output. Tokenizers convert text into numerical data by segmenting it into subword units. A token can be a complete word, part of a word, or a punctuation mark, depending on the model's trained tokenizer and the frequency patterns in its training data.
For example, the sentence `It was the best of times, it was the worst of times.` contains 52 characters but would tokenize into approximately 14 tokens with a typical word-based approach, though the exact count varies by tokenizer.

### Monitor your token usage

To track your token consumption:
1. Navigate to [**Billing** → **Usage**](https://cloud.elastic.co/billing/usage) in the Elastic Cloud Console.
2. Look for line items where the **Billing dimension** is set to "Inference".


## Service status

Elastic Inference Service (EIS) is a global service on Elastic Cloud. Like any service, it might undergo availability changes from time to time. When availability changes, Elastic posts updates on the [Cloud Status](https://status.elastic.co/) page.
EIS incidents and maintenance affect features that rely on EIS, such as semantic search, embeddings, reranking, and AI-powered assistants.
To check current and past EIS availability, go to the [Cloud Status](https://status.elastic.co/) page. EIS is listed under **Global services** as **Elastic Inference Service**.
![Elastic Inference Service status on the Cloud Status page](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9383/explore-analyze/images/eis-status.png)

Learn how to [subscribe to updates](/elastic/docs-content/pull/9383/deploy-manage/cloud-organization/service-status#ec_subscribe_to_updates) on the Service status page.