groq
1.1.1, released a year ago by tagonsoft.com
Dart and Flutter SDK for Groq AI API inference and chat management
WASM-ready
What it does
Allows developers to integrate Groq's generative AI models into Flutter applications. Supports starting chat sessions, sending messages, setting custom system instructions, and handling errors.
AI-written summary of version 1.1.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to integrate Groq AI conversational models into a Flutter or Dart app
- You need real-time LLM inference speed using Groq models
Skip it when
- You require on-device local models instead of a cloud API
- You are using a different AI provider like OpenAI or Anthropic and want a dedicated SDK
Strengths
- Simple API configuration and message handling
- Supports custom system instructions and chat history context management
- Built-in error handling via GroqException
Weaknesses
- Community project and not officially affiliated with Groq
- Relies on an external cloud API requiring an active internet connection and API key
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Requires obtaining a Groq API key and passing it via dart-define or configuration.
import 'package:groq/groq.dart';
final groqConfiguration = Configuration(
model: "qwen/qwen3-32b",
temperature: 0.7,
seed: 10,
);
final groq = Groq(
apiKey: 'YOUR_GROQ_API_KEY',
configuration: groqConfiguration,
);
groq.startChat();
GroqResponse response = await groq.sendMessage("Hello, how are you?");
print(response.choices.first.message.content);Alternatives
Packages that do the same job and could replace groq.
- firebase_ai
If you prefer using Firebase's Gemini infrastructure for generative AI instead of Groq.
86Compare - llamadart
If you want to run Llama models locally on-device rather than calling a cloud API.
93Compare