The playground

Try any of 434 endpoints — live.

Pick an endpoint, load a working example, tweak the params, and send — no signup to try. Results render the way the data deserves; raw JSON, headers & code are one tab away.

Playground demo key · api.reefapi.com
post/embeddings/v1/rerank1 credit

rerank documents by relevance to a query (BGE-reranker-v2-m3 cross-encoder, multilingual). params: query (str) + documents (list of str). Returns ranked results[{index, relevance_score}] (most-relevant first).

Working example
Parameters
⌘↵
request preview
curl -X POST https://api.reefapi.com/embeddings/v1/rerank \
  -H "x-api-key: $REEF_KEY" \
  -H "content-type: application/json" \
  -d '{"query":"best coffee shop near me","documents":"[\"A cozy cafe with award-winning espresso\",\"An auto repair garage\",\"The top-rated coffee place downtown\"]"}'

Hit Send (or ⌘↵) to run this endpoint live.