Skip to content
pubscout

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.

WASM-ready
$ flutter pub add deepseek_api
Source repository

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.

Works with

Packages commonly used together with deepseek_api: ones it builds on, ones built on it, and its own family.