Create Embedding

获取给定输入 矢量表示, 机器学习models and 算法can以轻松enabling用该表示. 相关指南: [嵌入](https://platform.openai.com/docs/guides/embeddings) 创建表示输入文本 嵌入向量.

Endpoint

POST http://v98store.com/v1/embeddings

cURL Command

curl -X POST 'http://v98store.com/v1/embeddings' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{ "model": "text-embedding-3-large", "input": "喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵" }'

Parameters

NameInDescriptionRequired
AuthorizationheaderNo

Request Body

Example

{
  "model": "text-embedding-3-large",
  "input": "喵喵喵喵喵喵喵喵喵喵喵喵喵喵喵"
}

Responses

200 -

Example

"{\n \"object\": \"list\",\n \"data\": [\n {\n \"object\": \"embedding\",\n \"embedding\": [\n 0.0023064255,\n -0.009327292,\n.... (1536 floats total for ada-002)\n -0.0028842222\n ],\n \"index\": 0\n }\n ],\n \"model\": \"text-embedding-ada-002\",\n \"usage\": {\n \"prompt_tokens\": 8,\n \"total_tokens\": 8\n }\n}"