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, for example: Bearer {{API Key}}.

Request Body

string | arrary
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 array of token arrays. The input must not exceed the max input tokens for the model (8192 tokens for text-embedding-ada-002), cannot be an empty string, and any array must be 2048 dimensions or less.
enum<string>
required
ID of the model to use. Enum: baai/bge-m3.
string
The format to return the embeddings in. Can be either float or base64.

Response

string
required
Fixed as list
object[]
required
List of embeddings vectors generated by the model.
string
required
The ID of the model used.
object
required
Usage information.
Last modified on July 3, 2026