> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ai-stats.phaseo.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Responses

> Call /responses with the Go wrapper.

Use the wrapper method:

* `client.GenerateResponse(ctx, req)`

```go theme={null}
import (
  "context"
  "fmt"
  aistats "github.com/AI-Stats/AI-Stats/packages/sdk/sdk-go"
)

client := aistats.New(apiKey, "https://api.phaseo.app/v1")
input := map[string]interface{}{
  "role": "user",
  "content": []map[string]interface{}{
    {
      "type": "input_text",
      "text": "Reply with: responses endpoint works",
    },
  },
}
resp, err := client.GenerateResponse(context.Background(), aistats.ResponsesRequest{
  Model: "openai/gpt-5-nano",
  Input: &input,
})
if err != nil {
  panic(err)
}

fmt.Println(resp)
```

Streaming is not yet exposed as a dedicated helper in the wrapper.
