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

# Go SDK

> Integrate the Go SDK in your application.

The Edgee Go SDK provides a lightweight, type-safe interface to interact with the Edgee AI Gateway. It supports OpenAI-compatible chat completions, function calling, and streaming.

## Installation

```bash theme={"dark"}
go get github.com/edgee-ai/go-sdk
```

## Quick Start

```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())
    // "The capital of France is Paris."
}
```

## What's Next?

* **[Configuration](https://www.edgee.ai/docs/llm-router/sdk/go/configuration.md)** - Learn how to configure and instantiate the SDK
* **[Send Method](https://www.edgee.ai/docs/llm-router/sdk/go/send.md)** - Complete guide to the `Send()` method
* **[Stream Method](https://www.edgee.ai/docs/llm-router/sdk/go/stream.md)** - Learn how to stream responses
* **[Tools](https://www.edgee.ai/docs/llm-router/sdk/go/tools.md)** - Detailed guide to function calling

## Verify your first request

Run the example with a Gateway API key stored in your environment. Confirm a model response, then find the request in **Logs** for that key and organization. Check the served model and provider, since routing rules can change them. See [Gateway errors](https://www.edgee.ai/docs/llm-router/api-reference/errors.md) if authentication, model access, or billing prevents the request.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.