Documentation ¶ Index ¶ type Client func NewClient(ctx context.Context, config Config) (*Client, error) func (c *Client) GenerateImage(ctx context.Context, prompt string) (*GeneratedImage, error) type Config type GeneratedImage Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Client ¶ type Client struct { // contains filtered or unexported fields } func NewClient ¶ func NewClient(ctx context.Context, config Config) (*Client, error) func (*Client) GenerateImage ¶ func (c *Client) GenerateImage(ctx context.Context, prompt string) (*GeneratedImage, error) type Config ¶ type Config struct { GeminiAPIKey string `usage:"The Google Gemini API Key used to generate images" env:"GEMINI_API_KEY"` GeminiImageGenerationModel string `` /* 127-byte string literal not displayed */ } type GeneratedImage ¶ type GeneratedImage struct { ImageData []byte MIMEType string } Source Files ¶ View all Source files client.go Click to show internal directories. Click to hide internal directories.