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

# Introduction

> Welcome to NurmoAI API Docs

<img className="block rounded-lg" src="https://mintcdn.com/nurmonic/W9fp3QJRomGFU6bI/images/nurmo-api-page.png?fit=max&auto=format&n=W9fp3QJRomGFU6bI&q=85&s=2f1247b76e7d819e4fdc4a71d885c50d" alt="Hero Dark" width="2892" height="1104" data-path="images/nurmo-api-page.png" />

## Installation

<Info>
  **Prerequisite** You should have API key to use NurmoAI API.
</Info>

<CodeGroup>
  ```bash npm theme={null}
  npm i nurmoai
  ```

  ```bash pip theme={null}
  pip i nurmoai
  ```
</CodeGroup>

## Usage

<CodeGroup>
  ```javascript NodeJS theme={null}
  const NurmoAI = require("nurmoai");


  const nurmo = new NurmoAI({
    apiKey: process.env['NurmoAI_KEY'], // This is the default and can be omitted
  });

  async function Main() {
    const aiResponse = await nurmo.createCompletion({
      messages: [{ role: "user", content: "Say this is a test" }],
      model: "nurmo-3",
      character: "Batman"
    });

    console.log(aiResponse);
  }

  Main()
  ```

  ```python Python theme={null}
  from nurmoai import NurmoAI

  nurmo = NurmoAI(api_key="your_NurmoAI_api_key")

  def main():
      ai_response = nurmo.create_completion(
          messages=[{"role": "user", "content": "Say this is a test"}],
          model="nurmo-3",
          character="Villain"
      )

      print(ai_response)

  if __name__ == "__main__":
      main()
  ```

  ```bash cURL theme={null}
  curl -X POST 'https://api.nurmo.app/chat/completions' 
  -H 'Authorization: YOUR_API_KEY' 
  -H 'Content-Type: application/json' 
  -d '{"model": "nurmo-3", "messages": [{"role": "user", 
  "content": "Hello, how are you?"}], "character": "YOUR_CHARACTER"}'
  ```
</CodeGroup>
