> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-mintlify-5b6e02fd.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CreateRerankResponseBody - Python SDK

> CreateRerankResponseBody method reference

<Warning>
  The Python SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/python-sdk/issues).
</Warning>

Rerank response containing ranked results

## Fields

| Field      | Type                                                                            | Required             | Description                                             | Example                                                                                                                          |
| ---------- | ------------------------------------------------------------------------------- | -------------------- | ------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| `id`       | *Optional\[str]*                                                                | :heavy\_minus\_sign: | Unique identifier for the rerank response (ORID format) | gen-rerank-1234567890-abc                                                                                                        |
| `model`    | *str*                                                                           | :heavy\_check\_mark: | The model used for reranking                            | cohere/rerank-v3.5                                                                                                               |
| `provider` | *Optional\[str]*                                                                | :heavy\_minus\_sign: | The provider that served the rerank request             | Cohere                                                                                                                           |
| `results`  | List\[[operations.Result](/client-sdks/python/api-reference/operations/result)] | :heavy\_check\_mark: | List of rerank results sorted by relevance              | \[<br />`{"document": {"text": "Paris is the capital of France."}`,<br />"index": 0,<br />"relevance\_score": 0.98<br />}<br />] |
| `usage`    | [Optional\[operations.CreateRerankUsage\]](../operations/creatererankusage.md)  | :heavy\_minus\_sign: | Usage statistics                                        | `{"search_units": 1,"total_tokens": 150}`                                                                                        |
