HushSearchDocs

Embeddings

Vector embeddings for text, OpenAI-compatible shape.

Platform

POST/v1/embeddings/1 credit / input

Request
curl -X POST https://api.hushsearch.io/v1/embeddings/ \
  -H "X-API-Key: hs_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": [
    "reciprocal rank fusion",
    "hybrid search"
  ]
}'

Returns one embedding per input, in the same response shape as OpenAI's embeddings API, so existing clients work with a base-URL change.

Parameters

FieldTypeNotes
inputstring or string[]Required. Text to embed.
modelstringOptional model name; the server default is used when omitted.

Response

{
  "object": "list",
  "model": "…",
  "data": [{ "object": "embedding", "index": 0, "embedding": [0.0123, -0.0441, …] }],
  "usage": { "prompt_tokens": 12, "total_tokens": 12 },
  "credits_used": 1,
  "credits_remaining": 499,
  "response_time_ms": 85
}

Costs 1 credit per input string.

On this page