Integrations · Dart

Flutter Integration

Build AI-powered Flutter apps with XALEN API. Astrology apps, temple guides, and spiritual assistants for iOS and Android.

1. Install

flutter pub add http

2. Code

// Using http package
final response = await http.post(
  Uri.parse('https://api.xalen.io/v1/chat/completions'),
  headers: {
    'Authorization': 'Bearer xln_test_YOUR_KEY',
    'Content-Type': 'application/json',
  },
  body: jsonEncode({
    'model': 'vedika-standard',
    'messages': [{'role': 'user', 'content': query}],
  }),
);

final data = jsonDecode(response.body);
final answer = data['choices'][0]['message']['content'];

Related Tutorials

Build a React Chatbot Integrations · JavaScript Next.js API Routes Integrations · JavaScript LangChain Integration Integrations · Python LlamaIndex Integration Integrations · Python Python Quickstart Getting Started · Python JavaScript Quickstart Getting Started · JavaScript

200+ AI models. One API. Start building in 5 minutes.

Get API Key

Last updated: 2026-05-21