# ChatLiteLLM

> **Class** in `langchain_litellm`

📖 [View in docs](https://reference.langchain.com/python/langchain-litellm/chat_models/litellm/ChatLiteLLM)

Chat model that uses the LiteLLM API.

## Signature

```python
ChatLiteLLM()
```

## Extends

- `BaseChatModel`

## Properties

- `client`
- `model`
- `model_name`
- `stream_options`
- `openai_api_key`
- `azure_api_key`
- `anthropic_api_key`
- `replicate_api_key`
- `cohere_api_key`
- `openrouter_api_key`
- `api_key`
- `streaming`
- `api_base`
- `organization`
- `custom_llm_provider`
- `base_model`
- `extra_headers`
- `request_timeout`
- `temperature`
- `model_kwargs`
- `top_p`
- `top_k`
- `n`
- `max_tokens`
- `num_ctx`
- `max_retries`

## Methods

- [`completion_with_retry()`](https://reference.langchain.com/python/langchain-litellm/chat_models/litellm/ChatLiteLLM/completion_with_retry)
- [`acompletion_with_retry()`](https://reference.langchain.com/python/langchain-litellm/chat_models/litellm/ChatLiteLLM/acompletion_with_retry)
- [`validate_environment()`](https://reference.langchain.com/python/langchain-litellm/chat_models/litellm/ChatLiteLLM/validate_environment)
- [`bind_tools()`](https://reference.langchain.com/python/langchain-litellm/chat_models/litellm/ChatLiteLLM/bind_tools)
- [`with_structured_output()`](https://reference.langchain.com/python/langchain-litellm/chat_models/litellm/ChatLiteLLM/with_structured_output)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-litellm/blob/d166813e37b312df5bb379de181413abbcd8ec83/langchain_litellm/chat_models/litellm.py#L395)