Convert text into high-dimensional numerical vectors for various AI tasks.
/v1/embeddings
endpoint to generate these vectors.
/v1/embeddings
endpoint with your text input.
POST /v1/embeddings
input
(string or array of strings, required): The text(s) to embed. Can be a single string or an array of strings.model
(string, optional, default: "nusa-embedding-0001"
): The ID of the embedding model to use.encoding_format
(string, optional, default: "float"
): The format of the returned embeddings. Currently, "float"
is the primary supported format.nusa-embedding-0001
: The primary embedding model, offering good performance for general-purpose embeddings.together-embed-v2-L
: A large embedding model provided via Together AI, suitable for high-quality text embeddings.base_url
to point to the NusantaraAI API.