llm_dart 0.9.0

SDKdartflutter
Platformandroidioswindowslinuxmacosweb

A modular Dart library for AI provider interactions with unified interface for OpenAI, Anthropic, Google, DeepSeek, Ollama, xAI, Groq, ElevenLabs and more.

Getting Started

Basic examples to get you up and running with LLM Dart.

Examples

quick_start.dart

Basic usage with multiple providers. Start here for your first AI conversation.

provider_comparison.dart

Compare different AI providers to choose the right one for your needs.

basic_configuration.dart

Essential configuration options and error handling patterns.

Setup

Set API keys:

export OPENAI_API_KEY="your-key"
export ANTHROPIC_API_KEY="your-key"
export GROQ_API_KEY="your-key"

Run examples:

dart run quick_start.dart
dart run provider_comparison.dart
dart run basic_configuration.dart

Next Steps