# Writer

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/llms/writer/Writer)

Writer large language models.

To use, you should have the ``writer-sdk`` Python package installed, and the
environment variable ``WRITER_API_KEY`` set with your API key.

## Signature

```python
Writer()
```

## Description

**Example:**

.. code-block:: python

from langchain_community.llms import Writer as WriterLLM
from writerai import Writer, AsyncWriter

client = Writer()
async_client = AsyncWriter()

chat = WriterLLM(
    client=client,
    async_client=async_client
)

## Extends

- `LLM`

## Properties

- `client`
- `async_client`
- `api_key`
- `model_name`
- `max_tokens`
- `temperature`
- `top_p`
- `stop`
- `best_of`
- `model_kwargs`
- `model_config`

## Methods

- [`validate_environment()`](https://reference.langchain.com/python/langchain-community/llms/writer/Writer/validate_environment)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/llms/writer.py#L13)