Skip to main content
POST https://api.pre.dev/v1/embeddings takes the OpenAI-compatible embeddings request and returns the embeddings response. GET /v1/embeddings/models lists embedding models with credit prices; it is free and not rate-limited.
The response is the standard embeddings response: data[].embedding, model, and usage. Credits are computed from usage.cost and reported in x-predev-credits-charged.

Rerank

POST /v1/rerank ranks documents against a query. Send a model, a query, and documents; the response returns the documents ordered by relevance with a score for each.
Set RERANK_MODEL to a rerank-capable id from the catalog. Rerank calls are billed like any other inference call.