文本嵌入 [chat兼容格式]
POST /v1/embeddings
概览
| Method | POST |
|---|---|
| Path | /v1/embeddings |
| Type | http |
| Status | 1 |
| Module | 2102810 |
| Folder | 61214322 |
参数
{ "header": [ { "required": false, "description": "", "type": "string", "id": "epFodHpG8y", "enable": true, "name": "Content-Type", "sampleValue": "application/json" }, { "required": false, "description": "", "type": "string", "id": "ffVyLbeL06", "enable": true, "name": "Accept", "sampleValue": "application/json" }, { "required": false, "description": "", "type": "string", "id": "bQQqGzVWwX", "enable": true, "name": "Authorization", "sampleValue": "Bearer {{YOUR_API_KEY}}" } ] }
请求体
{ "type": "application/json", "parameters": [], "jsonSchema": { "type": "object", "properties": { "model": { "type": "string" }, "input": { "type": "string" }, "dimensions": { "type": "integer" } }, "required": [ "model", "input" ], "x-apifox-orders": [ "model", "input", "dimensions" ] }, "required": true, "mediaType": "", "examples": [], "oasExtensions": "" }
响应
[ { "id": 194706975, "name": "成功", "code": 200, "contentType": "json", "jsonSchema": { "type": "object", "properties": {} }, "itemSchema": {}, "description": "", "mediaType": "", "headers": [] } ]