Skip to main content

LLM Platform SDK Documentation

TypeScript SDK for the LLM Platform API.

Quick Startโ€‹

import [LLMPlatformClient] from '@llm/platform-sdk';

const client = new LLMPlatformClient({
baseURL: 'https://api.llm-platform.dev',
apiKey: process.env.LLM_API_KEY,
});

// Use the client
const models = await client.models.list();

Documentationโ€‹

Architectureโ€‹

The llm-gateway-sdk serves as the TypeScript SDK for all LLM Platform services:

frontend โ†’ llm-gateway-sdk โ†’ LLM API
cli โ†’ llm-gateway-sdk โ†’ LLM API
services โ†’ llm-gateway-sdk โ†’ LLM API

Key features:

  • Type-safe API interactions
  • Automatic authentication handling
  • Built-in caching and retry logic
  • Support for both REST and GraphQL endpoints- SHARED_UTILITIES_MIGRATION.md