The preview Go wrapper does not yet expose batch helpers. Use the generated
client in src/gen.
import (
"fmt"
gen "github.com/AI-Stats/ai-stats-go-sdk-wrapper/src/gen"
)
client := gen.NewClient("https://api.phaseo.app/v1")
client.Headers["Authorization"] = "Bearer " + apiKey
created, err := gen.CreateBatch(client, nil, nil, nil, map[string]interface{}{
"endpoint": "responses",
"input_file_id": "file_123",
})
if err != nil {
panic(err)
}
status, err := gen.RetrieveBatch(client, map[string]string{
"batch_id": fmt.Sprint(created["id"]),
}, nil, nil, nil)
if err != nil {
panic(err)
}
fmt.Println(status)
Last modified on February 18, 2026