deepseek_api
0.1.2, released 2 years ago by an unverified publisher
Flutter client for DeepSeek's AI API, enabling chat completions and model management.
What it does
The package wraps DeepSeek's REST endpoints, offering methods for chat completions, model listing, and streaming responses. It uses Dio for HTTP calls and allows custom configuration.
AI-written summary of version 0.1.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to call DeepSeek's LLM from a Flutter app
- You want streaming chat responses
- You require simple model management without building your own HTTP layer
Skip it when
- You need offline/on‑device inference
- You require a full state‑management solution
- You depend on a different AI provider
Strengths
- Easy to integrate with just an API key
- Supports streaming via Dio
- Provides model management helpers
Weaknesses
- Tied only to DeepSeek API
- No code generation or model classes beyond basics
- Documentation limited to README
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- Yes (build_runner)
- Direct dependencies
- 3
import 'package:deepseek_api/deepseek_api.dart';
final deepseek = DeepSeekAPI(apiKey: 'your-api-key');
final response = await deepseek.createChatCompletion(
ChatCompletionRequest(
model: 'deepseek-chat',
messages: [ChatMessage(role: 'user', content: 'Explain quantum computing in 50 words')],
temperature: 0.7,
maxTokens: 100,
),
);
print(response.choices.first.message.content);Alternatives
Packages that do the same job and could replace deepseek_api.
- ollama_dart
Type‑safe Dart client for Ollama’s chat, generation, embeddings, audio and model management APIs.
88Compare - flutter_local_ai
Unified API for on-device AI inference using native OS models.
89Compare - anthropic_sdk_dart
Dart client for the Anthropic API with streaming and tool support
86Compare - xybrid_flutter
Run ML models on-device or in the cloud with hybrid routing and streaming inference.
80Compare
Works with
Packages commonly used together with deepseek_api: ones it builds on, ones built on it, and its own family.
- json_annotationdeepseek_api depends on itProvides annotations for json_serializable to generate JSON (de)serialization code.
- diodeepseek_api depends on itA powerful HTTP networking package for Dart and Flutter with interceptors and request cancellation.
- mocktaildeepseek_api depends on itDart mock library with null safety support and no manual mocks or code generation.