> ## 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.

# Integrate Edgee to your stack

> Learn how to integrate Edgee to your stack and start using Edgee services in your application.

Edgee can be integrated to your stack in different ways. You can use our SDKs, use our API directly,
or use **our official integrations** with other tools.

## Use our SDKs

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

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

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

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

Then, you can start using Edgee in your application. Here is a quick example:

<Tabs>
  <Tab title="TypeScript">
    ```typescript theme={"dark"}
    import Edgee from 'edgee';

    const edgee = new Edgee(process.env.EDGEE_API_KEY);

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

    console.log(response.content);
    // "The capital of France is Paris."

    if (response.compression) {
      console.log(`Tokens saved: ${response.compression.saved_tokens}`);
      console.log(`Reduction: ${response.compression.reduction}%`);
      console.log(`Cost savings: ${(response.compression.cost_savings / 1_000_000).toFixed(4)}`);
      console.log(`Compression time: ${response.compression.time_ms}ms`);
    }
    // "Tokens saved: 100"
    // "Reduction: 50%"
    // "Cost savings: $0.0093"
    // "Compression time: 100ms"
    ```
  </Tab>

  <Tab title="Python">
    ```python theme={"dark"}
    from edgee import Edgee

    edgee = Edgee(api_key=os.environ["EDGEE_API_KEY"])

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

    print(response.content)
    # "The capital of France is Paris."

    if response.compression:
        print(f"Tokens saved: {response.compression.saved_tokens}")
        print(f"Reduction: {response.compression.reduction}%")
        print(f"Cost savings: ${response.compression.cost_savings / 1_000_000:.4f}")
        print(f"Compression time: {response.compression.time_ms}ms")
    # "Tokens saved: 100"
    # "Reduction: 50%"
    # "Cost savings: $0.0093"
    # "Compression time: 12ms"
    ```
  </Tab>

  <Tab title="Go">
    ```go theme={"dark"}
    package main

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

    func main() {
        client := edgee.NewClient(os.Getenv("EDGEE_API_KEY"))

        response, _ := client.Send(edgee.SendParams{
            Model: "gpt-5.2",
            Input: "What is the capital of France?",
        })

        fmt.Println(response.Content)
        // "The capital of France is Paris."

        if response.Compression != nil {
            fmt.Printf("Tokens saved: %d\n", response.Compression.SavedTokens)
            fmt.Printf("Reduction: %f%%\n", response.Compression.Reduction)
            fmt.Printf("Cost savings: $%.4f\n", float64(response.Compression.CostSavings)/1_000_000)
            fmt.Printf("Compression time: %dms\n", response.Compression.TimeMs)
        }
        // "Tokens saved: 100"
        // "Reduction: 50%"
        // "Cost savings: $0.0093"
        // "Compression time: 12ms"
    }
    ```
  </Tab>

  <Tab title="Rust">
    ```rust theme={"dark"}
    use edgee::Edgee;

    let api_key = std::env::var("EDGEE_API_KEY").expect("EDGEE_API_KEY not set");
    let edgee = Edgee::new(api_key);

    let response = edgee.send(edgee::SendRequest {
        model: "gpt-5.2".to_string(),
        input: "What is the capital of France?".to_string(),
    });

    println!("{}", response.output_text);
    // "The capital of France is Paris."

    if response.compression {
        println!("Tokens saved: {}", response.compression.saved_tokens);
        println!("Reduction: {}", response.compression.reduction);
        println!("Cost savings: ${}", response.compression.cost_savings / 1_000_000);
        println!("Compression time: {}ms", response.compression.time_ms);
    }
    // "Tokens saved: 100"
    // "Reduction: 50%"
    // "Cost savings: $0.0093"
    // "Compression time: 12ms"
    ```
  </Tab>
</Tabs>

To learn more about the SDKs, see the [individual SDK pages](/sdk).

## Use Edgee in your Framework

You can use Edgee in your preferred Framework by using our official integrations.

<CardGroup>
  <Card title="OpenAI SDK" icon="https://mintcdn.com/edgee/q0pRfKOA-_MkO9qY/images/icons/openai.svg?fit=max&auto=format&n=q0pRfKOA-_MkO9qY&q=85&s=a65508ff5c1f9427cbaf745f9cc964e4" href="/integrations/openai-sdk" width="128" height="128" data-path="images/icons/openai.svg">
    Point your existing OpenAI SDK at Edgee, no code changes, just swap the base URL and API key.
  </Card>

  <Card title="Anthropic SDK" icon="https://mintcdn.com/edgee/RmPUqoqJw-u0FxFP/images/icons/anthropic.svg?fit=max&auto=format&n=RmPUqoqJw-u0FxFP&q=85&s=a3a7b4a3892d3e3d041459e9d11db12d" href="/integrations/anthropic-sdk" width="128" height="128" data-path="images/icons/anthropic.svg">
    Use the Anthropic SDK with Edgee to access Claude and other models through one gateway.
  </Card>

  <Card title="LangChain" icon="https://mintcdn.com/edgee/q0pRfKOA-_MkO9qY/images/icons/langchain.svg?fit=max&auto=format&n=q0pRfKOA-_MkO9qY&q=85&s=2a0c0afca190f4653435b1e4f47fa0cf" href="/integrations/langchain" width="24" height="24" data-path="images/icons/langchain.svg">
    Run chains, agents, and RAG pipelines through Edgee for cost tracking and compression.
  </Card>
</CardGroup>
