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

# Quickstart

> Know how to install the Basalt SDK, get your first prompt and start monitoring. **(~2 minutes)**

This guide will get you all set up and ready to use the Basalt API. We'll cover how to get started using our Python and JavaScript/TypeScript SDKs and how to make your first request. We'll also look at where to go next to find all the information you need to take full advantage of our SDKs.

<Info>
  **Prerequisites:** Before you begin, make sure to have an [account on Basalt](https://app.getbasalt.ai).
</Info>

## Getting Started

<Steps>
  <Step title="Install the SDK">
    First, install the SDK for your language.

    <CodeGroup>
      ```bash TypeScript theme={null}
      npm install @basalt-ai/sdk
      ```

      ```bash Python theme={null}
      pip install basalt-sdk
      ```
    </CodeGroup>
  </Step>

  <Step title="Instantiate Basalt">
    Instantiate the SDK with your API key. If you don't have one, you can get it from the [Basalt Dashboard](https://app.getbasalt.ai).

    <CodeGroup>
      ```typescript TypeScript theme={null}
      import { Basalt } from '@basalt-ai/sdk';

      const basalt = new Basalt({ apiKey: 'your-api-key' });
      ```

      ```python Python theme={null}
      from basalt import Basalt

      basalt = Basalt(api_key='your-api-key')
      ```
    </CodeGroup>
  </Step>

  <Step title="Get your prompt">
    Get your first prompt using the `basalt.prompt.get` method with the `slug`of your prompt as parameter.

    <Info>
      Only deployed prompts can be retrieve with this method. To know how to deploy your prompt and get your slug, follow [our guide](/docs/getting-started/api-keys).
    </Info>

    <CodeGroup>
      ```typescript TypeScript theme={null}
      const { value } = await basalt.prompt.get('my-prompt-slug')
      ```

      ```python Python theme={null}
      error, prompt, generation = await basalt.prompt.get('my-prompt-slug')
      ```
    </CodeGroup>

    Learn more about how to get your prompt and discover all the available options in the [Prompts documentation](/prompts/introduction).
  </Step>

  <Step title="Monitor the output">
    After getting your prompt, you can easily monitor the output of your LLM, pushing it back to Basalt.

    <CodeGroup>
      ```typescript TypeScript theme={null}
      const { value, generation } = await basalt.prompt.get('my-prompt-slug')

      const output = await myLLMFunction(value.text) // call your own LLM function with the retrieved prompt and get the output

      generation.end(output)
      ```

      ```python Python theme={null}
      error, prompt, generation = await basalt.prompt.get('my-prompt-slug')

      output = my_llm_function(prompt.text) # call your own LLM function with the retrieved prompt and get the output

      generation.end(output)
      ```
    </CodeGroup>

    Learn more about how to monitor your prompt, discover all the available options and more advanced use cases in the [Monitoring documentation](/monitoring/introduction).
  </Step>
</Steps>

## Next Steps

<CardGroup cols={2}>
  <Card title="Prompts" icon="comment-dots" href="/prompts/introduction">
    Discover how to use Basalt as your Prompt Management System
  </Card>

  <Card title="Monitoring" icon="chart-line" href="/monitoring/introduction">
    See how to monitor your AI features
  </Card>
</CardGroup>
