TypeScript
Introduction
The Mixedbread TypeScript SDK provides a convenient interface for accessing our API with built-in error handling, retries, and type safety.
Installation
Quick Start
Get started with a simple example:
Configuration
The Mixedbread
constructor accepts the following options:
apiKey
: Your Mixedbread API key (required)maxRetries
: Maximum number of retries for failed requests (default: 3)timeout
: Request timeout in milliseconds (default: 30000)baseURL
: Custom base URL for API requests (default: https://api.mixedbread.com)
Error Handling
Use try/catch blocks to handle errors:
Environment Setup
Using Environment Variables
Last updated: September 10, 2025