Skip to main content
The SambaNova Embeddings API generates vector representations (embeddings) of input text, facilitating tasks such as semantic similarity analysis, clustering, search optimization, and retrieval-augmented generation (RAG). This API enables developers to integrate advanced AI capabilities into their applications by transforming textual data into structured numerical representations.

Endpoint

The API provides an endpoint to generate embedding vectors for input text.

Request

For SambaStack, developers should check with their system administrator for the correct URL.

Request body parameters

This API ensures efficient embedding generation, supporting multiple input formats while enforcing model constraints.

Example request

The following example demonstrates how to send a request to the SambaCloud Embeddings API using curl.

CURL request

CURL request

Example response

Example response

Response properties

The API response consists of the following properties:

Embedding object

Error handling

See API error codes page for more information.

Example error response

Example error response