deepai-org/deepai-js-client

Deepai doesn't work

wioniqle-q opened this issue · 7 comments

image

const deepai = require('deepai');
deepai.setApiKey(MY DEEP APİ);

if(message.attachments.first()){
      const image = message.attachments.first().url
      
      let response = await deepai.callStandardApi("nsfw-detector", {
        image:image,
      })
      
      const score = response.output.nsfw_score
      if(score + .2 >= .5){
        message.delete()
        message.channel.send('NO NSFW Images allowed')
      }
    }

Version: "deepai": "^1.0.2" , "deepai": "^1.0.17"

@wioniqle-q how did you fixed? having same code 401 over here

@wioniqle-q how did you fixed? having same code 401 over here

I'm not fixed it. I'm done for this ;) I'm not using anymore

@wioniqle-q how did you fixed? having same code 401 over here

That error not you're problem. Deep API is deprecated i think. Still not using ...

Which API are you using? Most of our APIs are definitely not deprecated.

Which API are you using? Most of our APIs are definitely not deprecated.

Yeah but I'm saying I don't know :)

I tried, copying the example code from the website, for Stable Diffusion and the text2img (https://deepai.org/machine-learning-model/text2img)
neither worked and I got the same 401 error code. I suspect that or the API key that the example generated is wrong it's not valid or that I need to pay at least 5 dollars to test it. If this is the case you deepai should have signed in some point

I tried, copying the example code from the website, for Stable Diffusion and the text2img (https://deepai.org/machine-learning-model/text2img)
neither worked and I got the same 401 error code. I suspect that or the API key that the example generated is wrong it's not valid or that I need to pay at least 5 dollars to test it. If this is the case you deepai should have signed in some point

Yeah same point 👉☝️