#JavaScript help needed (script/api)

3 messages · Page 1 of 1 (latest)

pseudo heart
#

Hi Guys, I'm trying out new things and I want to copy a site (https://draw.clickart.ai/) , and I copied the html, css & the scripts but there is one feature that doesnt work. this is my copied version: https://peppy-empanada-3f1309.netlify.app/

The feature that doesnt work is the generate feature, where the sketch will get transformed into an image based on the prompt (see image). They used ByteScale API for this and I replaced their ByteScale API Key with my API Key on this script: https://draw.clickart.ai/_next/static/chunks/pages/index-24f603318eb93b30.js but it still doesnt work. In the 2nd image you can see the console errors I get

I'd appreciate any help on this.

proper horizon
#

Thanks for your question :clap:, if someone gives you an answer it would be great if you thanked them with a :white_check_mark: in response. This response will earn you both points for special roles on this server.

pseudo heart
#

Just edited the link