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

# Quick Start

> Get started with Dakora in 5 minutes. Create your API key, use starter templates, and render your first prompt.

Follow these steps to start optimizing your AI costs with Dakora.

<Steps>
  <Step title="Create your account">
    Sign up at [Dakora Studio](https://playground.dakora.io) to get started.

    Each project has its own templates, API keys, and cost analytics. It perfect for separating development, staging, and production environments.
  </Step>

  <Step title="Generate an API key">
    Navigate to **Settings → API Keys** and click **New Key**. Give your key a name, set an expiration (or choose "Never"), and click **Create Key**.

    <Frame>
      <img src="https://mintcdn.com/dakora/mqF35kbrCE-AqvU1/assets/screenshots/create-api-key.png?fit=max&auto=format&n=mqF35kbrCE-AqvU1&q=85&s=bb274fa10b2a439eaece42a9eac36404" alt="API Keys settings page" width="1390" height="539" data-path="assets/screenshots/create-api-key.png" />
    </Frame>

    <Warning>
      Copy your API key immediately - it's only shown once. Store it securely.
    </Warning>
  </Step>

  <Step title="Explore starter templates">
    Every new project comes with starter templates to help you get going quickly.

    <Frame>
      <img src="https://mintcdn.com/dakora/mqF35kbrCE-AqvU1/assets/screenshots/starter-templates.png?fit=max&auto=format&n=mqF35kbrCE-AqvU1&q=85&s=43b87c3827585c6f5b174c4f11157e97" alt="Templates list with starter templates" width="1009" height="465" data-path="assets/screenshots/starter-templates.png" />
    </Frame>

    You can use these templates as-is, customize them, or create your own from scratch in the Studio.
  </Step>

  <Step title="Render and execute your first prompt">
    Install the Dakora SDK and instrumentation packages:

    ```bash theme={null}
    pip install dakora dakora-instrumentation
    pip install opentelemetry-sdk opentelemetry-exporter-otlp-proto-http
    pip install openai opentelemetry-instrumentation-openai
    ```

    Make your API keys available as environment variables: `DAKORA_API_KEY` and `OPENAI_API_KEY` (via `.env` file or your preferred method).

    Now set up instrumentation to track your LLM calls, then render a template and use it with your LLM:

    ```python theme={null}
    import asyncio
    import os
    from opentelemetry.instrumentation.openai import OpenAIInstrumentor

    # Instrument OpenAI before importing it
    OpenAIInstrumentor().instrument()

    from dakora import Dakora
    from dakora_instrumentation.generic import setup_instrumentation
    from openai import OpenAI

    async def main():
        # Initialize Dakora client
        dakora = Dakora()

        # Setup instrumentation to track executions
        setup_instrumentation(
            dakora_client=dakora,
            service_name="my-app"
        )

        # Render the FAQ responder template
        result = await dakora.prompts.render(
            "faq_responder",
            {
                "question": "How do I reset my password?",
                "knowledge_base": "Users can reset passwords via Settings > Security > Reset Password.",
            },
        )

        # Use the rendered template with OpenAI (automatically traced)
        client = OpenAI(api_key=os.getenv("OPENAI_API_KEY"))
        response = client.chat.completions.create(
            model="gpt-4o-mini",
            messages=[{"role": "user", "content": result.text}],
        )

        print(response.choices[0].message.content)

        await dakora.close()

    asyncio.run(main())
    ```

    The instrumentation automatically captures token usage, costs, and latency for every LLM call.
  </Step>

  <Step title="View your execution">
    Check the [Dakora Studio executions](https://playground.dakora.io/project/default/executions) to see your trace with full analytics.

    <Frame>
      <img src="https://mintcdn.com/dakora/mqF35kbrCE-AqvU1/assets/screenshots/executions-page.png?fit=max&auto=format&n=mqF35kbrCE-AqvU1&q=85&s=a741d9e3ed51c9a4af589d751182a11d" alt="Executions page" width="1144" height="828" data-path="assets/screenshots/executions-page.png" />
    </Frame>

    See token usage, costs per model, and identify optimization opportunities.
  </Step>
</Steps>

## Next Steps

<CardGroup cols={2}>
  <Card title="Templates" icon="file-lines" href="/concepts/templates">
    Learn how to create and manage prompt templates
  </Card>

  <Card title="Try the Studio" icon="play" href="/features/studio">
    Test your templates with real inputs before deploying
  </Card>

  <Card title="Cost Analytics" icon="chart-line" href="/features/logging">
    Understand your execution logs and cost data
  </Card>

  <Card title="Budget Controls" icon="shield-check" href="/features/project-budgets">
    Set up spending limits and alerts
  </Card>
</CardGroup>
