﻿---
title: stack es inference put-jinaai cli command
description: Create an JinaAI inference endpoint. Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://docs-v3-preview.elastic.dev/elastic/cli/pull/458/cli/stack/es/inference/put-jinaai
---

# stack es inference put-jinaai cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack es inference put-jinaai \
  --task-type <task-type> \
  --jinaai-inference-id <jinaai-inference-id> \
  --service <service> \
  --service-settings <service-settings> \
  [options]
```

Create an JinaAI inference endpoint.
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--task-type enum required">
    The type of the inference task that the model will perform.
    **Values:** embedding, rerank, text_embedding
  </definition>
  <definition term="--jinaai-inference-id string required">
    The unique identifier of the inference endpoint.
  </definition>
  <definition term="--service enum required">
    The type of service supported for the specified task type. In this case, `jinaai`.
    **Values:** jinaai
  </definition>
  <definition term="--service-settings string required">
    Settings used to install the inference model. These settings are specific to the `jinaai` service.
  </definition>
  <definition term="--timeout string">
    Specifies the amount of time to wait for the inference endpoint to be created.
  </definition>
  <definition term="--chunking-settings string">
    The chunking configuration object. Applies only to the `embedding` and text_embedding`task types. Not applicable to the`rerank` task type.
  </definition>
  <definition term="--task-settings string">
    Settings to configure the inference task. These settings are specific to the task type you specified.
  </definition>
  <definition term="--input-file string">
    path to a JSON file to use as command input
  </definition>
  <definition term="--[no-]dry-run">
    validate all inputs and exit without performing any action (preview changes without applying them)
  </definition>
</definitions>


## Global Options

<definitions>
  <definition term="--[no-]json">
    output as JSON
  </definition>
</definitions>