Skip to main content
The Go SDK is in preview and is not yet published to a package registry.
The local wrapper at packages/sdk/sdk-go/index.go currently exposes these methods:
  • GenerateText(...)
  • GenerateResponse(...)
  • GenerateEmbedding(...)
  • GenerateModeration(...)
  • GetModels(...)
For other endpoints, use the generated client under packages/sdk/sdk-go/src/gen directly.
import (
  "context"
  "fmt"
  aistats "github.com/AI-Stats/ai-stats-go-sdk-wrapper"
)

client := aistats.New("YOUR_KEY", "https://api.phaseo.app/v1")
models, err := client.GetModels(context.Background(), map[string]string{"limit": "5"})
if err != nil {
  panic(err)
}
fmt.Println(models)
Last modified on February 17, 2026