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

# LlamaIndex

LlamaIndex supports configuring a custom OpenAI-compatible `baseURL` for its OpenAI adapter.

```text theme={null}
import { Settings } from "llamaindex";
import { OpenAI } from "@llamaindex/openai";

Settings.llm = new OpenAI({
  model: "gpt-4.1",
  temperature: 0.2,
  apiKey: process.env.LLMGRID_API_KEY,
  baseURL: "https://api.llmgrid.ai/v1",
});
``
```
