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

# LLMGrid SDK

> Use the LLMGrid SDK and OpenAI-compatible clients to call models through https://api.llmgrid.ai/v1 with consistent request/response formats.

## Overview

LLMGrid provides an **OpenAI-compatible API surface**, so you can use familiar request schemas (`model`, `messages`, `stream`, etc.) and expect **OpenAI-compatible response objects**.\
For OpenAI-compatible clients and gateways, set the **base URL** to the LLMGrid endpoint and **do not** append additional route suffixes to the base URL (clients append the paths automatically).

**Base URL**

```text theme={null}
https://api.llmgrid.ai/v1
```

## Authentication

Use your **LLMGrid API key (Virtual Key)** as a Bearer token. OpenAI SDKs commonly read an API key from an environment variable by default.

Recommended environment variable:

```text theme={null}
export LLMGRID_API_KEY="your-llmgrid-api-key"
```

***
