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

# SDKs

> Use the official OpenAI and Anthropic SDKs, or any OpenAI-compatible client, with a new base URL.

nemonist speaks the OpenAI API (chat completions and responses) and the Anthropic Messages API, so the official SDKs work with a new base URL and your nemonist key.

## Python

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

client = OpenAI(base_url="https://nemonist.com/api/v1", api_key=os.environ["NEMONIST_API_KEY"])
reply = client.chat.completions.create(model="openai/gpt-5.5", messages=[{"role": "user", "content": "Hello"}])
print(reply.choices[0].message.content)
```

## TypeScript

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

const client = new OpenAI({ baseURL: "https://nemonist.com/api/v1", apiKey: process.env.NEMONIST_API_KEY });
const reply = await client.chat.completions.create({ model: "openai/gpt-5.5", messages: [{ role: "user", content: "Hello" }] });
console.log(reply.choices[0].message.content);
```

## Other clients

Any OpenAI-compatible client works with base URL `https://nemonist.com/api/v1` and your key as the API key. Anthropic clients use base URL `https://nemonist.com/api`.

Every model's page in the [model list](https://nemonist.com/models) has requests to copy in more languages.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.