Skip to content
LLM Router
Edgee SDKs

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

go get github.com/edgee-ai/go-sdk

Quick Start

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?

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 if authentication, model access, or billing prevents the request.