Python SDK
Get started with the Mixedbread Python SDK. Learn how to install, configure, and use the SDK for reranking and embedding tasks.
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 parameters:
api_key
: Your Mixedbread API key (required)max_retries
: Maximum number of retries for failed requests (default: 3)timeout
: Request timeout in seconds (default: 30.0)base_url
: Custom base URL for API requests (optional)
Error Handling
Use try/except 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! 🍞🚀
Last updated on
Status Codes
A comprehensive guide to API status codes used in Mixedbread's responses. Learn about common codes, their meanings, and best practices for error handling and debugging to optimize your API integration experience.
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.