Skip to content

GreenPT green-rerank

green-rerank API, a reranker hosted in the EU

green-rerank is GreenPT's reranking model: a cross-encoder that reads your query next to each retrieved document and scores how well the document answers it. It runs in European data centres and is billed per input token in euros.

Send a query and a list of documents to POST /v1/rerank, set top_n, and get the best matches back, each with a relevance score.

The short answer

What is the green-rerank API?

green-rerank is GreenPT's reranker API, served from EU data centres. POST a query and a list of documents to https://api.greenpt.ai/v1/rerank and it returns the documents ordered by relevance, each with a relevance score and its original index. It is the step between vector search and your chat model, billed per input token.

Model ID
green-rerank
EU base URL
https://api.greenpt.ai/v1
Context window
32K tokens
Backing model
Qwen3-Reranker-4B, a multilingual cross-encoder (100+ languages)
Response
index and relevance_score per document, best match first
Rerank two documents with curl
curl https://api.greenpt.ai/v1/rerank \
  -H "Authorization: Bearer $GREENPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "green-rerank",
    "query": "How do I rotate an API key?",
    "documents": [
      "Rotate keys from the dashboard under API keys.",
      "Invoices are emailed on the first of the month."
    ],
    "top_n": 1
  }'

Prices

What green-rerank costs

Rates per million input tokens, read from the GreenPT price list when this page was built. Reranking has no output charge.

GreenPT API prices per model
ModelContextPrice (EUR, excl. VAT)
green-rerank32K
  • Price €0.12
per 1M tokens

See all models and rates

Use cases

What teams use green-rerank for

  • RAG pipelines

    Retrieve a wide set of passages with embeddings, rerank them, and send only the top_n to your chat model. Fewer, better passages mean fewer input tokens per answer.

  • Search relevance

    Reorder results from a vector database or search index by what the query means, not only by the words it shares with a document.

  • Hybrid search

    Merge keyword (BM25) and embedding results into one list and let the reranker decide the order.

  • Question answering

    Rank passages by how likely they are to contain the answer, then quote the best one.

  • Multilingual collections

    Score documents in more than 100 languages with one model and one API key.

Why GreenPT

Why run green-rerank on GreenPT

GreenPT is a Dutch company, GreenPT BV in Utrecht. EU inference is the default endpoint, not a region you opt into, and account, billing and usage data stay in the EU whichever endpoint you call.

  • EU endpoint by default; the US endpoint only when you call it by name.

  • Your prompts and outputs are never used for training.

  • One API key for chat, embeddings, rerank, OCR and speech.

  • Prepaid credits in euros that do not expire.

  • The energy and CO2 of every request in the response body.

green-rerank on GreenPT, in short

Where is green-rerank hosted?

green-rerank is served from GreenPT's EU endpoint, so your queries and documents are processed in EU data centres. Account, billing and usage data stay in the EU too, and GreenPT never trains on what you send.

How much does green-rerank cost?

green-rerank is billed per million input tokens in euros: the query and the documents you send. There is no output charge. The price table on this page shows the current rate from the GreenPT price list.

How do I call the green-rerank API?

POST JSON to https://api.greenpt.ai/v1/rerank with a Bearer API key, the model set to green-rerank, a query and a documents array. top_n limits how many results come back, and return_documents adds the text to each result. The same key works for chat and embeddings.

Why rerank after embedding search?

Embedding search compares a query vector with document vectors computed separately. That is fast, but it can miss how a document relates to the question. A cross-encoder such as green-rerank reads the query and each document together, so it orders a shortlist more precisely.

Do I need a subscription to use green-rerank?

No. Create a free API-only account, buy prepaid credits and pay per input token. Credits do not expire, and chat subscriptions are separate and optional.

Start building

Run green-rerank in the EU today.

A free API-only account, credits in euros and the base URL you already know how to use.

  • EU hosted
  • OpenAI-compatible
  • 100% renewable