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

# Introduction

> One API key for OpenAI, Gemini, Vertex AI, Azure, and more

## Explore by provider

<CardGroup cols={2}>
  <Card title="OpenAI" icon="openai" href="/openai-intro">
    Chat completions, responses, image generation, image editing, audio, and video through a fully OpenAI-compatible endpoint.
  </Card>

  <Card title="Anthropic" icon="bolt" href="/anthropic-intro">
    Text generation via the Anthropic Messages API.
  </Card>

  <Card title="Gemini" icon="sparkles" href="/gemini-intro">
    Native text generation, image generation, and image editing via the Google GenAI API format.
  </Card>

  <Card title="Vertex AI" icon="google" href="/vertex-introduction">
    Enterprise-grade access to Google's latest models via the Vertex AI API format with full camelCase compatibility.
  </Card>

  <Card title="Azure OpenAI" icon="microsoft" href="/azure-introduction">
    Image generation and image editing through the Azure OpenAI API format with your existing Azure workflows.
  </Card>

  <Card title="Cohere" icon="layer-group" href="/cohere-intro">
    Document reranking and semantic search acceleration via the Cohere Rerank API format.
  </Card>

  <Card title="Vercel AI SDK" icon="cube" href="/integrations/vercel-ai-sdk">
    Integrate ZnapAI using Vercel's unified AI SDK for text generation, streaming, image generation, and vision.
  </Card>
</CardGroup>

## Start in minutes

ZnapAI is compatible with the OpenAI SDK — change only `base_url` and `api_key`:

<CodeGroup>
  ```bash cURL theme={null}
  curl --location 'https://api.znapai.com/v1/chat/completions' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer $ZnapAI_API_KEY' \
  --data '{
      "model": "gpt-4o-mini",
      "messages": [
        {
          "role": "user",
          "content": "Hello!"
        }
      ]
    }'
  ```

  ```python OpenAI SDK (Python) theme={null}
  import os
  import openai

  client = openai.OpenAI(
      api_key=os.environ["ZnapAI_API_KEY"],
      base_url="https://api.znapai.com/v1"
  )

  response = client.chat.completions.create(
      model="gpt-4o-mini",
      messages=[{"role": "user", "content": "Hello!"}]
  )
  print(response.choices[0].message.content)
  ```

  ```typescript OpenAI SDK (JS) theme={null}
  import OpenAI from "openai";

  const client = new OpenAI({
    apiKey: process.env.ZnapAI_API_KEY,
    baseURL: "https://api.znapai.com/v1",
  });

  const response = await client.chat.completions.create({
    model: "gpt-4o-mini",
    messages: [{ role: "user", content: "Hello!" }],
  });
  console.log(response.choices[0].message.content);
  ```
</CodeGroup>

<Tip>
  Already using the OpenAI SDK? Only `base_url` and `api_key` need to change — your existing application code works without modification.
</Tip>

## Why ZnapAI

<CardGroup cols={3}>
  <Card title="Multi-Provider, One Key" icon="key">
    OpenAI, Gemini, Vertex AI, and Azure — all accessed with a single API key and a unified endpoint.
  </Card>

  <Card title="Pay-as-you-go" icon="tag">
    No monthly fees. Pay only for what you use, with competitive rates across all model providers.
  </Card>

  <Card title="OpenAI Compatible" icon="plug">
    Drop-in replacement for the OpenAI SDK. Point to `https://api.znapai.com/v1` and keep everything else unchanged.
  </Card>

  <Card title="Usage Analytics" icon="chart-line">
    Real-time dashboards for request counts, token usage, latency, and per-model cost breakdown.
  </Card>

  <Card title="Enterprise Ready" icon="shield">
    Enterprise-grade security, data privacy, and SLA-backed uptime for production workloads.
  </Card>

  <Card title="Human Support" icon="headset">
    1:1 support from real engineers for integration help, model selection, and performance tuning.
  </Card>
</CardGroup>

## More resources

<CardGroup cols={3}>
  <Card title="Integrations" icon="puzzle-piece" href="/integrations/overview">
    Connect ZnapAI to Roo Code, Cline, Claude Code, Codex, OpenCode, and more.
  </Card>

  <Card title="Balance & Usage" icon="circle-dollar-to-slot" href="/balance">
    Check your balance, top up credits, and monitor spend across all providers.
  </Card>

  <Card title="Dashboard" icon="gauge" href="https://znapai.com/app">
    Manage API keys, view live usage metrics, and configure your account.
  </Card>
</CardGroup>
