Skip to main content
Edgee provides official SDKs for TypeScript, Python, Go, and Rust. All SDKs offer a consistent, type-safe interface to interact with the Edgee AI Gateway, supporting OpenAI-compatible chat completions and function calling. All SDKs include built-in support for token compression and cost tracking, automatically reducing your LLM spend by up to 50%.

Quick Start

Choose your language and get started in minutes:
npm install edgee
import Edgee from 'edgee';

const edgee = new Edgee("your-api-key");

const response = await edgee.send({
  model: 'gpt-4o',
  input: 'What is the capital of France?',
});

console.log(response.text);
if (response.compression) {
  console.log(`Tokens saved: ${response.compression.saved_tokens}`);
}

Available SDKs

All SDKs provide consistent functionality:
  • Token Compression: Automatic prompt compression with savings reporting
  • Compression Metrics: Real-time token savings and compression rate for every request
  • OpenAI-compatible API: Use familiar patterns across all languages
  • Function Calling: Full support for tool/function calling
  • Type Safety: Strong typing and autocomplete support
  • Error Handling: Comprehensive error handling and validation
  • Environment Variables: Support for EDGEE_API_KEY
  • Token Usage: Access to prompt, completion, saved tokens, and compression ratios
To learn more about the SDKs, see the individual SDK pages: