RS Infer
Server Endpoints

/embed

Create embeddings (TEI-compatible). Text-Embeddings-Inference compatible shape: `{"inputs": ["..."]}` → `[[f32, ...]]`. Uses the default embedding model (no `model` field). Always returns float arrays (no `base64` mode).

POST
/embed

Create embeddings (TEI-compatible). Text-Embeddings-Inference compatible shape: {"inputs": ["..."]}[[f32, ...]]. Uses the default embedding model (no model field). Always returns float arrays (no base64 mode).

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/embed" \  -H "Content-Type: application/json" \  -d '{    "inputs": [      "string"    ]  }'
[  [    0.1  ]]