SDKs & tools
Because PEKPIK LLM is OpenAI-compatible, every OpenAI SDK and most LLM frameworks work by changing the base URL and key.
Official OpenAI SDKs
Section titled “Official OpenAI SDKs”import { Tabs, TabItem } from ‘@astrojs/starlight/components’;
from openai import OpenAIclient = OpenAI(base_url="https://aiapiv2.pekpik.com/v1", api_key="sk-...")import OpenAI from "openai";const client = new OpenAI({ baseURL: "https://aiapiv2.pekpik.com/v1", apiKey: "sk-..." });Frameworks
Section titled “Frameworks”- LangChain: set
openai_api_base="https://aiapiv2.pekpik.com/v1"(andopenai_api_key). - LlamaIndex: configure the OpenAI LLM with
api_baseandapi_key. - Vercel AI SDK: use the OpenAI provider with a custom
baseURL. - Continue / Cline / Cursor (custom OpenAI endpoint): set the base URL and key in the provider settings.
Environment variables
Section titled “Environment variables”Most tools also honour standard env vars:
export OPENAI_BASE_URL="https://aiapiv2.pekpik.com/v1"export OPENAI_API_KEY="sk-..."Need a native (non-OpenAI) protocol?
Section titled “Need a native (non-OpenAI) protocol?”Anthropic Messages and Gemini-native endpoints are on the roadmap. If you need one sooner, tell us at [email protected].