cto
  1. 嵌入(embedding)
cto
  • 账户
    • 账户余额查询
      POST
  • 模型调用
    • 会话(chat)
      • chat-message
      • chat-image
    • 嵌入(embedding)
      • 创建嵌入
        POST
    • 图像(dall)
      • 生成图片
    • 排序模型
      • 排序模型
  • 图片
    • midjourney
      • 图片生成(Imagine)
      • 图片操作(Action)
      • 图片进度查询
  • 工具
    • 企业
    • 发票
      • 发票查验
      • 发票OCR识别
    • 视频解析
      POST
    • 联网搜索
      POST
    • 热榜
      POST
  1. 嵌入(embedding)

创建嵌入

开发中
POST
https://api.agicto.cn/v1/embeddings
官方文档见:https://platform.openai.com/docs/api-reference/embeddings/create

请求参数

Header 参数
Authorization
string 
必需
示例值:
Bearer $API_KEY
Content-Type
string 
必需
示例值:
application/json
Body 参数application/json
input
可选
Any of
model
string 
必需
encoding_format
string 
必需
示例
{
    "input": "The food was delicious and the waiter...",
    "model": "text-embedding-ada-002",
    "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://api.agicto.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-ada-002",
    "encoding_format": "float"
  }'

返回响应

🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2025-04-11 05:55:28
上一页
chat-image
下一页
生成图片
Built with