Welcome to ChordMini
Advanced machine learning models for beat detection, chord recognition, and lyrics fetching. Get started with our comprehensive API documentation and examples.
Getting Started
The ChordMini API provides powerful audio analysis capabilities with no authentication required. Start making requests immediately to analyze audio files and extract musical information.
Beat Detection
Identify beat positions and downbeats using advanced ML models
Chord Recognition
Recognize chord progressions with multiple model options
Lyrics Fetching
Retrieve synchronized lyrics from LRClib database
Model Info
Get details about available models and capabilities
Quick Start
Base URL
Authentication
Authentication
The ChordMini API is currently open and does not require authentication. All endpoints are publicly accessible, making it easy to get started with audio analysis immediately.
No API Key Required
Start making requests immediately without any setup or registration process.
Future Changes: Authentication may be required in future versions. Implement proper error handling for potential 401/403 responses.
CORS Support
Cross-Origin Resource Sharing (CORS) is enabled for all origins, allowing browser-based requests.
Content Types
Supports multiple content types for different use cases.
Rate Limits
The ChordMini API implements production-grade rate limiting to ensure fair usage and system stability. Rate limits vary by endpoint based on computational requirements and are enforced using Redis-based storage.
Production-Grade Rate Limiting
Redis-based rate limiting with sliding window ensures fair usage and maintains service quality. Heavy processing endpoints have stricter limits to prevent resource exhaustion.
Method: IP Address-based limiting with Redis storage • Window: Sliding window algorithm
Rate Limits by Endpoint
Endpoint | Method | Rate Limit | Reason |
---|---|---|---|
/ | GET | 30/minute | Health checks, status monitoring |
/api/model-info | GET | 20/minute | Information endpoint, moderate usage |
/api/detect-beats | POST | 2/minute | Heavy processing, resource intensive |
/api/recognize-chords* | POST | 2/minute | Heavy processing, ML inference |
/api/lrclib-lyrics | POST | 10/minute | Synchronized lyrics with timestamps |
/api/genius-lyrics | POST | 10/minute | Genius.com lyrics fetching |
Available Models
ChordMini provides multiple machine learning models for different audio analysis tasks. Each model is optimized for specific use cases and performance characteristics.
Beat Detection Models
Beat-Transformer
DefaultDeep learning model for beat tracking with downbeat detection. Provides high accuracy for modern music genres.
Madmom
Classical beat tracking algorithm with neural network components. Reliable for complex rhythmic patterns.
Chord Recognition Models
Chord-CNN-LSTM
DefaultConvolutional and LSTM neural network for chord recognition with 301 chord labels. Excellent balance of accuracy and performance.
API Endpoints
Analyzes audio file and returns beat timestamps, BPM, and time signature.
Parameters: file (audio file), model (optional: beat-transformer, madmom, auto)
Analyzes audio file and returns chord progression with timestamps.
Parameters: file (audio file), model (optional: chord-cnn-lstm)
Retrieves synchronized lyrics with timestamps from LRClib database.
Parameters: artist (string), title (string), duration (number, optional)
Returns information about available models and their capabilities.
Parameters: None required
Usage Examples
Here are some practical examples of how to use the ChordMini API using Javascript and cURL.
JavaScript Example
Beat Detection
Request
Response
Chord Recognition
Request
Response
Error Response Examples
Rate Limit Exceeded (429)
Invalid File Format (400)
Troubleshooting
Common Issues
Rate Limit Exceeded (429)
You've exceeded the rate limit for the endpoint. Wait for the time specified in the Retry-After header.
File Format Not Supported
The API supports common audio formats: MP3, WAV, FLAC, M4A, OGG.
Processing Timeout
Large audio files may take longer to process. The API has a 10-minute timeout.
API Status
Monitor the real-time status of ChordMini API services and endpoints. Check service availability and performance metrics.
Backend Services
Core API services including beat detection, chord recognition, and lyrics fetching.
Infrastructure
Server infrastructure and deployment status on Google Cloud Run.
Detailed Status Page
For real-time monitoring and detailed service metrics, visit our dedicated status page.
View Status Page