Skip to main content
POST
Create Embeddings

授权

Authorization
string
header
必填

API Key obtained from the APIYI Console

请求体

application/json
model
string
必填

Embedding model name

示例:

"text-embedding-ada-002"

"text-embedding-3-small"

"text-embedding-3-large"

input
必填

Text to embed. Can be a single string or an array of strings.

示例:

"This is a sample text for embedding."

encoding_format
enum<string>
默认值:float

Encoding format for the returned vectors

可用选项:
float,
base64

响应

Successfully returned vector data

object
enum<string>
可用选项:
list
示例:

"list"

data
object[]
model
string
示例:

"text-embedding-ada-002"

usage
object