Enhance your applications with our color mixing API. Get started quickly.
Explore Docs Open Playgroundasync function mixColors() {
const apiKey = 'YOUR_API_KEY'; // Replace with your actual API key
const endpoint = 'https://api.trycolors.com/v1/mix-colors';
const payload = {
colors: [
{ hex: '#FFAA16', count: 1 },
{ hex: '#BA12FF', count: 1 }
]
};
try {
const response = await axios.post(endpoint, payload, {
headers: { 'X-API-KEY': apiKey }
});
console.log('Mixed Color:', response.data.mixedColor);
} catch (error) {
console.error('Error mixing colors:', error.response.data);
}
}
mixColors();
API Endpoint | Rate Limit (requests/second) | Daily Limit (requests/day) |
---|---|---|
Mix Colors | 2 | 50 |
Unmix Color | 1 | 10 |
Similar paints | 1 | 10 |
Stay tuned for upcoming paid tiers with enhanced rate limits!
Have questions or feedback? Contact us through our form.