> ## Documentation Index
> Fetch the complete documentation index at: https://www.edgee.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

> Choose your SDK and start using Edgee.

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 **tagging**, **token compression**, and **cost tracking**.

## Quick Start

Choose your language and get started in minutes:

<Tabs>
  <Tab title="TypeScript">
    ```bash theme={"dark"}
    npm install edgee
    ```

    ```typescript theme={"dark"}
    import Edgee from 'edgee';

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

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

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

  <Tab title="Python">
    ```bash theme={"dark"}
    pip install edgee
    ```

    ```python theme={"dark"}
    from edgee import Edgee

    edgee = Edgee("your-api-key")

    response = edgee.send(
        model="gpt-5.2",
        input="What is the capital of France?"
    )

    print(response.text)
    if response.compression:
        print(f"Tokens saved: {response.compression.saved_tokens}")
    ```
  </Tab>

  <Tab title="Go">
    ```bash theme={"dark"}
    go get github.com/edgee-ai/go-sdk
    ```

    ```go theme={"dark"}
    package main

    import (
        "fmt"
        "log"
        "github.com/edgee-ai/go-sdk/edgee"
    )

    func main() {
        client, _ := edgee.NewClient("your-api-key")

        response, err := client.Send("gpt-5.2", "What is the capital of France?")
        if err != nil {
            log.Fatal(err)
        }

        fmt.Println(response.Text())
        if response.Compression != nil {
            fmt.Printf("Tokens saved: %d\n", response.Compression.SavedTokens)
        }
    }
    ```
  </Tab>

  <Tab title="Rust">
    ```bash theme={"dark"}
    cargo install edgee
    ```

    ```rust theme={"dark"}
    use edgee::Edgee;

    let client = Edgee::with_api_key("your-api-key");
    let response = client.send("gpt-5.2", "What is the capital of France?").await.unwrap();

    println!("{}", response.text().unwrap_or(""));
    if let Some(compression) = &response.compression {
        println!("Tokens saved: {}", compression.saved_tokens);
    }
    ```
  </Tab>
</Tabs>

## Available SDKs

All SDKs provide consistent functionality:

* **Token Compression**: Automatically compress requests to save on costs
* **Tagging**: Add tags to requests for analytics and filtering
* **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, and total tokens

To learn more about the SDKs, see the individual SDK pages:

<CardGroup cols={2}>
  <Card title="TypeScript SDK" icon="js" iconType="duotone" href="/sdk/typescript">
    Lightweight, type-safe SDK for Node.js and TypeScript applications.
    Full TypeScript support with comprehensive type definitions.
  </Card>

  <Card title="Python SDK" icon="python" iconType="duotone" href="/sdk/python">
    Python SDK for seamless integration with Python applications.
    Simple API with async/await support.
  </Card>

  <Card title="Rust SDK" icon="rust" iconType="duotone" href="/sdk/rust">
    Modern async Rust SDK with compile-time safety and streaming support.
    Zero-cost abstractions with strong typing and memory safety.
  </Card>

  <Card title="Go SDK" icon="golang" iconType="duotone" href="/sdk/go">
    High-performance Go SDK for building scalable applications.
    Idiomatic Go API with strong typing.
  </Card>

  <Card title="OpenAI SDK" icon="openai" iconType="duotone" href="/integrations/openai-sdk">
    Use Edgee with the OpenAI SDK for Python and TypeScript.
  </Card>
</CardGroup>
