# ChatFireworks

> **Class** in `langchain_fireworks`

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

`Fireworks` Chat large language models API.

To use, you should have the
environment variable `FIREWORKS_API_KEY` set with your API key.

Any parameters that are valid to be passed to the fireworks.create call
can be passed in, even if not explicitly saved on this class.

## Signature

```python
ChatFireworks()
```

## Description

**Example:**

```python
from langchain_fireworks.chat_models import ChatFireworks

fireworks = ChatFireworks(model_name="accounts/fireworks/models/gpt-oss-120b")
```

## Extends

- `BaseChatModel`

## Properties

- `lc_secrets`
- `lc_attributes`
- `client`
- `async_client`
- `model_name`
- `model`
- `temperature`
- `stop`
- `model_kwargs`
- `fireworks_api_key`
- `fireworks_api_base`
- `request_timeout`
- `streaming`
- `n`
- `max_tokens`
- `max_retries`
- `model_config`

## Methods

- [`get_lc_namespace()`](https://reference.langchain.com/python/langchain-fireworks/chat_models/ChatFireworks/get_lc_namespace)
- [`is_lc_serializable()`](https://reference.langchain.com/python/langchain-fireworks/chat_models/ChatFireworks/is_lc_serializable)
- [`build_extra()`](https://reference.langchain.com/python/langchain-fireworks/chat_models/ChatFireworks/build_extra)
- [`validate_environment()`](https://reference.langchain.com/python/langchain-fireworks/chat_models/ChatFireworks/validate_environment)
- [`bind_tools()`](https://reference.langchain.com/python/langchain-fireworks/chat_models/ChatFireworks/bind_tools)
- [`with_structured_output()`](https://reference.langchain.com/python/langchain-fireworks/chat_models/ChatFireworks/with_structured_output)

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/8fec4e7ceee2c368b068c49f9fed453276e210e7/libs/partners/fireworks/langchain_fireworks/chat_models.py#L281)