# Open AI Inference API specifying dimensions

**URL:** https://discuss.elastic.co/t/open-ai-inference-api-specifying-dimensions/359324
**Category:** Elasticsearch
**Created:** [May 12, 2024, 2:49pm UTC](https://discuss.elastic.co/t/open-ai-inference-api-specifying-dimensions/359324 "2024-05-12T14:49:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Bartu\_Celasun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bartu_celasun/32/134402_2.png) [@Bartu\_Celasun](https://discuss.elastic.co/u/Bartu_Celasun)
#### Post date: [May 12, 2024, 2:49pm UTC](https://discuss.elastic.co/t/open-ai-inference-api-specifying-dimensions/359324/1 "2024-05-12T14:49:38Z")

</div>

So my question is about inference API's. Why there is no option to specify the dimensions. In my case I want to use text-embedding-large-3 with 1536 dimensions but when i try to create this.

```auto
PUT _inference/text_embedding/openai_embeddings 
{
    "service": "openai",
        "service_settings": {"api_key": "sk-proj-tTA2nwQRcka2DCG5aSO0T3BlbkFJKSpOnyCNOnAHWkYSsoia"},
        "task_settings": {"model": "text-embedding-large-3",
          "dimensions": 1536
        }
    
}

```

I get "Model configuration contains settings [{dimensions=1536}] unknown to the [openai] service".
