文本嵌入 [chat兼容格式]

POST /v1/embeddings

MethodPOST
Path/v1/embeddings
Typehttp
Status1
Module2102810
Folder61214322

概览

MethodPOST
Path/v1/embeddings
Typehttp
Status1
Module2102810
Folder61214322

参数

{
  "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": []
  }
]