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

# autogen.token_count_utils.token_left

<code class="doc-symbol doc-symbol-heading doc-symbol-function" />

#### token\_left

```python theme={null}
token_left(input: str | list[str] | dict[str, Any], model='gpt-3.5-turbo-0613') -> int
```

Count number of tokens left for an OpenAI model.<br />

<b>Parameters:</b>

| Name                         | Description                                                                                             |
| ---------------------------- | ------------------------------------------------------------------------------------------------------- |
| `input`                      | (str, list, dict): Input to the model.<br /><br />**Type:** str \| list\[str] \| dict\[str, typing.Any] |
| `model='gpt-3.5-turbo-0613'` |                                                                                                         |

<b>Returns:</b>

| Type | Description                                                       |
| ---- | ----------------------------------------------------------------- |
| int  | int: Number of tokens left that the model can use for completion. |

<br />
