Hacker News new | ask | show | jobs
by fgGAMI 3378 days ago
Can you get a suggested color palette by API call?
1 comments

sure, you could just use the same API the main website does, it's unauthenticated:

  curl 'http://colormind.io/api/' --data-binary '{"model":"default"}'

  curl 'http://colormind.io/api/' --data-binary '{"input":[[44,43,44],[90,83,82],"N","N","N"],"model":"default"}'
keep in mind this is hosted on a single Linode 4096, and there's no SLA or anything :] It's handling the HN spike pretty well so far though.

also the models are rotated daily (ie. different ones are available each day), with the exception of "default"