Green Rerank
About GreenPT Green Rerank
Reorder a list of documents by their relevance to a query, to improve search and retrieval-augmented generation.
GreenPT Green Rerank is a GreenPT model available on Eden AI through its OpenAI-compatible API, from $0.134 / 1M tokens. Call it with the same API key as every other Eden AI model by sending its model ID to the /v3/rerank endpoint, or through any OpenAI SDK, with processing in Europe.
Tasks and prices
GreenPT Green Rerank is available on Eden AI for 1 tasks. It is served through Eden AI's OpenAI-compatible API: send its model ID to the /v3/rerank endpoint with your Eden AI API key.
Parameters
What you send and what you get back when you call GreenPT Green Rerank through Eden AI. The same fields work with every model of the same task, so you can switch model without changing your code.
Input
- model (required): text. The model ID, as provider/model.
- query (required): text. The search query.
- documents (required): list. The documents to rank against the query.
- top_n: number. How many results to return.
Response
- results
Estimate your monthly cost
Enter your monthly volume for Rerank to compare GreenPT Green Rerank with its cheapest alternatives.
Call GreenPT Green Rerank with Eden AI
Send the model ID to the OpenAI-compatible /v3/rerank endpoint. Any OpenAI SDK works too: set its base URL to https://api.edenai.run/v3.
import requests
response = requests.post(
"https://api.edenai.run/v3/rerank",
headers={"Authorization": "Bearer YOUR_EDENAI_API_KEY"},
json={
"model": "greenpt/green-rerank",
"query": "How do I reset my password?",
"documents": [
"Billing happens on the first day of each month.",
"To reset your password, open Settings and choose Security.",
],
"top_n": 1,
},
)
print(response.json())
curl https://api.edenai.run/v3/rerank \
-H "Authorization: Bearer YOUR_EDENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "greenpt/green-rerank", "query": "How do I reset my password?", "documents": ["Billing happens on the first day of each month.", "To reset your password, open Settings and choose Security."], "top_n": 1}'
const response = await fetch("https://api.edenai.run/v3/rerank", {
method: "POST",
headers: {
Authorization: "Bearer YOUR_EDENAI_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "greenpt/green-rerank",
query: "How do I reset my password?",
documents: [
"Billing happens on the first day of each month.",
"To reset your password, open Settings and choose Security.",
],
top_n: 1,
}),
});
console.log(await response.json());
Questions about GreenPT Green Rerank
On Eden AI, GreenPT Green Rerank costs $0.134 / 1M tokens for Rerank. The Tasks and prices table lists the price for each task, and you only pay for what you use.
On Eden AI, GreenPT Green Rerank is available for: Rerank. Input: Text. Output: results.
Eden AI offers Rerank from 9 providers, all callable with the same API key. The cheapest models are compared just below.
Alternatives for Rerank
Other Rerank models you can call with the same key, cheapest first.
More from GreenPT
Other GreenPT models on Eden AI, for every task.






