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

# Portkey

> Portkey utilities for portkey integration utilities.

[View module source on GitHub](https://github.com/maximhq/maxim-py/blob/main/maxim/logger/portkey/portkey.py)

This module is a wrapper around the Portkey client that allows for easy integration with [Maxim](/sdk/python/references/maxim).

It instruments the Portkey client to log to [Maxim](/sdk/python/references/maxim).

It also provides a wrapper around the Portkey chat-completions client that allows for easy integration with [Maxim](/sdk/python/references/maxim).

## [MaximPortkeyClient](/sdk/python/references/logger/portkey/portkey)

```python theme={null}
class MaximPortkeyClient()
```

[Maxim](/sdk/python/references/maxim) instrumenter for Portkey client that directly handles chat.completion method.

#### \_\_getattr\_\_

```python theme={null}
def __getattr__(name)
```

Delegate all other attributes to the underlying Portkey client.

## [MaximPortkeyChat](/sdk/python/references/logger/portkey/portkey)

```python theme={null}
class MaximPortkeyChat()
```

[Maxim](/sdk/python/references/maxim) instrumenter for Portkey chat functionality.

#### \_\_getattr\_\_

```python theme={null}
def __getattr__(name)
```

Delegate all other attributes to the underlying chat client.

## [MaximAsyncPortkeyChat](/sdk/python/references/logger/portkey/portkey)

```python theme={null}
class MaximAsyncPortkeyChat()
```

[Maxim](/sdk/python/references/maxim) instrumenter for async Portkey chat functionality.

#### \_\_getattr\_\_

```python theme={null}
def __getattr__(name)
```

Delegate all other attributes to the underlying chat client.

## [MaximPortkeyChatCompletions](/sdk/python/references/logger/portkey/portkey)

```python theme={null}
class MaximPortkeyChatCompletions()
```

[Maxim](/sdk/python/references/maxim) instrumenter for Portkey chat completions.

#### create

```python theme={null}
def create(*args, **kwargs)
```

Instrumented create method that logs to [Maxim](/sdk/python/references/maxim).

#### \_\_getattr\_\_

```python theme={null}
def __getattr__(name)
```

Delegate all other attributes to the underlying completions client.

## [MaximAsyncPortkeyChatCompletions](/sdk/python/references/logger/portkey/portkey)

```python theme={null}
class MaximAsyncPortkeyChatCompletions()
```

[Maxim](/sdk/python/references/maxim) instrumenter for async Portkey chat completions.

#### create

```python theme={null}
async def create(*args, **kwargs)
```

Instrumented async create method that logs to [Maxim](/sdk/python/references/maxim).

#### \_\_getattr\_\_

```python theme={null}
def __getattr__(name)
```

Delegate all other attributes to the underlying completions client.
