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

# Quickstart

> Connect to Lapathoniia API in 2 minutes

<Tabs sync={false}>
  <Tab title="EN">
    ## What is Lapathoniia?

    Lapathoniia is Ukraine's first LLM inference provider. We host Ukrainian language models **LapaLLM** and **MamayLM** on Ukrainian infrastructure (De Novo GPUs).

    The API is fully OpenAI-compatible — just swap the `base_url` and your existing code works immediately.

    ## 1. Get your API key

    Sign up and get an API key at [lapathoniia.top/dashboard](https://lapathoniia.top/dashboard).

    ## 2. First request

    <CodeGroup>
      ```python Python theme={null}
      from openai import OpenAI

      client = OpenAI(
          api_key="YOUR_API_KEY",
          base_url="https://api.lapathoniia.top/v1",
      )

      response = client.chat.completions.create(
          model="LapaLLM-Gemma-3-12B-v0.1.2-instruct",
          messages=[{"role": "user", "content": "Hello!"}],
      )
      print(response.choices[0].message.content)
      ```

      ```bash cURL theme={null}
      curl https://api.lapathoniia.top/v1/chat/completions \
        -H "Authorization: Bearer YOUR_API_KEY" \
        -H "Content-Type: application/json" \
        -d '{
          "model": "LapaLLM-Gemma-3-12B-v0.1.2-instruct",
          "messages": [{"role": "user", "content": "Hello!"}]
        }'
      ```

      ```javascript JavaScript theme={null}
      import OpenAI from 'openai';

      const client = new OpenAI({
        apiKey: 'YOUR_API_KEY',
        baseURL: 'https://api.lapathoniia.top/v1',
      });

      const response = await client.chat.completions.create({
        model: 'LapaLLM-Gemma-3-12B-v0.1.2-instruct',
        messages: [{ role: 'user', content: 'Hello!' }],
      });
      console.log(response.choices[0].message.content);
      ```
    </CodeGroup>

    ## 3. What's next?

    <CardGroup cols={2}>
      <Card title="Models" icon="brain" href="/models">
        LapaLLM 32K, MamayLM 64K, Рада, Rukopys OCR
      </Card>

      <Card title="Usage & Limits" icon="gauge" href="/api/usage-limits">
        Check current budget and OCR quota in real time
      </Card>

      <Card title="Batch Mode" icon="layer-group" href="/guides/batch-mode">
        Async document processing, 40% cheaper
      </Card>

      <Card title="Use Cases" icon="lightbulb" href="/guides/use-cases">
        OCR+LLM, RAG, MCP connectors, web search
      </Card>
    </CardGroup>
  </Tab>

  <Tab title="UA">
    ## What is Lapathoniia?

    Lapathoniia — перший в Україні LLM inference провайдер. Ми хостимо українські мовні моделі **LapaLLM** та **MamayLM** на власній інфраструктурі в Україні (De Novo GPUs).

    API повністю сумісне з OpenAI — підставте наш `base_url` і ваш існуючий код одразу запрацює.

    ## 1. Отримайте ключ

    Зареєструйтесь і отримайте API ключ на [lapathoniia.top/dashboard](https://lapathoniia.top/dashboard).

    ## 2. Перший запит

    <CodeGroup>
      ```python Python theme={null}
      from openai import OpenAI

      client = OpenAI(
          api_key="YOUR_API_KEY",
          base_url="https://api.lapathoniia.top/v1",
      )

      response = client.chat.completions.create(
          model="LapaLLM-Gemma-3-12B-v0.1.2-instruct",
          messages=[{"role": "user", "content": "Привіт!"}],
      )
      print(response.choices[0].message.content)
      ```

      ```bash cURL theme={null}
      curl https://api.lapathoniia.top/v1/chat/completions \
        -H "Authorization: Bearer YOUR_API_KEY" \
        -H "Content-Type: application/json" \
        -d '{
          "model": "LapaLLM-Gemma-3-12B-v0.1.2-instruct",
          "messages": [{"role": "user", "content": "Привіт!"}]
        }'
      ```
    </CodeGroup>

    ## 3. Що далі?

    <CardGroup cols={2}>
      <Card title="Моделі" icon="brain" href="/models">
        LapaLLM 32K, MamayLM 64K, Рада, Rukopys OCR
      </Card>

      <Card title="Ліміти та бюджет" icon="gauge" href="/api/usage-limits">
        Перевірте поточний бюджет та OCR квоту
      </Card>

      <Card title="Batch режим" icon="layer-group" href="/guides/batch-mode">
        Асинхронна обробка документів, на 40% дешевше
      </Card>

      <Card title="Кейси використання" icon="lightbulb" href="/guides/use-cases">
        OCR+LLM, RAG, MCP конектори, веб-пошук
      </Card>
    </CardGroup>
  </Tab>
</Tabs>
