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

# Welcome

> The Prisma AIRS AI Gateway is a comprehensive platform designed to streamline and enhance AI integration for developers and organisations. It serves as a unified interface for interacting with over 3,000 AI models, offering advanced tools for control, visibility, and security in your Generative AI apps.

It takes 2 mins to integrate and with that, it starts monitoring all of your LLM requests and makes your app resilient, secure, performant, and more accurate at the same time.

### Integrate in 3 Lines of Code

<CodeGroup>
  ```sh REST API theme={"system"}
  curl https://aigw.portkey.ai/v1/chat/completions \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer YOUR_PORTKEY_API_KEY" \
    -d '{
      "model": "@openai/gpt-4o",
      "messages": [
        {
          "role": "system",
          "content": "You are a helpful assistant."
        },
        {
          "role": "user",
          "content": "Hello!"
        }
      ]
    }'
  ```

  ```py OpenAI Python SDK theme={"system"}
  from openai import OpenAI

  client = OpenAI(
      api_key="YOUR_PORTKEY_API_KEY",
      base_url="https://aigw.portkey.ai/v1"
  )

  chat_complete = client.chat.completions.create(
      model="@openai/gpt-4o",
      messages=[
          {"role": "system", "content": "You are a helpful assistant."},
          {"role": "user", "content": "Hello!"}
      ]
  )
  print(chat_complete.choices[0].message.content)
  ```

  ```js OpenAI NodeJS SDK theme={"system"}
  import OpenAI from 'openai';

  const openai = new OpenAI({
    apiKey: 'YOUR_PORTKEY_API_KEY',
    baseURL: 'https://aigw.portkey.ai/v1'
  });

  async function createChatCompletion() {
    const chat_complete = await openai.chat.completions.create({
      model: "@openai/gpt-4o",
      messages: [
        { role: "system", content: "You are a helpful assistant." },
        { role: "user", content: "Hello!" }
      ]
    });
    console.log(chat_complete.choices[0].message.content);
  }

  createChatCompletion();
  ```
</CodeGroup>

### FAQs

<AccordionGroup>
  <Accordion title="Will the AI Gateway increase the latency of my API requests?">
    The AI Gateway is hosted on edge workers throughout the world, ensuring minimal latency. Our benchmarks estimate a total latency addition between 20-40ms compared to direct API calls. This slight increase is often offset by the benefits of our caching and routing optimizations.
  </Accordion>

  <Accordion title="Is my data secure?">
    All data is encrypted in transit and at rest using industry-standard AES-256 encryption, and the gateway follows best practices for service security, data storage, and retrieval.
  </Accordion>

  <Accordion title="Will the AI Gateway scale if my app explodes?">
    The gateway is built on scalable infrastructure and can handle millions of requests per minute with very high concurrency. Its edge architecture and scaling capabilities accommodate sudden spikes in traffic without performance degradation.
  </Accordion>

  <Accordion title="Does the AI Gateway impose timeouts on requests?">
    No explicit timeout is imposed on requests. While the gateway does not time out requests on our end, we recommend implementing client-side timeouts appropriate for your use case to handle potential network issues or upstream API delays.
  </Accordion>

  <Accordion title="Do you support SSO?">
    Yes! We support SSO with any custom OIDC provider.
  </Accordion>
</AccordionGroup>


## Related topics

- [Agentic Usage](/docs/aigw/api-reference/inference-api/agentic-usage.md)
