Skip to main content
Dedalus Hero Light

Welcome to Dedalus

The Dedalus TypeScript SDK provides convenient access to the Dedalus REST API from server-side TypeScript or JavaScript applications. Built with Stainless, it offers a fully-typed interface for chat completions, embeddings, audio processing, and image generation.

Installation

Install the SDK with npm, yarn, pnpm, or bun

Quickstart

Get started with your first chat completion in minutes

API Reference

Explore the complete API documentation

GitHub Repository

View the source code and contribute

Key features

Full TypeScript support

Complete type definitions for all request params and response fields with IntelliSense support

Streaming responses

Built-in support for Server Sent Events (SSE) streaming with async iterators

Automatic retries

Smart retry logic with exponential backoff for connection errors and rate limits

Multiple runtimes

Works in Node.js, Deno, Bun, Cloudflare Workers, and Vercel Edge Runtime

Error handling

Comprehensive error types for different API failure scenarios

File uploads

Flexible file upload support for audio transcription and image operations

Supported runtimes

The SDK works across multiple JavaScript runtimes:
  • Node.js 20 LTS or later
  • Deno v1.28.0 or higher
  • Bun 1.0 or later
  • Web browsers (Chrome, Firefox, Safari, Edge)
  • Edge runtimes (Cloudflare Workers, Vercel Edge Runtime)
  • Nitro v2.6 or greater
React Native is not currently supported. If you need React Native support, please open an issue on GitHub.

Requirements

  • TypeScript 4.9 or higher (for TypeScript projects)
  • API Key from Dedalus Labs

Next steps

Install the SDK

Follow the installation guide to add Dedalus to your project

Try the quickstart

Create your first chat completion in under 5 minutes

Build docs developers (and LLMs) love