---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://catboost.ai/docs/en/concepts/python-reference_dictionary_min_unused_token_id.md
  - href: en/concepts/python-reference_dictionary_min_unused_token_id.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://catboost.ai/docs/en/llms.txt

# min_unused_token_id

<!-- source: en/_includes/work_src/reusage-tokenizer/min_unused_token_id.md -->
Get the smallest unused token identifier.
<!-- endsource: en/_includes/work_src/reusage-tokenizer/min_unused_token_id.md -->

Identifiers are assigned consistently to all input tokens. Some additional identifiers are reserved for internal needs. This method returns the first unused identifier.

All further identifiers are assumed to be unassigned to any token.

## Method call format {#call-format}

```
min_unused_token_id()
```

## Type of return value {#return-value}

int

## Example {#example}

```python
from catboost.text_processing import Dictionary

dictionary = Dictionary(occurence_lower_bound=0)\
    .fit(["his", "tender", "heir", "whatever"])

print(dictionary.min_unused_token_id)

```

Output:
```bash
6
```

