Skip to main content
The Dedalus Python library provides convenient access to the Dedalus REST API from any Python 3.9+ application. The library includes type definitions for all request params and response fields, and offers both synchronous and asynchronous clients powered by httpx.

Installation

Install the Dedalus SDK using pip, uv, or your preferred package manager

Quickstart

Get started with your first API call in minutes

API Reference

Explore the complete API reference documentation

GitHub

View the source code and contribute on GitHub

Key features

Type safety

Full TypedDict support for request parameters and Pydantic models for responses with autocomplete in your editor

Async support

Built-in async/await support with both httpx and aiohttp backends for optimal performance

Streaming

Server-sent events (SSE) streaming for real-time chat completions

Error handling

Comprehensive error types with automatic retries and configurable timeouts

Requirements

Python 3.9 or higher is required to use the Dedalus SDK.

Environment support

The SDK supports both production and development environments:
import os
from dedalus_labs import Dedalus

client = Dedalus(
    api_key=os.environ.get("DEDALUS_API_KEY"),
    environment="production",  # This is the default
)
The production environment points to https://api.dedaluslabs.ai and development points to http://localhost:4010.

MCP Server

Use the Dedalus MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application. Add to Cursor
You may need to set environment variables in your MCP client for authentication.

Next steps

Ready to get started? Follow our installation guide to set up the SDK, then explore the quickstart to make your first API call.

Install the SDK

Follow the installation guide

Make your first call

Complete the quickstart tutorial

Build docs developers (and LLMs) love