Embeddings

POST /v1/embeddings

The OpenAI embeddings API.

curl https://endpoint.pirol.ai/v1/embeddings \
  -H "Authorization: Bearer $PIROL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "text-embedding-3-small",
    "input": "Anna Schmidt lives in Berlin."
  }'

input takes a string or a list of strings, as with OpenAI. The response is theirs too: one vector per input, in order.

Which model

Embeddings run on your own OpenAI key — we pass the request through and the model is theirs. Store the key in the console first; see your own keys. Without one, the request is refused.