gigarouter
documentation

Docs

Base URL https://gigarouter.ai/v1. Authenticate with Authorization: Bearer <key>. Get a key (free credit included).

Rerank (curl)
# scores documents by relevance to the query; billed per document
curl https://gigarouter.ai/v1/rerank \
  -H "Authorization: Bearer $GR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"cross-encoder/ms-marco-MiniLM-L6-v2",
       "query":"how do I reset my password",
       "documents":["Password reset steps...","Billing FAQ..."]}'
Rerank (Python)
# plain requests - no SDK needed
import requests
r = requests.post("https://gigarouter.ai/v1/rerank",
  headers={"Authorization": f"Bearer {KEY}"},
  json={"model": "cross-encoder/ms-marco-MiniLM-L6-v2",
        "query": query,
        "documents": docs})
for hit in r.json()["results"]:
    print(hit["index"], hit["relevance_score"])
Embeddings (OpenAI client)
# the OpenAI SDK works - just change base_url
from openai import OpenAI
client = OpenAI(base_url="https://gigarouter.ai/v1", api_key=KEY)
v = client.embeddings.create(
  model="Qwen/Qwen3-Embedding-0.6B", input=["hello world"])
print(v.data[0].embedding[:4])
notes