Skip to content

SDKs & tools

Because PEKPIK LLM is OpenAI-compatible, every OpenAI SDK and most LLM frameworks work by changing the base URL and key.

import { Tabs, TabItem } from ‘@astrojs/starlight/components’;

from openai import OpenAI
client = 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-..." });
  • LangChain: set openai_api_base="https://aiapiv2.pekpik.com/v1" (and openai_api_key).
  • LlamaIndex: configure the OpenAI LLM with api_base and api_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.

Most tools also honour standard env vars:

Terminal window
export OPENAI_BASE_URL="https://aiapiv2.pekpik.com/v1"
export OPENAI_API_KEY="sk-..."

Anthropic Messages and Gemini-native endpoints are on the roadmap. If you need one sooner, tell us at [email protected].