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

# Use APIXO with Official SDKs

> Configure Claude, OpenAI, and Gemini compatible SDKs with APIXO

Use APIXO as a drop-in gateway by changing the SDK base URL and API key. Keep the same official request shape and switch models by changing the `model` value.

```bash theme={null}
export APIXO_API_KEY="your_apixo_api_key"
```

## Claude SDK

Use this when your app is built with the Anthropic Claude SDK or another Claude-compatible client.

```javascript theme={null}
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  apiKey: process.env.APIXO_API_KEY,
  baseURL: "https://llm.apixo.ai"
});

const message = await client.messages.create({
  model: "claude-opus-4-8",
  max_tokens: 256,
  messages: [{ role: "user", content: "Say hello in one sentence." }]
});

console.log(message.content);
```

| Setting     | Value                  |
| ----------- | ---------------------- |
| Base URL    | `https://llm.apixo.ai` |
| API key env | `APIXO_API_KEY`        |
| Model field | Request body `model`   |

## OpenAI SDK

Use this when your app is built with the OpenAI SDK and calls the Responses API.

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

const client = new OpenAI({
  apiKey: process.env.APIXO_API_KEY,
  baseURL: "https://llm.apixo.ai/v1"
});

const response = await client.responses.create({
  model: "gpt-5.6-sol",
  input: "Say hello in one sentence."
});

console.log(response.output_text);
```

| Setting     | Value                     |
| ----------- | ------------------------- |
| Base URL    | `https://llm.apixo.ai/v1` |
| API key env | `APIXO_API_KEY`           |
| Model field | Request body `model`      |

## Gemini SDK

Use this when your app is built with the Google Gen AI SDK.

```javascript theme={null}
import { GoogleGenAI } from "@google/genai";

const ai = new GoogleGenAI({
  apiKey: process.env.APIXO_API_KEY,
  httpOptions: { baseUrl: "https://llm.apixo.ai" }
});

const response = await ai.models.generateContent({
  model: "gemini-3.5-flash",
  contents: "Summarize this API integration."
});

console.log(response.text);
```

| Setting     | Value                  |
| ----------- | ---------------------- |
| Base URL    | `https://llm.apixo.ai` |
| API key env | `APIXO_API_KEY`        |
| API version | SDK default `v1beta`   |
| Model field | SDK `model` argument   |

## Switch models

You do not need a different API key to switch models. Change only the model id used by the provider-compatible API.

<CardGroup>
  <Card title="Supported models" href="/docs/llm/supported-models">
    Copy current Claude, OpenAI, and Gemini model ids.
  </Card>

  <Card title="Streaming" href="/docs/llm/streaming">
    Enable streaming with each provider's normal streaming option.
  </Card>
</CardGroup>

<CardGroup>
  <Card title="Claude API" href="/docs/models/text/claude">
    Claude-compatible endpoint and curl example.
  </Card>

  <Card title="OpenAI Responses API" href="/docs/models/text/openai-responses">
    OpenAI-compatible endpoint and curl example.
  </Card>

  <Card title="Gemini API" href="/docs/models/text/gemini">
    Gemini-compatible endpoint and curl example.
  </Card>
</CardGroup>
