元曜星辰 Docs
OpenAI

创建向量嵌入

POST
/openai/embeddings

授权

授权Bearer <token>

位置: header

请求主体

application/json

TypeScript 定义

在 TypeScript 中使用 request body 类型。

响应主体

application/json

curl -X POST "https://example.com/openai/embeddings" \  -H "Content-Type: application/json" \  -d '{    "model": "string",    "input": "string"  }'
{  "object": "string",  "model": "string",  "data": [    {      "index": 0,      "object": "string",      "embedding": [        0      ]    }  ],  "usage": {    "prompt_tokens": 0,    "completion_tokens": 0,    "total_tokens": 0  }}