Skip to main content

AI SDK Core

The core API provides a comprehensive set of functions for working with Large Language Models, embeddings, image generation, speech, and more. All functions are designed with Go's concurrency patterns and best practices in mind.

Core Functions​

Text Generation​

  • Overview - Learn about AI SDK Core and how to work with Large Language Models (LLMs).

  • Generating Text - Learn how to generate text using GenerateText and StreamText.

  • Generating Structured Data - Learn how to generate structured data with type-safe JSON output.

  • Tool Calling - Learn how to do tool calling with AI SDK Core.

Configuration​

Embeddings and Ranking​

  • Embeddings - Learn how to use embeddings with AI SDK Core.

  • Reranking - Learn how to rerank documents using reranking models.

Media Generation​

  • Image Generation - Learn how to generate images with AI SDK Core.

  • Transcription - Learn how to transcribe audio with AI SDK Core.

  • Speech - Learn how to generate speech with AI SDK Core.

  • Realtime - Learn how to build realtime voice conversations with Go.

Advanced Features​

  • Middleware - Learn how to use middleware to wrap AI provider calls.

  • Provider Management - Learn how to work with multiple providers and implement fallbacks.

  • Error Handling - Learn how to handle errors with AI SDK Core.

  • Testing - Learn how to test your AI-powered Go applications.

  • Telemetry - Learn how to use telemetry to monitor your AI applications.

Next Steps​