fe8
  1. 嵌入向量
fe8
  • 会话
    • chat
      POST
    • responses
      POST
  • 嵌入向量
    • 向量化
      POST
  • 排序
    • 排序
      POST
  • 支持模型列表
    GET
  1. 嵌入向量

向量化

POST
https://a.fe8.cn/v1/embeddings
openai 官方文档:https://platform.openai.com/docs/api-reference/embeddings/create

请求参数

Header 参数

Body 参数application/json必填

示例
{
  "input": "The food was delicious and the waiter...",
  "model": "text-embedding-3-small",
  "encoding_format": "float"
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://a.fe8.cn/v1/embeddings' \
--header 'Authorization: Bearer $API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
  "input": "The food was delicious and the waiter...",
  "model": "text-embedding-3-small",
  "encoding_format": "float"
}'

返回响应

🟢200成功
application/json
Body

示例
{}
修改于 2026-01-06 02:27:03
上一页
responses
下一页
排序
Built with