# API QWEN Embeddings

**URL:** <https://community.n8n.io/t/api-qwen-embeddings/139028>\
**Category:** Help me Build my Workflow\
**Tags:** embeddings\
**Created:** [June 26, 2025, 11:49am UTC](https://community.n8n.io/t/api-qwen-embeddings/139028 "2025-06-26T11:49:25Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![RUSLAN](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ruslan/32/67309_2.png) [@RUSLAN](https://community.n8n.io/u/RUSLAN)\
**Post date:** [June 26, 2025, 11:49am UTC](https://community.n8n.io/t/api-qwen-embeddings/139028/1 "2025-06-26T11:49:25Z")

</div>

Hello everyone! Does anyone know how to connect QWEN Embedding via the official API in n8n? Or maybe it’s possible to create an equivalent workflow using HTTP REQUEST nodes? I would appreciate any information!  
I’ve attached a screenshot of my workflow, a link to the documentation, and a YouTube link where a guy connects QWEN Embedding via Ollama.

 ![Снимок экрана 2025-06-26 161044](https://europe1.discourse-cdn.com/n8n/original/3X/3/f/3fbb31fbedcd0219bba041ae5ae5505b351de541.png)

> **[大模型服务平台百炼控制台](https://bailian.console.aliyun.com/console?tab=api#/api/?type=model&url=https%3A%2F%2Fhelp.aliyun.com%2Fdocument_detail%2F2712515.html)**
>
> 百炼控制台是阿里云大模型服务平台，提供AI模型训练、部署、推理一站式服务，支持多种大模型框架，助力企业快速构建AI应用。

[![](https://europe1.discourse-cdn.com/n8n/original/3X/7/7/7783aee499badff028ae647fed4b7613766e0a88.jpeg "Qwen3 Embedding 4B模型+n8n工作流完美结合，无需编程基础5分钟轻松构建专属知识库，支持ollama！构建专业级RAG检索系统的详细操作保姆级教程！检索准确率高达95%，超越付费方案") ](https://www.youtube.com/watch?v=abv1DsIhNfA)

---

<div class="post-metadata">

**Author:** ![jabbson](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jabbson/32/87328_2.png) [@jabbson](https://community.n8n.io/u/jabbson)\
**Post date:** [June 26, 2025, 7:15pm UTC](https://community.n8n.io/t/api-qwen-embeddings/139028/2 "2025-06-26T19:15:43Z")

</div>

From the documentation, it looks like it should be possible to send an http request to the official API for the embedding model.

> **[API reference - Embedding - Alibaba Cloud](https://www.alibabacloud.com/help/en/model-studio/embedding#3b79e00060xgk)**
>
> Embedding models convert data such as text, images, and videos into vectors for downstream tasks, including semantic search, recommendation, clustering, classification, and anomaly detection. | Convert text, images, and videos into dense or sparse...

You should be able (given you have the api key) to send an http request, which would look somewhat like this:

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/0/7/07d18e19e7f7de4161ad3ecc29a65f86747bfbf2.png)

All you need is to send the requests which copy one of the following formats depending on what you are trying to achieve:

## Single string input:

```auto
curl --location 'https://dashscope-intl.aliyuncs.com/compatible-mode/v1/embeddings' \
--header "Authorization: Bearer $DASHSCOPE_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
    "model": "text-embedding-v3",
    "input": "The quality of the clothes is excellent, very beautiful, worth the wait, I like it and will buy here again",  
    "dimension": "1024",  
    "encoding_format": "float"
}'

```

## String list input

```auto
curl --location 'https://dashscope-intl.aliyuncs.com/compatible-mode/v1/embeddings' \
--header "Authorization: Bearer $DASHSCOPE_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
    "model": "text-embedding-v3",
    "input": [
        "Shall I compare thee to a summers day",
        "Thou art more lovely and more temperate", 
        "Rough winds do shake the darling buds of May", 
        "And summers lease hath all too short a date"
        ],
    "encoding_format": "float"
}'

```

## File input

```auto
FILE_CONTENT=$(cat texts_to_embedding.txt | jq -Rs .)
curl --location 'https://dashscope-intl.aliyuncs.com/compatible-mode/v1/embeddings' \
--header "Authorization: Bearer $DASHSCOPE_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
    "model": "text-embedding-v3",
    "input": ['"$FILE_CONTENT"']
}'

```

You should get the response with vectors back.

---

<div class="post-metadata">

**Author:** ![RUSLAN](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ruslan/32/67309_2.png) [@RUSLAN](https://community.n8n.io/u/RUSLAN)\
**Post date:** [June 26, 2025, 8:07pm UTC](https://community.n8n.io/t/api-qwen-embeddings/139028/3 "2025-06-26T20:07:06Z")

</div>

Thank you for your answer, but I don’t understand how to connect the HTTP Request node to the Pinecone Vector Store node.

---

<div class="post-metadata">

**Author:** ![jabbson](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jabbson/32/87328_2.png) [@jabbson](https://community.n8n.io/u/jabbson)\
**Post date:** [June 26, 2025, 8:12pm UTC](https://community.n8n.io/t/api-qwen-embeddings/139028/4 "2025-06-26T20:12:39Z")

</div>

Well, since after sending above mentioned requests you would end up with embeddings already and wouldn’t need a pinecone vector store node. You’d have to insert embeddings directly via pinecone API as well.

---

<div class="post-metadata">

**Author:** ![jabbson](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jabbson/32/87328_2.png) [@jabbson](https://community.n8n.io/u/jabbson)\
**Post date:** [June 26, 2025, 8:26pm UTC](https://community.n8n.io/t/api-qwen-embeddings/139028/5 "2025-06-26T20:26:11Z")

</div>

Or you could do what they did on the video and run this model yourself I guess.

---

<div class="post-metadata">

**Author:** ![RUSLAN](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ruslan/32/67309_2.png) [@RUSLAN](https://community.n8n.io/u/RUSLAN)\
**Post date:** [June 26, 2025, 8:35pm UTC](https://community.n8n.io/t/api-qwen-embeddings/139028/6 "2025-06-26T20:35:08Z")

</div>

Thank you for your response! I’m just starting to learn the specifics of how n8n works, but the main thing I’ve realized is that you can do without specialized nodes by using the HTTP Request node.

---

<div class="post-metadata">

**Author:** ![jabbson](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jabbson/32/87328_2.png) [@jabbson](https://community.n8n.io/u/jabbson)\
**Post date:** [June 26, 2025, 8:37pm UTC](https://community.n8n.io/t/api-qwen-embeddings/139028/7 "2025-06-26T20:37:04Z")

</div>

Very true, if there is no native node, you can always (well, almost) fall back to doing it yourself with a good ol’ http request.

---

<div class="post-metadata">

**Author:** ![RUSLAN](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ruslan/32/67309_2.png) [@RUSLAN](https://community.n8n.io/u/RUSLAN)\
**Post date:** [June 27, 2025, 4:38pm UTC](https://community.n8n.io/t/api-qwen-embeddings/139028/8 "2025-06-27T16:38:43Z")

</div>

Sorry, may I ask you to assemble the workflow as in the picture, but without using the nodes highlighted in yellow? Instead, please use HTTP request nodes.

 ![Снимок экрана 2025-06-27 213652](https://europe1.discourse-cdn.com/n8n/original/3X/c/0/c0ebbf67934c9c0ad03e347c9f277e93dfcfb529.png)

---

<div class="post-metadata">

**Author:** ![jabbson](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jabbson/32/87328_2.png) [@jabbson](https://community.n8n.io/u/jabbson)\
**Post date:** [June 27, 2025, 7:16pm UTC](https://community.n8n.io/t/api-qwen-embeddings/139028/9 "2025-06-27T19:16:48Z")

</div>

Sure thing, this is how it would look like:

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/2/b/2b37eebccf70c3c851678ad0a89b3b8bcefe059b.png)

And this is the workflow

This is how I tested:

- I uploaded a document to Pinecone
- I configured AI Agent with instructions for how to get the vector and how to retrieve info from Pinecone based on that vector.

This is what the document looked like (a lot, for a rather simple car fix, right?):

 ![img](https://europe1.discourse-cdn.com/n8n/original/3X/9/1/917517c297b6d7b8847e97ac69b889a6b0cb1c0b.png)

And this is my conversation with the model:

 ![img](https://europe1.discourse-cdn.com/n8n/original/3X/2/6/26f7505489a8a1a5b47d7d73315125756f84896f.png)

Note: I used 512 dim openai for embedding (both ingesting and and retrieval.

Hope it helps!

---

<div class="post-metadata">

**Author:** ![RUSLAN](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ruslan/32/67309_2.png) [@RUSLAN](https://community.n8n.io/u/RUSLAN)\
**Post date:** [June 27, 2025, 9:37pm UTC](https://community.n8n.io/t/api-qwen-embeddings/139028/10 "2025-06-27T21:37:03Z")

</div>

Thank you!!!

---

<div class="post-metadata">

**Author:** ![jabbson](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jabbson/32/87328_2.png) [@jabbson](https://community.n8n.io/u/jabbson)\
**Post date:** [August 3, 2025, 8:13pm UTC](https://community.n8n.io/t/api-qwen-embeddings/139028/11 "2025-08-03T20:13:09Z")

</div>

You are very welcome @RUSLAN
