Embeddings

Create embeddings

OpenAI-compatible embeddings endpoint for semantic search, RAG, clustering, and classification. SandBase validates the logical model and forwards provider-compatible embedding fields; model-specific constraints are defined by the selected model and upstream provider.

post/v1/embeddings

Request

  • Base URL: https://api.sandbase.ai
  • URL: https://api.sandbase.ai/v1/embeddings
  • Auth: HTTP bearer

Request body

modelstring required

Embedding model identifier.

dimensionsinteger

Optional output dimension when supported by the selected model. SandBase does not impose a universal dimension list.

encoding_format'float' | 'base64'

Requested embedding encoding. Support is provider- and model-specific.

Example request

{
  "model": "alibaba/text-embedding-v4",
  "input": "SandBase provides a unified API for AI models, agents, and developer tools.",
  "dimensions": 1024
}

Response

Embedding response

object'list' required
modelstring required

Example response

{
  "model": "alibaba/text-embedding-v4"
}

Changes

No recorded changes to this operation across all 1 revision of this API.