# Konko

> **Class** in `langchain_community`

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

Konko AI models.

To use, you'll need an API key. This can be passed in as init param
``konko_api_key`` or set as environment variable ``KONKO_API_KEY``.

Konko AI API reference: https://docs.konko.ai/reference/

## Signature

```python
Konko()
```

## Extends

- `LLM`

## Properties

- `base_url`
- `konko_api_key`
- `model`
- `temperature`
- `top_p`
- `top_k`
- `max_tokens`
- `repetition_penalty`
- `logprobs`
- `model_config`
- `default_params`

## Methods

- [`validate_environment()`](https://reference.langchain.com/python/langchain-community/llms/konko/Konko/validate_environment)
- [`construct_payload()`](https://reference.langchain.com/python/langchain-community/llms/konko/Konko/construct_payload)
- [`get_user_agent()`](https://reference.langchain.com/python/langchain-community/llms/konko/Konko/get_user_agent)

---

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