---
title: 文本向量化-文本向量同步接口API-API黄页|万维易源ShowAPI
canonical_url: "https://www.showapi.com/playground/aliyun/bailian/sync-api"
last_updated: "2026-09-22T21:44:04.793Z"
meta:
  description: 阿里云大模型百炼提供高效文本向量化API，支持多语言统一向量模型，适用于RAG、文本分类、情感分析等NLP任务，提升文本处理效率。
  keywords: 文本向量化，多语言文本向量，RAG文本处理，文本分类API，情感分析模型
  "og:description": 阿里云大模型百炼提供高效文本向量化API，支持多语言统一向量模型，适用于RAG、文本分类、情感分析等NLP任务，提升文本处理效率。
  "og:title": 文本向量化-文本向量同步接口API-API黄页|万维易源ShowAPI
---

*

*

*

# **文本向量同步接口API**

[阿里云-大模型服务平台百炼](https://www.showapi.com/playground/aliyun/bailian)** 产品首页 [**API文档](https://bailian.console.aliyun.com/?spm=5176.29597918.nav-v2-dropdown-menu-0.d_main_0_0.60cc7ca0Jb9TKX&scm=20140722.M_10774053._.V_1&tab=api#/api/?type=model&url=https%3A%2F%2Fhelp.aliyun.com%2Fdocument_detail%2F2712515.html) [**应用示例](https://www.showapi.com/aiapp/aliyun/bailian/sync-api.html)

**7625

2025-04-11更新

**126 [提交收录](https://www.showapi.com/island/feedback-page?submitrequire=true) [反馈问题](https://www.showapi.com/island/feedback-page?apiurl=/playground/aliyun/bailian/sync-api) [ 创建我的API](https://www.showapi.com/playground)

同步接口API提供实时处理能力，支持多种模型和应用，如通义千问、DeepSeek等，适用于需要即时响应的场景。用户需配置API Key并安装SDK以使用。

**基础配置**

**Token****\*****[去获取Token](https://bailian.console.aliyun.com/?tab=api#/api/?type=model&url=https%3A%2F%2Fhelp.aliyun.com%2Fdocument_detail%2F2712195.html&renderType=iframe)

API Key，用于鉴权

选择接入点：

**POST**

**

**Run

**接入点文档：**[查看](https://bailian.console.aliyun.com/?tab=api#/api/?type=model&url=https%3A%2F%2Fhelp.aliyun.com%2Fdocument_detail%2F2712515.html&renderType=iframe)

Run: Ctrl+

↵

接入点描述：通用文本向量是由通义实验室开发的基于LLM的多语言统一文本向量模型，支持多个主流语种，为文本类数据提供高效的向量化转换服务，适用于RAG、文本分类、情感分析等自然语言处理任务。

**请求参数**

**dimensions**

用于用户指定输出向量维度，只适用于text-embedding-v3模型。指定的值只能在1024、768、512、256、128或64六个值之间选取，默认值为1024

**encoding\_format**

用于控制返回的Embedding格式，当前仅支持\`float\`格式

**input****\***

输入文本的基本信息，可以是字符串，字符串列表，或者打开的文件（需要Embedding的内容，一行一条）

**model****\***

调用的模型，可以选择\`text-embedding-v1\`，\`text-embedding-v2\`或者\`text-embedding-v3\`

**返回结果**

当前为示例返回

**

返回体

返回头

**使用其他软件测试API**

您可以拷贝Curl语句，直接导入Postman进行测试

**拷贝Curl语句