Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Keys don't work for Dalle 2 #13

Closed
scottk2 opened this issue Aug 12, 2022 · 7 comments
Closed

API Keys don't work for Dalle 2 #13

scottk2 opened this issue Aug 12, 2022 · 7 comments
Labels
question Further information is requested

Comments

@scottk2
Copy link

scottk2 commented Aug 12, 2022

Hi there,

I tried this approach and package but it seems that teh API keys don't work for Dalle access (401). From what I've read, they don't support this at the moment. Did you get this working, and if so, does it still work for you?

Thanks!

@ezzcodeezzlife
Copy link
Contributor

@scottk2 make sure you have a fresh bearer key. it runs out after some time ⏲️ (dont use GPT3 API key)

@realandygithub
Copy link

Hi, I have the same(?) issue. I had trouble getting the bearer key when I visit https://labs.openai.com/api/labs/tasks, because it prompted me for a username and password. As I only login with google oAuth, I don't have a username & password for openai. I also tried to put my api key in my password and leaving username blank, but no luck...

I tried to input my api key into the app directly, and it throws the error below.

Error: getaddrinfo EAI_AGAIN labs.openai.com
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:83:26) {
errno: -3001,
code: 'EAI_AGAIN',
syscall: 'getaddrinfo',
hostname: 'labs.openai.com'
}

@ezzcodeezzlife
Copy link
Contributor

@realandygithub make sure you are invited through the waitlist... then getting the bearer key should work like described in the readme. do not use the GPT3 Api Key 🗝️

@1998code
Copy link
Owner

1998code commented Aug 14, 2022

Hi @scottk2 @realandygithub,

Please see the steps below for your reference.

  1. Open https://labs.openai.com/ and Right Click to inspect. Go to network. You may need to refresh the page first.

CleanShot 2022-07-16 at 00 22 23@2x

  1. Input something and click generate.

CleanShot 2022-07-16 at 00 21 26@2x

  1. Find the Tasks, and scroll down to see your token.

CleanShot 2022-07-16 at 00 24 16@2x

Let me know if it works for you.

@1998code 1998code added the question Further information is requested label Aug 14, 2022
@realandygithub
Copy link

It works! Thank you!

@xishoon
Copy link

xishoon commented Oct 27, 2022

The token expired after some time. How we can avoid this ? I Don't want to get token through inspect element again and again. Is there any solution ?

@1998code
Copy link
Owner

@xishoon Please try the latest v2 instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants