Embeddings
Create embeddings
This endpoint follows the OpenAI API format for generating vector embeddings from input text. The handler receives pre-processed metadata from middleware and forwards the request to the selected node.
Returns
Ok(Response)
- The embeddings response from the processing nodeErr(AtomaProxyError)
- An error status code if any step fails
Errors
INTERNAL_SERVER_ERROR
- Processing or node communication failures
POST
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Request object for creating embeddings
Input text to get embeddings for. Can be a string or array of strings. Each input must not exceed the max input tokens for the model
ID of the model to use.
The number of dimensions the resulting output embeddings should have.
Required range:
x > 0
The format to return the embeddings in. Can be "float" or "base64". Defaults to "float"
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.