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

# Quick Start

> Install the Literal AI client and get your API key

> [card] [Instrument your Code](https://docs.literalai.com/get-started/quick-start.md#logging-llm-generations-agent-runs-or-conversation-threads)
>
> Install the Literal AI SDK and get your API key.

> [card] [Create your first Prompt from the Playground](https://docs.literalai.com/guides/playground.md)
>
> Create, version and A/B test your prompts in the Prompt Playground.

## Logging LLM Generations, Agent Runs or Conversation Threads

**1. Install the Literal AI package**

```shell Python theme={null}
pip install literalai
```

```shell TypeScript theme={null}
npm i @literalai/client
```

**2. Instantiate the Literal AI client**

```python Python theme={null}
import os
from literalai import LiteralClient

# Not compatible with gunicorn's --preload flag
literalai_client = LiteralClient(api_key=os.getenv("LITERAL_API_KEY")) # This is the default and can be omitted
```

```typescript TypeScript theme={null}
import { LiteralClient } from '@literalai/client';

const literalAiClient = new LiteralClient({apiKey: process.env["LITERAL_API_KEY"]}); // This is the default and can be omitted

```

**3. Get your Literal AI API Key**

Go to your [project page](https://cloud.getliteral.ai) and click on the **Settings** tab. You will find your API key in the **API Key** section.

![Literal AI API key](https://mintcdn.com/chainlit-5/SattO4WPsa_7pLDy/images/api_key.png?fit=max\&auto=format\&n=SattO4WPsa_7pLDy\&q=85\&s=8a8e0a1bf94d8cd3bf2d61b85069abb2)

Copy your API key

## Start logging LLM generations and agent runs

Literal AI provides

1. low-level SDKs in Python and TypeScript
2. integrations with LLM providers (OpenAI, etc.) and AI frameworks (LangChain, LlamaIndex, Vercel AI SDK, etc.)

> [card] [Logging](https://docs.literalai.com/guides/logs.md)
>
> Learn how to instrument your code with the Literal AI SDK.

> [card] [Integrations](https://docs.literalai.com/integrations)
>
> Browse the list of integrations available with Literal AI.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.