Skip to main content

SDKs and tools

Advania ALT does not ship a first-party SDK at launch. The API is designed to be compatible with the OpenAI SDKs (Python, Node), which means you can point those SDKs at the Advania ALT base URL and use your API key.

Because most major AI frameworks — including LangChain, LangGraph, and LlamaIndex — are also compatible with the OpenAI SDK, most of their functionality works with Advania ALT with the same base-URL swap.

Base URL

https://api.alt.advania.ai/v1

Python (OpenAI SDK)

from openai import OpenAI

client = OpenAI(
base_url="https://api.alt.advania.ai/v1",
api_key="ygg_...",
)

Chat completions, streaming, tools, structured output, embeddings, and model listing all work as they do against OpenAI.

Node (OpenAI SDK)

import OpenAI from "openai";

const client = new OpenAI({
baseURL: "https://api.alt.advania.ai/v1",
apiKey: process.env.ALT_API_KEY,
});

For the non-OpenAI endpoints

For the endpoints that are not part of the OpenAI shape (Knowledge Bases, files, Data Hub connections), call the API directly using any HTTP client in your language of choice.