Full REST API access with official SDKs for JavaScript/TypeScript and PHP. Build custom integrations for any platform.
Clean, predictable endpoints following REST conventions.
API key authentication with scoped permissions.
NDJSON streaming for real-time chat responses.
Real-time callbacks for content and conversation events.
Everything you need to power AI search and chat
/chat/products/search/recommendations/products/products/posts/threads/{id}Get started quickly with our type-safe SDKs
npm install @savantoai/ai-sdkimport { createClient, searchProducts } from '@savantoai/ai-sdk';
const client = createClient({
baseUrl: 'https://api.savanto.ai',
auth: process.env.SAVANTO_API_KEY,
});
// Semantic search
const { data } = await searchProducts({
client,
body: { query: 'warm jacket for hiking', limit: 10 },
});
// Chat
const { response } = await chat({
client,
body: {
message: 'What jackets do you recommend?',
threadId: 'thread_123',
stream: true,
},
});
composer require savanto/ai-sdk// PHP SDK — coming soon
All API requests require an API key passed in the Authorization header. You can create and manage API keys from your dashboard.
Authorization: Bearer your_api_key_here