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

# Introduction

> This documentation provides detailed information about the various ways you can access and interact with Prisma AIRS AI Gateway - **a robust AI gateway** designed to simplify and enhance your experience with Large Language Models (LLMs) like OpenAI's GPT models. 

Whether you're integrating directly with OpenAI, using a framework like Langchain or LlamaIndex, or building standalone applications, the AI Gateway offers a flexible, secure, and efficient way to manage and deploy AI-powered features.

## 2 Ways to Integrate

The AI Gateway can be accessed through two primary methods, each catering to different use cases and integration requirements:

### 1. OpenAI SDK through the AI Gateway

**Ideal for:** Python, Node.js, or any other application that already uses an OpenAI-compatible client. By changing the base URL and adding gateway-specific headers, you can integrate the AI Gateway's features into your existing setup. This is also how frameworks like Langchain and LlamaIndex connect to the gateway.

#### Installing the SDK

Choose the SDK that matches your development environment:

<Tabs>
  <Tab title="NodeJS">
    ```sh theme={"system"}
    npm install openai
    ```
  </Tab>

  <Tab title="Python">
    ```sh theme={"system"}
    pip install openai
    ```
  </Tab>
</Tabs>

#### Usage

Point the client at `https://aigw.portkey.ai/v1`, authenticate with your AI Gateway API key, and prefix the model name with your provider slug.

Learn more [here](/docs/aigw/integrations/llms/openai).

### 2. REST API

**Ideal for:** applications that prefer RESTful services. The base URL for all REST API requests is `https://aigw.portkey.ai/v1`, with an [authentication](/docs/aigw/api-reference/inference-api/authentication) header.

Learn more [here](/docs/api-reference/inference-api/chat).


## Related topics

- [Introduction](/docs/aigw/api-reference/admin-api/introduction.md)
- [Agent Gateway](/docs/aigw/product/agent-gateway.md)
- [Advanced code snippets and examples](/docs/aigw/product/agent-gateway/advanced-code-snippets-and-examples.md)
- [Agent Servers](/docs/aigw/product/agent-gateway/servers.md)
- [CrewAI](/docs/aigw/integrations/agents/crewai.md)
