Skip to main content
POST
Create Embeddings

Authorizations

Authorization
string
header
required

API Key obtained from the APIYI Console

Body

application/json
model
string
required

Embedding model name

Examples:

"text-embedding-ada-002"

"text-embedding-3-small"

"text-embedding-3-large"

input
required

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

Example:

"This is a sample text for embedding."

encoding_format
enum<string>
default:float

Encoding format for the returned vectors

Available options:
float,
base64

Response

Successfully returned vector data

object
enum<string>
Available options:
list
Example:

"list"

data
object[]
model
string
Example:

"text-embedding-ada-002"

usage
object