# Getting 404 error when trying inference.embed

**URL:** <https://community.pinecone.io/t/getting-404-error-when-trying-inference-embed/7011>\
**Category:** Support\
**Tags:** embeddings\
**Created:** [November 23, 2024, 12:23am UTC](https://community.pinecone.io/t/getting-404-error-when-trying-inference-embed/7011 "2024-11-23T00:23:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bradley](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/bradley/32/3524_2.png) [@bradley](https://community.pinecone.io/u/bradley)\
**Post date:** [November 23, 2024, 12:23am UTC](https://community.pinecone.io/t/getting-404-error-when-trying-inference-embed/7011/1 "2024-11-23T00:23:54Z")

</div>

I am new to the nodejs sdk. I am trying access the embedding endpoint so I can create a vector. Here is the code I am using.

```auto
// Initialize Pinecone API client
const data = [
    {
      id: "1",
      text: "some text",
    },
  ];

const pineConeClient = new Pinecone({
apiKey: process.env.PINECONE_apiKey,
});
const model = "text-embedding-ada-002";
const embeddings = await pineConeClient.inference.embed(
      model,
      data.map((d) => d.text),
      { inputType: "passage", truncate: "END" }
    );

```

When I run this code, I get the following error: PineconeNotFoundError: A call to [https://api.pinecone.io/embed](https://api.pinecone.io/embed) returned HTTP status 404.

As I understand this, I DO NOT have to specify my index as this end point has nothing to do where my index is located, in my case, us-west-2. I am not sure what to do, this error seems to be out of my control. package version “@pinecone-database/pinecone”: “^4.0.0”,

Any advice would be great full.  
Brad

---

<div class="post-metadata">

**Author:** ![gdj0nes](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/gdj0nes/32/223_2.png) [@gdj0nes](https://community.pinecone.io/u/gdj0nes)\
**Post date:** [November 23, 2024, 12:27am UTC](https://community.pinecone.io/t/getting-404-error-when-trying-inference-embed/7011/2 "2024-11-23T00:27:34Z")

</div>

@bradley thanks for reaching out. Pinecone’s embedding endpoint only supports models we host. Right now we host a single text embedding model `multilingual-e5-large`

---

<div class="post-metadata">

**Author:** ![bradley](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/bradley/32/3524_2.png) [@bradley](https://community.pinecone.io/u/bradley)\
**Post date:** [November 23, 2024, 12:43am UTC](https://community.pinecone.io/t/getting-404-error-when-trying-inference-embed/7011/3 "2024-11-23T00:43:22Z")

</div>

> [@gdj0nes](#):
>
> multilingual-e5-large

I got confused because when I created the index, via the dashboard, I was allowed to choose other models. So I assumed that it was a valid model.

Thanks that fixed the issue.

Brad

---

<div class="post-metadata">

**Author:** ![gdj0nes](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/gdj0nes/32/223_2.png) [@gdj0nes](https://community.pinecone.io/u/gdj0nes)\
**Post date:** [November 23, 2024, 12:49am UTC](https://community.pinecone.io/t/getting-404-error-when-trying-inference-embed/7011/4 "2024-11-23T00:49:37Z")

</div>

Sorry for the confusion. We’ll take another look at that!
