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 node
- Err(AtomaProxyError) - An error status code if any step fails
Errors
- INTERNAL_SERVER_ERROR - Processing or node communication failures
Request body
Example request
{
"encoding_format": "float",
"input": "The quick brown fox jumped over the lazy dog",
"model": "intfloat/multilingual-e5-large-instruct",
"user": "user-1234"
}Response
Embeddings generated successfully
Example response
{
"data": [
{
"object": "embedding"
}
],
"model": "intfloat/multilingual-e5-large-instruct",
"object": "list",
"usage": {
"prompt_tokens": 8,
"total_tokens": 8
}
}Changes
Changed in 3 of the 13 revisions of this API.10513
- ▲
added the new required request property
new-required-request-property
- ▲
added the new required request property
new-required-request-property
- ▲
the request's body type changed from no type to
objectrequest-body-type-changed
- ▲
the response's body type changed from no type to
objectfor statusresponse-body-type-changed
- ○
api operation id
embeddings_handlerremoved and replaced withembeddings_createapi-operation-id-removed
- ○
the endpoint scheme security
bearerAuthwas added to the APIapi-security-added
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the required property
to the response with the statusresponse-required-property-added
- ○
added the required property
to the response with the statusresponse-required-property-added
- ○
added the required property
to the response with the statusresponse-required-property-added
- ○
added the required property
to the response with the statusresponse-required-property-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
api tag
Embeddingsaddedapi-tag-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
the request's body type changed from
objectto no typerequest-body-type-changed
- ▲
the response's body type changed from
objectto no type for statusresponse-body-type-changed
- ▲
removed the required property
from the response with the statusresponse-required-property-removed
- ▲
removed the required property
from the response with the statusresponse-required-property-removed
- ▲
removed the required property
from the response with the statusresponse-required-property-removed
- ▲
removed the required property
from the response with the statusresponse-required-property-removed
- ●
removed the request property
request-property-removed
- ●
removed the request property
request-property-removed
- ●
removed the request property
request-property-removed
- ●
removed the request property
request-property-removed
- ●
removed the request property
request-property-removed
- ○
api operation id
embeddings_createremoved and replaced withembeddings_handlerapi-operation-id-removed
- ○
the endpoint scheme security
bearerAuthwas removed from the APIapi-security-removed
- ○
api tag
Embeddingsremovedapi-tag-removed
This revision also has 64 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲