Get started

SDKs

Nicrron speaks the OpenAI API, so the official OpenAI SDKs, and frameworks built on them, work with the base URL and key changed.

OpenAI Python SDK

Just change the base_url to point to Nicrron.

Python
from openai import OpenAI

client = OpenAI(
    base_url="https://api.nicrron.ai/v1",
    api_key="YOUR_NICRRON_KEY",
)

response = client.chat.completions.create(
    model="anthropic/claude-sonnet-5-5",
    messages=[{"role": "user", "content": "Hello!"}],
)

OpenAI TypeScript SDK

TypeScript
import OpenAI from "openai";

const openai = new OpenAI({
  baseURL: "https://api.nicrron.ai/v1",
  apiKey: "YOUR_NICRRON_KEY",
});

LangChain

LangChain's OpenAI chat model takes the same two settings. Tool calls use the OpenAI format on every model.

Python (LangChain)
from langchain_openai import ChatOpenAI

llm = ChatOpenAI(
    base_url="https://api.nicrron.ai/v1",
    api_key="YOUR_NICRRON_KEY",
    model="anthropic/claude-sonnet-5-5",
)