What problem does it solve?
This Skill provides a comprehensive set of AI capabilities for developers, simplifying the integration of various AI services and models into Go applications.
Core Features & Use Cases
- Unified API: Access over 25 AI providers through a single SDK.
- Provider Coverage: Support for OpenAI, Anthropic, Google, AWS Bedrock, Azure, Vertex AI, and more.
- Features: Text generation, embeddings, image generation, structured output, tools, and MCP client.
- Use Case: Build an AI-powered chatbot, generate code snippets, or create custom AI models with ease.
Quick Start
Import the GoAI SDK and start generating text with OpenAI:
package main
import (
"context"
"log"
"github.com/zendev-sh/goai"
"github.com/zendev-sh/goai/provider/openai"
)
func main() {
model := openai.Chat("gpt-4o")
result, err := goai.GenerateText(context.Background(), model, goai.WithPrompt("What is the capital of France?"))
if err != nil {
log.Fatal(err)
}
log.Println(result.Text)
}