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

# ChatTokenLogprob - Python SDK

> ChatTokenLogprob method reference

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

Token log probability information

## Fields

| Field          | Type                                                                                                                    | Required             | Description                               |
| -------------- | ----------------------------------------------------------------------------------------------------------------------- | -------------------- | ----------------------------------------- |
| `bytes_`       | List\[*int*]                                                                                                            | :heavy\_check\_mark: | UTF-8 bytes of the token                  |
| `logprob`      | *float*                                                                                                                 | :heavy\_check\_mark: | Log probability of the token              |
| `token`        | *str*                                                                                                                   | :heavy\_check\_mark: | The token                                 |
| `top_logprobs` | List\[[components.ChatTokenLogprobTopLogprob](/client-sdks/python/api-reference/components/chattokenlogprobtoplogprob)] | :heavy\_check\_mark: | Top alternative tokens with probabilities |
