> ## 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.oai.together.calculate_together_cost

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

#### calculate\_together\_cost

```python theme={null}
calculate_together_cost(
    input_tokens: int,
    output_tokens: int,
    model_name: str
) -> float
```

Cost calculation for inference

<b>Parameters:</b>

| Name            | Description   |
| --------------- | ------------- |
| `input_tokens`  | **Type:** int |
| `output_tokens` | **Type:** int |
| `model_name`    | **Type:** str |

<br />
