> ## 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.

# OpenRouterMetadata - Python SDK

> OpenRouterMetadata method reference

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

## Fields

| Field       | Type                                                                                           | Required             | Description | Example                                                                                                           |
| ----------- | ---------------------------------------------------------------------------------------------- | -------------------- | ----------- | ----------------------------------------------------------------------------------------------------------------- |
| `attempt`   | *int*                                                                                          | :heavy\_check\_mark: | N/A         |                                                                                                                   |
| `attempts`  | List\[[components.RouterAttempt](/client-sdks/python/api-reference/components/routerattempt)]  | :heavy\_minus\_sign: | N/A         |                                                                                                                   |
| `endpoints` | [components.EndpointsMetadata](/client-sdks/python/api-reference/components/endpointsmetadata) | :heavy\_check\_mark: | N/A         | `{"available": [{"model": "openai/gpt-4o","provider": "OpenAI","selected": true}`<br />],<br />"total": `3<br/>`} |
| `is_byok`   | *bool*                                                                                         | :heavy\_check\_mark: | N/A         |                                                                                                                   |
| `params`    | [Optional\[components.RouterParams\]](../components/routerparams.md)                           | :heavy\_minus\_sign: | N/A         | `{"version_group": "anthropic/claude-sonnet-4"}`                                                                  |
| `pipeline`  | List\[[components.PipelineStage](/client-sdks/python/api-reference/components/pipelinestage)]  | :heavy\_minus\_sign: | N/A         |                                                                                                                   |
| `region`    | *Nullable\[str]*                                                                               | :heavy\_check\_mark: | N/A         |                                                                                                                   |
| `requested` | *str*                                                                                          | :heavy\_check\_mark: | N/A         |                                                                                                                   |
| `strategy`  | [components.RoutingStrategy](/client-sdks/python/api-reference/components/routingstrategy)     | :heavy\_check\_mark: | N/A         | direct                                                                                                            |
| `summary`   | *str*                                                                                          | :heavy\_check\_mark: | N/A         |                                                                                                                   |
