POST /v1/rerank Authorization: Bearer tp_your_api_key Content-Type: application/json
model
GET /v1/models
rerank
query
documents
top_n
return_documents
user
curl -X POST "https://newapi.yxhhkj.com/v1/rerank" \ -H "Authorization: Bearer tp_your_api_key" \ -H "Content-Type: application/json" \ -d '{ "model": "rerank_model_from_models_api", "query": "model routing", "documents": [ "TokenPostie routes model calls.", "Billing must stay deterministic." ], "top_n": 1, "return_documents": true }'
Rerank 优先按输入 token 处理。如果上游只返回 search_units 等非 token 计量,TokenPostie 会把用量标记为需要复核,避免直接形成错误账单。
search_units