Products
Embeddings
Turn text into vectors for search, clustering and retrieval.
POST /v1/embeddings is OpenAI-compatible. input is a string or an array of up to 2,048 strings (request body up to 8 MB). model defaults to rp/embed. Set encoding_format to base64 to receive little-endian float32 vectors as base64 instead of number arrays. Scope: embeddings.
curl https://api.relaypoints.online/v1/embeddings \
-H "Authorization: Bearer $RELAYPOINT_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "model": "rp/embed", "input": ["Sea-view apartment", "Garden cottage"] }'{
"object": "list",
"model": "rp/embed",
"data": [
{ "object": "embedding", "index": 0, "embedding": [0.0123, -0.0456, …] },
{ "object": "embedding", "index": 1, "embedding": [0.0789, 0.0012, …] }
],
"usage": { "prompt_tokens": 8, "total_tokens": 8, "cost_usd": "0.000008" }
}You pay per input token. Identical requests may be answered from a short-lived cache; they still return the same vectors.