> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# CreateRerankRequest

Rerank request input

## Fields

| Field       | Type                                                                                                                  | Required             | Description                                                                                                                                                                                                                                    | Example                                                                                    |
| ----------- | --------------------------------------------------------------------------------------------------------------------- | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
| `Documents` | \[][operations.Document](../../models/operations/document.mdx)                                                        | :heavy\_check\_mark: | The list of documents to rerank. Documents may be plain strings, or structured objects with `text` and/or `image` for multimodal models.                                                                                                       | \[<br />"Paris is the capital of France.",<br />"Berlin is the capital of Germany."<br />] |
| `Model`     | `string`                                                                                                              | :heavy\_check\_mark: | The rerank model to use                                                                                                                                                                                                                        | cohere/rerank-v3.5                                                                         |
| `Provider`  | optionalnullable.OptionalNullable\[[components.ProviderPreferences](../../models/components/providerpreferences.mdx)] | :heavy\_minus\_sign: | N/A                                                                                                                                                                                                                                            | \{<br />"allow\_fallbacks": true<br />}                                                    |
| `Query`     | `string`                                                                                                              | :heavy\_check\_mark: | The search query to rerank documents against                                                                                                                                                                                                   | What is the capital of France?                                                             |
| `TopN`      | `*int64`                                                                                                              | :heavy\_minus\_sign: | Number of most relevant documents to return                                                                                                                                                                                                    | 3                                                                                          |
| `Trace`     | [\*components.TraceConfig](../../models/components/traceconfig.mdx)                                                   | :heavy\_minus\_sign: | Metadata for observability and tracing. Known keys (trace\_id, trace\_name, span\_name, generation\_name, parent\_span\_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations. | \{<br />"trace\_id": "trace-abc123",<br />"trace\_name": "my-app-trace"<br />}             |
| `User`      | `*string`                                                                                                             | :heavy\_minus\_sign: | A unique identifier representing your end-user. Forwarded to Broadcast and private logging as the end-user id; never sent to the provider.                                                                                                     | user-1234                                                                                  |
