Create embeddings
inference
Create embeddings
Creates a model response for the given text.
POST
Create embeddings
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
current project ID
Body
application/json
ID of the model to use.
Example:
"BAAI/bge-en-icl"
Input text to embed, encoded as a string or array of tokens.
Example:
"What's a nice vector, Victor?"
The format to return the embeddings in. Can be either float or base64.
A unique identifier representing your end-user.
The service tier to use for the request.
Available options:
auto, default, over-limit, flex, no-limit Example:
"auto"
The dimensions to use for the request.
Example:
4096
Response
OK
always 'list'.
The model used for the embedding.
Token usage stats.
List of Embedding objects
The service tier used for the request.
Available options:
auto, default, over-limit, flex, no-limit