client.CreateSpeech(ctx, req)
import (
"context"
"fmt"
aistats "github.com/AI-Stats/AI-Stats/packages/sdk/sdk-go"
)
client := aistats.New(apiKey, "https://api.phaseo.app/v1")
resp, err := client.CreateSpeech(context.Background(), map[string]interface{}{
"model": "openai/gpt-4o-mini-tts",
"input": "Hello from AI Stats",
"voice": "alloy",
"format": "mp3",
})
if err != nil {
panic(err)
}
fmt.Println(resp)