llm_dart 0.8.0 copy "llm_dart: ^0.8.0" to clipboard
llm_dart: ^0.8.0 copied to clipboard

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

example/README.md

LLM Dart Examples #

Practical examples for the LLM Dart library, organized by learning path and use case.

Quick Start #

I need to... Go to
Get started quickly quick_start.dart
Build a chatbot chatbot.dart
Compare providers provider_comparison.dart
Use streaming streaming_chat.dart
Call functions tool_calling.dart
Handle audio audio_processing.dart
Generate images image_generation.dart
Process large datasets batch_processor.dart
Build multimodal apps multimodal_app.dart
Connect external tools mcp_concept_demo.dart

Directory Structure #

Getting Started #

First-time users

Core Features #

Essential functionality

Advanced Features #

Specialized capabilities

Provider Examples #

Provider-specific features

Provider Features Directory
OpenAI GPT, DALL-E, assistants openai/
Anthropic Claude, thinking anthropic/
DeepSeek Reasoning, cost-effective deepseek/
Groq Fast inference groq/
Ollama Local models ollama/
ElevenLabs Voice synthesis elevenlabs/
xAI Live search, Grok xai/
Others OpenAI-compatible others/

Use Cases #

Complete applications

MCP Integration #

External tool connections

Setup #

Set API keys for the providers you want to use:

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

Run examples:

dart run 01_getting_started/quick_start.dart
dart run 02_core_features/chat_basics.dart
dart run 05_use_cases/chatbot.dart
dart run 05_use_cases/batch_processor.dart --help
dart run 05_use_cases/multimodal_app.dart --demo

Learning Path #

Beginner: Start with quick_start.dartprovider_comparison.dartchat_basics.dart

Intermediate: Focus on tool_calling.dartstructured_output.dartchatbot.dart

Advanced: Study batch_processor.dartmultimodal_app.dartcustom_providers.dart

Production: Explore performance_optimization.dart → provider-specific features → MCP integration

Production Example #

Yumcha - A production Flutter app built with LLM Dart, showcasing real-world integration patterns and best practices.

Resources #

8
likes
160
points
626
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)
View/report issues

Topics

#ai #llms #nlp

Documentation

API reference

License

MIT (license)

Dependencies

dio, http_parser, logging

More

Packages that depend on llm_dart