跳转到主要内容
POST
POST /v1/embeddings

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json
input
必填
model
string
必填
dimensions
integer<int64> | null
encoding_format
enum<string> | null
可用选项:
float,
base64
user
string | null

响应

Successful protocol response

data
object[]
必填
model
string
必填
object
enum<string>
必填
可用选项:
list
usage
object
必填