SumoRouter
SumoRouter Customer API

Embeddings

Server

Vector embeddings for search, clustering and RAG.


Create embeddings

POST
https://ai.brandkamu.id
/v1/embeddings

OpenAI Embeddings compatible. Only models whose mode is embedding work here (others return 400 pointing at the right endpoint). Streaming is not supported. The non-streamed response gets usage.cost (USD) added.

Create embeddings › Request Body

model
​string · required

An embedding model (mode embedding).

​required

One text or a list of texts. Must not be empty.

dimensions
​integer

Shorter vectors, where the model supports it.

encoding_format
​string

Create embeddings › Responses

OpenAI embedding list.

Provider-compatible JSON object passed through from the upstream (with `model` set to the catalog slug and `usage.cost` added in USD).