Skip to main content
Use the wrapper method:
  • client.GenerateModeration(ctx, req)
import (
  "context"
  "fmt"
  aistats "github.com/AI-Stats/ai-stats-go-sdk-wrapper"
)

client := aistats.New(apiKey, "https://api.phaseo.app/v1")
resp, err := client.GenerateModeration(context.Background(), map[string]interface{}{
  "model": "openai/omni-moderation-latest",
  "input": "some text to classify",
})
if err != nil {
  panic(err)
}

fmt.Println(resp)
Last modified on February 18, 2026