TypeScript SDK
API reference for Mixedbread's Embeddings endpoint. This documentation covers request parameters, authentication requirements, and response structure for generating vector representations of text inputs.
Quick Start
Here's a quick example to get you started with the API:
Reranking documents
Embedding documents
Configuration
The MixedbreadAIClient
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 (optional)
Error Handling
Use try/catch blocks to handle errors:
Next Steps
- Get your API key in the Mixedbread dashboard
- Check out the full API documentation for more details on available endpoints and parameters
- Join our community for support and to share your projects
Happy baking! 🍞🚀