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

# Quick start guide

> Get started with Orq.ai in 5 minutes. Create your first deployment, make LLM API calls, and start building AI applications with step-by-step instructions.

## Welcome to [**orq.ai**](http://orq.ai)

This page covers the fastest way to create an initial deployment and make a first LLM call through the platform.

### Prerequisite

An account within the [**AI Studio**](https://my.orq.ai) is required.

<Info>
  [Sign Up Here](https://orq.ai/create-account) to create an orq.ai Account.
</Info>

<iframe className="w-full aspect-video rounded-xl" src="https://www.youtube.com/embed/OhX3kZ3aDf0" title="How to run first deployment in Orq.ai?" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />

## Step 1: Setup an API Key with the available providers

To start using models, first add an API key with the chosen provider. To do so, open the [**AI Router > Providers**](/docs/integrations/providers/overview) tab, select a provider, and choose **Setup own API Key**.

<Frame caption="Choose from all our available providers and setup your API Key.">
  <img src="https://mintcdn.com/orqai/CEjcD9RgP-97n9Is/images/Screenshot2025-11-03at14.44.14.png?fit=max&auto=format&n=CEjcD9RgP-97n9Is&q=85&s=cfb735909af2572115540f7fc4bc4db0" alt="Screenshot2025 11 03at14 44 14 Pn" width="1813" height="986" data-path="images/Screenshot2025-11-03at14.44.14.png" />
</Frame>

<Frame caption="Enter your API key details to setup your provider integration (here OpenAI)">
  <img src="https://mintcdn.com/orqai/CEjcD9RgP-97n9Is/images/Screenshot2025-11-03at14.11.53.png?fit=max&auto=format&n=CEjcD9RgP-97n9Is&q=85&s=18b03f1a921a585fa0bf627126a2566d" alt="Screenshot 2025-11-03 at 14.11.53.png" width="613" height="528" data-path="images/Screenshot2025-11-03at14.11.53.png" />
</Frame>

<Info>
  To learn more about setting up Integrations, see [API keys & Endpoints](/docs/administer/api-keys).
</Info>

## Step 2: Enable models in the AI Router

Browse the [**AI Router**](/docs/model-garden/overview) by going to the **AI Router** tab.

Here, find all models available to use within **orq.ai**, including their capabilities and a short description. To make any model available, **toggle the button** next to its name, it will then be usable in a first [Deployment](/docs/deployments/overview). To use **custom API keys**, head to the [Providers](/docs/router/providers-overview) section.

<Frame caption="Orq.ai offers a wide variety of models to use, you can also bring your own keys to setup connection with our supported providers">
  <img src="https://mintcdn.com/orqai/CEjcD9RgP-97n9Is/images/Screenshot2025-11-03at14.12.53.png?fit=max&auto=format&n=CEjcD9RgP-97n9Is&q=85&s=2540ada3f0b1780f4daa87fbfe8d91d9" alt="Orq.ai offers a wide variety of models to use, you can also bring your own keys to setup connection with our supported providers" width="1810" height="1149" data-path="images/Screenshot2025-11-03at14.12.53.png" />
</Frame>

<Info>
  To learn more about all the models available, see [AI Router](/docs/model-garden/overview).
</Info>

## Step 3: Set up a first Deployment

To create a first deployment, head to the **Deployment** tab, then select **Create Deployment**.

<Frame caption="Here, name the deployment and select the model previously activated in the AI Router.">
  <img src="https://mintcdn.com/orqai/XYqVgbB5Yeu2cZks/images/docs/1e7dcc1-Screenshot_2024-07-23_at_14.57.31.png?fit=max&auto=format&n=XYqVgbB5Yeu2cZks&q=85&s=c4de178e09e8e1145ff68d38d095fe33" alt="Here, name the deployment and select the model previously activated in the AI Router." width="2334" height="1084" data-path="images/docs/1e7dcc1-Screenshot_2024-07-23_at_14.57.31.png" />
</Frame>

The Variant configuration screen will then appear. Here, select which parameters to use with the model and include the prompt(s) that will be sent to the language model.

<Frame caption="Many features are available when configuring a Deployment. To learn more see the Model Parameters documentation.">
  <img src="https://mintcdn.com/orqai/XYqVgbB5Yeu2cZks/images/docs/60168e1-iScreen_Shoter_-_Google_Chrome_-_240726145405.jpg?fit=max&auto=format&n=XYqVgbB5Yeu2cZks&q=85&s=a2f18506575a9a0e6d8e6a78aa21a0ad" alt="The Variant configuration screen showing prompt and model parameter settings for a Deployment." width="2493" height="842" data-path="images/docs/60168e1-iScreen_Shoter_-_Google_Chrome_-_240726145405.jpg" />
</Frame>

Once ready, press the **Deploy** button at the top-right to save the latest configuration and make it available through the API.

<Info>
  There are many more features available to configure a Deployment. Including setting up multiple models, fallbacks, function calling, etc. To learn more, see [Creating a Deployment](/docs/deployments/creating).
</Info>

## Step 4: Install the orq.ai SDK

Within the Deployment page, open the **code snippet** panel to find instructions to install and run the SDK for the current deployment.

<Frame caption="Select the code snippet button at the top-right. Instructions will open on the right side of the screen.">
  <img src="https://mintcdn.com/orqai/XYqVgbB5Yeu2cZks/images/docs/b9777e7-sdk_install.jpg?fit=max&auto=format&n=XYqVgbB5Yeu2cZks&q=85&s=39324fb7e75783d7f46af4075d4d55bb" alt="Select the code snippet button at the top-right. Instructions will open on the right side of the screen." width="2489" height="883" data-path="images/docs/b9777e7-sdk_install.jpg" />
</Frame>

Then, proceed to install the chosen SDK. Execute the following in a terminal to download the latest version of the SDK on the machine.

<CodeGroup>
  ```bash Bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
  npm install @orq-ai/node --save
  ```

  ```bash Bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
  !pip install orq-ai-sdk
  ```
</CodeGroup>

## Step 5: Get an API Token

An API key is needed to set up the client. This can be found within the **Workspace Settings > API Keys** menu.

<Frame caption="Find your API keys in the Workspace Settings.">
  <img src="https://mintcdn.com/orqai/CEjcD9RgP-97n9Is/images/Screenshot2025-11-03at14-49-52orq.aiDevelopers.png?fit=max&auto=format&n=CEjcD9RgP-97n9Is&q=85&s=01ace5ce3b6547831092d113437e61e2" alt="Find your API keys in the Workspace Settings." width="1815" height="1239" data-path="images/Screenshot2025-11-03at14-49-52orq.aiDevelopers.png" />
</Frame>

<Info>
  To learn more about API Authentication, see [Authentication](/docs/administer/api-keys).
</Info>

## Step 6: Use the SDK to invoke a Deployment

Once the API Token has been saved for use, refer back to the code snippet accessed before the Deployment to fetch the code to initialize and invoke a deployment:

> Don't forget to replace `<API_KEY>` with the API key fetched previously.

<CodeGroup>
  ```typescript TypeScript theme={"theme":{"light":"github-light","dark":"github-dark"}}
  import { Orq } from "@orq-ai/node";

  const client = new Orq({
    apiKey: '<API_KEY>',
    environment: 'production',
  });

  const deployment = await client.deployments.invoke({
    key: "quickstart-deployment",
    metadata: {
      "custom-field-name": "custom-metadata-value"
    }
  });
  ```

  ```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
  import os

  from orq_ai_sdk import Orq

  client = Orq(
    api_key=os.environ.get("ORQ_API_KEY", "<API_KEY>"),
    environment="production"
  )

  generation = client.deployments.invoke(
    key="quickstart-deployment",
    metadata={
      "custom-field-name": "custom-metadata-value"
    }
  )

  print(generation.choices[0].message.content)
  ```
</CodeGroup>

<Check>
  Congratulations, the first deployment invocation with **orq.ai** was successfully run. To learn more about deployments and all the possibilities they offer, see [Creating a Deployment](/docs/deployments/creating).
</Check>

## Step 7: Track projects and costs

<Frame caption="Orq.ai displays metrics about active deployments">
  <img src="https://mintcdn.com/orqai/xCGJswt9JG6tfS8D/images/dashboard-performance-overview.png?fit=max&auto=format&n=xCGJswt9JG6tfS8D&q=85&s=892277e48140660900e5b46cb63a4672" alt="Orq.ai displays metrics about active deployments" width="1705" height="922" data-path="images/dashboard-performance-overview.png" />
</Frame>

**orq.ai** allows tracking costs and projects grouped in [Identities](/docs/analytics/identity).

Pass an `identity_id` / `identityId` when initializing the client to associate all usage with a specific identity.

> Identities can also be created using the SDK. See how with the [Node SDK](https://github.com/orq-ai/orq-node/blob/main/docs/sdks/identities/README.md#create) and [Python SDK](https://github.com/orq-ai/orq-python/blob/main/docs/sdks/identities/README.md#create).

<CodeGroup>
  ```typescript TypeScript theme={"theme":{"light":"github-light","dark":"github-dark"}}
  import { Orq } from "@orq-ai/node";

  const client = new Orq({
    apiKey: '<API_KEY>',
    environment: 'production',
    identityId: '<identity-id>'
  });

  const deployment = await client.deployments.invoke({
    key: "quickstart-deployment",
    metadata: {
      "custom-field-name": "custom-metadata-value"
    }
  });
  ```

  ```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
  import os

  from orq_ai_sdk import Orq

  client = Orq(
    api_key=os.environ.get("ORQ_API_KEY", "<API_KEY>"),
    environment="production",
    identity_id="<identity_id>"
  )

  generation = client.deployments.invoke(
    key="quickstart-deployment",
    metadata={
      "custom-field-name": "custom-metadata-value"
    }
  )

  print(generation.choices[0].message.content)
  ```
</CodeGroup>

<Info>
  To learn more about Identities and the resulting Analytics, see [Using Identity Metrics](/docs/analytics/identity-metrics).
</Info>
