Skip to main content
Use the wrapper method:
  • client.CreateTranslation(ctx, req)
import (
  "context"
  "fmt"
  phaseo "github.com/phaseoteam/Phaseo/packages/sdk/sdk-go"
)

client := phaseo.New(apiKey, "https://api.phaseo.ai/v1")
resp, err := client.CreateTranslation(context.Background(), map[string]interface{}{
  "model": "openai/gpt-4o-transcribe",
  "audio_b64": "data:audio/wav;base64,...",
})
if err != nil {
  panic(err)
}
fmt.Println(resp)
Last modified on July 9, 2026