Skip to main content
POST
Create Embeddings
Creates an embedding vector representing the input text.

Request Headers

string
required
Enum: application/json
string
required
Bearer authentication format: Bearer {{API Key}}.

Request Body

string[]
required
Input text to embed, encoded as a string or array of tokens. To embed multiple inputs in a single request, pass an array of strings or token arrays. The input must not exceed the model’s maximum input tokens (8192 tokens for text-embedding-ada-002), must not be an empty string, and any array must have dimensions less than or equal to 2048.
string
required
The model ID to use. Enum:
  • baai/bge-m3
string
The format to return the embedding vectors in. Can be float or base64.

Response

string
required
Always list.
array
required
A list of embedding vectors generated by the model.
string
required
The model ID used.
object
required
Usage information.