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 = SwiftlyAIClient(apiKey: "sa_xxx")
let response = try await client.chat(
model: "claude-sonnet-4-5",
messages: [.user("Summarize this article")]
)
val client = SwiftlyAI(apiKey = "sa_xxx")
val response = client.chat(
model = "gpt-4o",
messages = listOf(
Message.user("Summarize this article")
)
)
final client = SwiftlyAI(apiKey: 'sa_xxx');
final response = await client.chat(
model: 'gemini-pro',
messages: [
Message.user('Summarize this article'),
],
);
import { SwiftlyAI } from '@swiftlyai/react-native';
const client = new SwiftlyAI({ apiKey: 'sa_xxx' });
const response = await client.chat({
model: 'claude-sonnet-4-5',
messages: [{ role: 'user', content: 'Summarize this' }],
});
import { SwiftlyAI } from '@swiftlyai/sdk';
const client = new SwiftlyAI({ apiKey: 'sa_xxx' });
const response = await client.chat({
model: 'gpt-4o',
messages: [{ role: 'user', content: 'Summarize this' }],
});
curl -X POST https://api.swiftlyai.dev/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",
"messages": [{"role": "user", "content": "Hello"}]
}'
openapi: "3.1.0"
info:
title: Swiftly AIKit Cloud API
version: "1.0.0"
servers:
- url: https://api.swiftlyai.dev
paths:
/v1/ai/chat:
post:
summary: Chat completion
security:
- ApiKeyAuth: []
Start free. Scale as you grow.
Tailored to your needs