One unified API for 8 AI providers. Ship with managed billing, usage tracking, and real-time analytics out of the box.
import SwiftlyAIClient
let client = SwiftlyAIClient(apiKey: "sa_xxx")
let response = try await client.chat(
model: "claude-sonnet-4-5",
messages: [.user("Hello, world!")]
)
print(response.content) // "Hello! How can I help?"
Unified Access to Leading AI Providers
Built-in security, monitoring, and team collaboration for production AI applications.
Real-time notifications for usage events, quota alerts, and billing updates.
Restrict API access to trusted IP addresses with IPv4, IPv6, and CIDR support.
Fine-grained cross-origin controls for web applications and browser clients.
Role-based access control with owner, admin, member, and viewer permissions.
Secure key generation, rotation, and scoping with SHA-256 hashing.
Real-time metrics, per-model breakdowns, and monthly usage dashboards.
Native SDKs and REST APIs for every platform.
import SwiftlyAIClient
let client = try SwiftlyClient(apiKey: "sa_xxx")
let response = try await client.chat(
model: "claude-sonnet-4-5-20250929",
messages: [ChatMessage(role: .user, content: "Summarize this article")]
)
import com.swiftlyai.client.*
val client = SwiftlyClient.create(apiKey = "sa_xxx")
val response = client.chat(
model = "claude-sonnet-4-5-20250929",
messages = listOf(userMessage("Summarize this article"))
)
import 'package:swiftlyai/swiftlyai.dart';
final client = SwiftlyClient(apiKey: 'sa_xxx');
final response = await client.chat(
'claude-sonnet-4-5-20250929',
[userMessage('Summarize this article')],
);
import { SwiftlyProvider, useChat, userMessage } from 'swiftlyai-react';
const { data, send } = useChat({
model: 'claude-sonnet-4-5-20250929',
});
await send([userMessage('Summarize this article')]);
import { SwiftlyClient, userMessage } from 'swiftlyai-client';
const client = new SwiftlyClient({ apiKey: 'sa_xxx' });
const response = await client.chat(
'claude-sonnet-4-5-20250929',
[userMessage('Summarize this article')]
);
curl -X POST https://api.getswiftly.ai/v1/ai/chat \
-H "X-API-Key: sa_xxx" \
-H "X-Bundle-ID: com.example.app" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-4-5-20250929",
"messages": [{"role": "user", "content": [{"type": "text", "text": "Hello"}]}]
}'
openapi: "3.1.0"
info:
title: Swiftly AIKit Cloud API
version: "1.0.0"
servers:
- url: https://api.getswiftly.ai
paths:
/v1/ai/chat:
post:
summary: Chat completion
security:
- ApiKeyAuth: []
Start free. Scale as you grow.
Tailored to your needs