Introduction
The Dedalus TypeScript SDK provides a comprehensive interface for interacting with the Dedalus API. It offers OpenAI-compatible methods with additional features for multi-model routing, server-side tool execution, and advanced agent orchestration.Installation
Quick Start
Core Features
Multi-Model Support
Dedalus supports multiple AI providers and models. You can specify models using provider-prefixed IDs:openai/gpt-4anthropic/claude-3-5-sonnetgoogle/gemini-pro
OpenAI Compatibility
The SDK maintains full compatibility with OpenAI’s API while providing additional Dedalus-specific features:- Server-side tool execution
- Multi-model routing
- MCP (Model Context Protocol) server integration
- Advanced agent attributes
Main Resources
Chat Completions
Generate conversational responses with support for:- Text generation
- Streaming responses
- Function/tool calling
- Multi-turn conversations
Models
List and retrieve information about available models:Embeddings
Generate vector embeddings for text:Images
Generate, edit, and create variations of images:Audio
Convert text to speech and transcribe audio:Error Handling
The SDK provides typed error classes for different scenarios:Advanced Features
DedalusRunner
For advanced agent workflows with automatic tool execution:Streaming Utilities
Helper functions for working with streams:TypeScript Support
The SDK is written in TypeScript and provides full type definitions for all methods and responses. Enable strict type checking for the best development experience.Next Steps
Chat Completions
Learn about generating chat completions
Streaming
Implement streaming responses
Tool Calling
Use function and tool calling
Models
Explore available models