---
title: 获取文本向量-OpenAI兼容-Embedding-API黄页|万维易源ShowAPI
canonical_url: "https://www.showapi.com/playground/aliyun/bailian/openai-embedding"
last_updated: "2026-09-22T16:54:17.275Z"
meta:
  description: 阿里云百炼提供OpenAI兼容的Embedding服务，通过HTTP接口快速获取文本向量表示，助力大模型开发与应用。
  keywords: 阿里云百炼Embedding，文本向量获取，OpenAI兼容API，大模型服务平台，HTTP接口调用
  "og:description": 阿里云百炼提供OpenAI兼容的Embedding服务，通过HTTP接口快速获取文本向量表示，助力大模型开发与应用。
  "og:title": 获取文本向量-OpenAI兼容-Embedding-API黄页|万维易源ShowAPI
---

*

*

*

# **OpenAI兼容-Embedding**

[阿里云-大模型服务平台百炼](https://www.showapi.com/playground/aliyun/bailian)** 产品首页 [**API文档](https://bailian.console.aliyun.com/?tab=api#/api/?type=model&url=https%3A%2F%2Fhelp.aliyun.com%2Fdocument_detail%2F2846066.html) [**应用示例](https://www.showapi.com/aiapp/aliyun/bailian/openai-embedding.html)

**1.0w

2025-04-11更新

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

该API允许用户将文本转换为向量表示，适用于文本相似度计算、聚类分析等场景。它兼容OpenAI的Embedding接口，便于开发者迁移和使用。

**基础配置**

**API\_KEY****\*****[去获取API\_KEY](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%2F2846066.html&renderType=iframe)

Run: Ctrl+

↵

接入点描述：通过HTTP接口调用阿里云百炼的Embedding服务，获取文本的向量表示。

**请求参数**

**encoding\_format****\***

控制返回的embedding格式，当前仅支持float格式。

**input\[0]****\***

单条文本内容

**model****\***

指定使用的模型

**返回结果**

当前为示例返回

**

返回体

返回头

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

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

**拷贝Curl语句