LiteLLM Rerank API

The Rerank API from LiteLLM — 1 operation(s) for rerank.

OpenAPI Specification

litellm-rerank-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: LiteLLM Proxy Assistants Rerank API
  description: Minimal OpenAPI 3.1 specification for the LiteLLM proxy server, covering chat completions, completions, embeddings, audio, images, moderations, fine-tuning, batches, assistants, vector stores, messages, OCR, rerank, and RAG endpoints.
  version: 1.0.0
servers:
- url: http://localhost:4000
  description: LiteLLM proxy server
tags:
- name: Rerank
paths:
  /rerank:
    post:
      operationId: rerankDocuments
      summary: Rerank documents against a query
      responses:
        '200':
          description: Rerank result
        default:
          description: Error response
      tags:
      - Rerank
x-generated-from: https://docs.litellm.ai/docs/completion
x-generated-by: claude-crawl-2026-05-08