Back to Integrations
Flutter logoFlutter & Dart

DEVUP AI for Flutter & Dart

Call DEVUP AI models from Dart backends and Flutter apps with openai_dart or dart_openai. Keep your key on your server, set one base URL, and use the same Dart code across your projects.

System Architecture

How Flutter Apps Reach DEVUP AI

1. Client
Flutter app
Calls your backend, never DEVUP AI directly
2. Gateway
Your Dart backend
openai_dart or dart_openai, with your key
3. Inference
DEVUP OpenAI-compatible API
POST /v1/chat/completions and /v1/embeddings
4. Response
Response
Text, streams, tool calls and vectors

Configuration

Two Settings That Matter

Base URL

https://api.devupai.com/v1

Use it with openai_dart. dart_openai adds /v1 itself, so give it https://api.devupai.com.

Model

deepseek-ai/DeepSeek-V4-Pro

Any DEVUP AI catalog ID works as the model value.

Quick Start

Your First Request in Dart

dart
/// Creates an openai_dart client that talks to DEVUP AI.
/// The key comes from the environment and is never written into source code.
OpenAIClient createClient() {
  final apiKey = Platform.environment['DEVUP_API_KEY'];
  if (apiKey == null || apiKey.isEmpty) {
    throw StateError('DEVUP_API_KEY is not set');
  }
  return OpenAIClient(
    config: OpenAIConfig(
      authProvider: ApiKeyProvider(apiKey),
      baseUrl: 'https://api.devupai.com/v1',
    ),
  );
}

/// Sends one message and returns the model's reply.
Future<String> chat(OpenAIClient client) async {
  final response = await client.chat.completions.create(
    ChatCompletionCreateRequest(
      model: 'deepseek-ai/DeepSeek-V4-Pro',
      messages: [ChatMessage.user('Reply with exactly: Salam DEVUP')],
    ),
  );
  return response.text ?? '';
}

Set DEVUP_API_KEY on your server; chat returns Salam DEVUP.

Capabilities

Supported Capabilities

Streaming with usage

Stream tokens as they arrive; token usage arrives once, in the final chunk.

Tool calling

Let the model call your Dart functions and answer with their results.

Key stays on your server

Your Flutter app calls your backend, so the DEVUP AI key never ships inside the app.

Local DZD billing

Metered billing in Algerian Dinar with BaridiMob, Edahabia, and CIB local payment support.

FAQ

Flutter, Dart and DEVUP AI

Does Flutter work with DEVUP AI?

Yes. Use openai_dart with the base URL https://api.devupai.com/v1, or dart_openai with https://api.devupai.com, on your server, and let your Flutter app call that server.

Should I put my DEVUP AI key in my Flutter app?

No. Anyone can extract a key from an app package. Keep the key on your server and let the app call your server.

How is usage from Dart billed on DEVUP AI?

Every chat and embedding request is a regular DEVUP AI API call, metered in Algerian Dinar on your account.

Ready to Build on DEVUP AI with Flutter & Dart?