# Perform dense embedding inference on the service **POST /_inference/embedding/{inference_id}** ## Servers - http://api.example.com: http://api.example.com () ## Authentication methods - Api key auth - Basic auth - Bearer auth ## Parameters ### Path parameters - **inference_id** (string) The inference Id ### Query parameters - **timeout** (string) Specifies the amount of time to wait for the inference request to complete. ### Body: application/json (object) - **input** (string | array[string] | object | array[object]) Inference input. Either a string, an array of strings, a `content` object, or an array of `content` objects. string example: ``` "input": "Some text" ``` string array example: ``` "input": ["Some text", "Some more text"] ``` `content` object example: ``` "input": { "content": { "type": "image", "format": "base64", "value": "data:image/jpeg;base64,..." } } ``` `content` object array example: ``` "input": [ { "content": { "type": "text", "format": "text", "value": "Some text to generate an embedding" } }, { "content": { "type": "image", "format": "base64", "value": "data:image/jpeg;base64,..." } } ] ``` - **input_type** (string) The input data type for the embedding model. Possible values include: * `SEARCH` * `INGEST` * `CLASSIFICATION` * `CLUSTERING` Not all models support all values. Unsupported values will trigger a validation exception. Accepted values depend on the configured inference service, refer to the relevant service-specific documentation for more info. > info > The `input_type` parameter specified on the root level of the request body will take precedence over the `input_type` parameter specified in `task_settings`. - **task_settings** (object) Task settings for the individual inference request. These settings are specific to the you specified and override the task settings specified when initializing the service. ## Responses ### 200 #### Body: application/json (object) - **embeddings_bytes** (array[object]) - **embeddings_bits** (array[object]) - **embeddings** (array[object]) [Powered by Bump.sh](https://bump.sh)