> ## 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.

# Simple deployment pattern

> Implement simple deployment architecture for LLM applications. Quick-start pattern for straightforward AI integration with minimal configuration overhead.

## Objective

The Simple Deployment architecture provides the most straightforward way to integrate Orq.ai into your application as an AI Gateway. This pattern serves as the primary entry point for routing LLM calls through the Orq.ai platform, enabling you to benefit from unified routing, monitoring, and security features while maintaining a clean separation between your application logic and AI model configurations.

## Use Case

Simple Deployment is ideal for applications that need:

* **Single Model Integration**: Applications requiring one primary LLM interaction pattern.
* **Straightforward AI Features**: Chat interfaces, content generation, or text processing workflows.
* **Rapid Prototyping**: Quick integration for testing AI capabilities in existing systems.
* **Centralized Management**: Teams wanting to manage AI configurations outside of application code.
* **Standard LLM Operations**: Text completion, chat completion, or simple prompt-response patterns.

## Prerequisite

Before configuring a Simple Deployment, ensure you have:

* **Orq.ai Account**: Active workspace in the AI Studio.
* **API Access**: Valid API key from [Workspace Settings > API Keys](/docs/administer/api-keys).
* **Model Access**: At least one model enabled in the [AI Router](/docs/model-garden/overview), see [Using the AI Router](/docs/model-garden/using-ui).

## Configuring a Deployment

To create a [Deployment](/docs/deployments/overview), head to the AI Studio:

* Choose a [Project](/docs/projects/overview) and Folder and select the `+` button.
* Choose Deployment.

You should see a modal to configure your initial deployment where you can:

<Frame caption="Configuring your Deployment, all parameters can be changed after creation.">
  <img src="https://mintcdn.com/orqai/H9mjdYaABF092Mk-/images/docs/50303097dd1a95be141e7138e9c8d959105dcb38fff93fd1b831b34bf94e3058-Screenshot_2025-08-08_at_13.54.27.png?fit=max&auto=format&n=H9mjdYaABF092Mk-&q=85&s=fd3654b65418089c9e8e48c04cfe246a" alt="Create Deployment dialog with fields for Deployment Key set to myDeployment and Model set to claude-sonnet-4-20250514." width="620" height="345" data-path="images/docs/50303097dd1a95be141e7138e9c8d959105dcb38fff93fd1b831b34bf94e3058-Screenshot_2025-08-08_at_13.54.27.png" />
</Frame>

Then configure your Deployment Variant, using the [Prompt](/docs/prompts/overview) template, enter the messages that the model should reply to.

<Frame caption="Configure here your model and messages.">
  <img src="https://mintcdn.com/orqai/dw2ZHifUWLDAlqTf/images/docs/8ed00347b8ba43699bfd59e007db07b579e5eb95f82dfdea39016d8c085fb1f0-image.png?fit=max&auto=format&n=dw2ZHifUWLDAlqTf&q=85&s=51082c1080857b502478f00c338f3089" alt="Deployment Variant configuration screen showing the prompt template and model message settings." width="1440" height="1021" data-path="images/docs/8ed00347b8ba43699bfd59e007db07b579e5eb95f82dfdea39016d8c085fb1f0-image.png" />
</Frame>

Multiple parameters are available for your model, to learn more, see [Model Parameters](/docs/prompts/creating#model-parameters).

<Info>
  Learn more about the possibilities of Prompts in Orq.ai, see [Creating a Prompt](/docs/prompts/creating).
</Info>

<Check>
  Choose **Deploy** once ready, this will make your newly created [Deployment](/docs/deployments/overview) available through the API.
</Check>

## Integrating with the SDK

Choose your preferred programming language and install the corresponding SDK:

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

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

Get your integration ready by initializing the SDK as follows:

<CodeGroup>
  ```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="contact_x123x" # optional
  )
  ```

  ```typescript Typescript theme={"theme":{"light":"github-light","dark":"github-dark"}}
  const deployment = await client.deployments.invoke({
     key: "myDeployment",
     context: {
        environments: []
     },
     metadata: {
        "custom-field-name": "custom-metadata-value"
     }
  });
  ```
</CodeGroup>

## Calling the Deployment

To call the [Deployment](/docs/deployments/overview) within your integration, use the following calls:

<CodeGroup>
  ```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
  generation = client.deployments.invoke(
    key="myDeployment",
    context={
      "environments": []
    },
    metadata={
      "custom-field-name": "custom-metadata-value"
    }
  )

  print(generation.choices[0].message.content)
  ```

  ```typescript Typescript theme={"theme":{"light":"github-light","dark":"github-dark"}}
  const deployment = await client.deployments.invoke({
     key: "myDeployment",
     context: {
        environments: []
     },
     metadata: {
        "custom-field-name": "custom-metadata-value"
     }
  });
  ```
</CodeGroup>

## Viewing Logs

Going back to the [Deployment](/docs/deployments/overview) page, you can view the calls made through the previously created application. You can view details for a single log by clicking on a log line. This opens a panel containing all the details for the log, including context, requests, and parameters sent to your [Deployment](/docs/deployments/overview).

<img src="https://mintcdn.com/orqai/dw2ZHifUWLDAlqTf/images/docs/90eb8e3cde9129544542684c552b83425366f26ec4970fb45c774c5395be22b7-image.png?fit=max&auto=format&n=dw2ZHifUWLDAlqTf&q=85&s=bc7414ca2a367a8faefcb9b66db0e783" alt="Logs table showing five gpt-3.5-turbo requests with 200 status, latency between 1.4s and 2.6s, and cost around 0.0001-0.0002 each." width="2964" height="554" data-path="images/docs/90eb8e3cde9129544542684c552b83425366f26ec4970fb45c774c5395be22b7-image.png" />

<Info>
  To learn more about logs see [Logs](/docs/observability/logs).
</Info>

<Check>
  You completed basic common architecture for a Simple Deployment, explore more of our other Architectures to see more complex architectures.
</Check>
