Voyant APIs Flutter SDK
Official Flutter SDK for Voyant APIs β NSFW image detection, text analysis, IP intelligence, and email services.
π Get API Keys
Create your account and generate API keys: https://console.voyantnetworks.com
π Links
Main Website: https://voyantnetworks.com
Docs: https://docs.voyantnetworks.com
Demo: https://demo.voyantnetworks.com
π¦ Installation
flutter pub add voyant_apis
π Quick Start
import 'package:voyant_apis/voyant_apis.dart';
π Setup Credentials
final credentials = VoyantAccountCredentials(
apiKey: "YOUR_API_KEY",
accountId: "YOUR_ACCOUNT_ID",
apiSecret: "YOUR_API_SECRET",
);
π IP Intelligence
final ipIntel = VoyantApiIpIntelClient(
credentials: credentials,
projectId: "YOUR_PROJECT_ID",
);
// Single
final res1 = await ipIntel.lookup("8.8.8.8");
// Batch, max 50 ips
final res2 = await ipIntel.lookupBatch([
"8.8.8.8",
"1.1.1.1",
]);
π§ Text Analysis
final text = VoyantApiTextAnalyzeClient(
credentials: credentials,
projectId: "YOUR_PROJECT_ID",
);
// Single
final res1 = await text.analyze("hello world");
// Batch
final res2 = await text.analyzeBatch([
"hello",
"world",
]);
πΌοΈ NSFW Detection
final nsfw = VoyantApiNsfwClient(
credentials: credentials,
projectId: "YOUR_PROJECT_ID",
);
// Read file as bytes
final bytes = await file.readAsBytes();
// Single
final res1 = await nsfw.analyze(bytes);
// Batch
final res2 = await nsfw.analyzeBatch([
bytes1,
bytes2,
]);
βοΈ Email API
final email = VoyantApiEmailClient(
credentials: credentials,
projectId: "YOUR_PROJECT_ID",
);
Verification Email
final verification = EmailVerificationData(
to: "user@example.com",
fromType: EmailFromType.verify,
username: "John",
);
final response = await email.send(verification.toJson());
// For verify
response.verifyOTP(otpController.text)
Welcome Email
final welcome = EmailWelcomeData(
to: "user@example.com",
fromType: EmailFromType.updates,
appName: "Voyant",
button: EmailButton(
text: "Get Started",
url: "https://voyantnetworks.com",
),
);
await email.send(welcome.toJson());
Custom Email
final custom = EmailCustomData(
to: "user@example.com",
fromType: EmailFromType.support,
greeting: "Hello",
title: "Welcome!",
subtitle: "Glad to have you",
message: "This is a custom email",
subject: "Test Email",
);
await email.send(custom.toJson());
βοΈ Config
- credentials β contains apiKey, accountId, apiSecret
- projectId β API instance ID
- accountId β your account identifier (required)
π Notes
- NSFW: max 5 images, recommended <200KB each
- Email: schema-based templates
- All requests are securely signed (HMAC SHA256)
β οΈ Security
Do NOT expose apiSecret in production apps.
Use your backend to sign requests for public apps.
π License
MIT License
Copyright (c) 2026 Voyant Networks
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the βSoftwareβ), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED βAS ISβ, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Libraries
- voyant_apis
- Voyant APIs Flutter SDK