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

# Icelake API

> OpenAI-compatible chat and image generation behind one API key. Private, uncensored intelligence for developers.

<div className="venice-hero-copy">
  The API for private, unrestricted intelligence.

  OpenAI-compatible chat and image generation behind one API key.
</div>

<div>
  <a href="https://chat.icelake.io/settings">**Get an API key →**</a>

  {" · "}

  <a href="/quickstart">**Quickstart**</a>
</div>

<CodeGroup>
  ```bash curl theme={null}
  curl https://chat.icelake.io/api/v1/chat/completions \
    -H "Authorization: Bearer $ICELAKE_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "model": "zai-org-glm-5-2",
      "messages": [{"role": "user", "content": "Build without permission."}]
    }'
  ```

  ```ts TypeScript theme={null}
  import OpenAI from "openai";

  const client = new OpenAI({
    apiKey: process.env.ICELAKE_API_KEY,
    baseURL: "https://chat.icelake.io/api/v1",
  });

  const res = await client.chat.completions.create({
    model: "zai-org-glm-5-2",
    messages: [{ role: "user", content: "Build without permission." }],
  });
  ```

  ```python Python theme={null}
  import os
  from openai import OpenAI

  client = OpenAI(
      api_key=os.environ["ICELAKE_API_KEY"],
      base_url="https://chat.icelake.io/api/v1",
  )

  res = client.chat.completions.create(
      model="zai-org-glm-5-2",
      messages=[{"role": "user", "content": "Build without permission."}],
  )
  ```
</CodeGroup>

## One API for chat and images

<CardGroup cols={3}>
  <Card title="Chat completions" icon="message" href="/api-reference/chat">
    Streaming and non-streaming chat with OpenAI-compatible request and response shapes.
  </Card>

  <Card title="Image generation" icon="image" href="/api-reference/images">
    Text-to-image with `b64_json` or data-URL style responses.
  </Card>

  <Card title="Models" icon="database" href="/api-reference/models">
    List model IDs for SDKs, OpenRouter, and client tools.
  </Card>
</CardGroup>

## Drop-in OpenAI compatibility

Point the official OpenAI SDK (or any OpenAI-compatible client) at:

```
https://chat.icelake.io/api/v1
```

Use your Icelake API key. No proprietary SDK required.

The multi-zone front door also works:

```
https://icelake.io/api/v1
```

## Next steps

<CardGroup cols={2}>
  <Card title="Quickstart" icon="rocket" href="/quickstart">
    Create a key and send your first request.
  </Card>

  <Card title="OpenAI SDK" icon="code" href="/guides/openai-sdk">
    Node and Python examples with streaming.
  </Card>

  <Card title="OpenRouter & tools" icon="plug" href="/guides/openrouter">
    Cursor, SillyTavern, LibreChat, and custom providers.
  </Card>

  <Card title="icelake_parameters" icon="sliders" href="/api-reference/icelake-parameters">
    Web search, scraping, and other Icelake extensions.
  </Card>
</CardGroup>
