Code Monkey home page Code Monkey logo

Comments (17)

Azzam1503 avatar Azzam1503 commented on May 20, 2024 1

I think you have typed apikey instead of apiKey in dalleRoutes openAI configurations, apiKey should be in camel case.

from project_ai_mern_image_generation.

kevmhughes avatar kevmhughes commented on May 20, 2024

Use a new secret API key from Openai in the .env file.

from project_ai_mern_image_generation.

alex-maaz avatar alex-maaz commented on May 20, 2024

I did. Still not fixed

from project_ai_mern_image_generation.

LucioFider avatar LucioFider commented on May 20, 2024

Use a new secret API key from Openai in the .env file.

Thank you man. Had the same issue and This fixed! it for me.

from project_ai_mern_image_generation.

Mohsin278 avatar Mohsin278 commented on May 20, 2024

I am having same issue

from project_ai_mern_image_generation.

PedroLab0 avatar PedroLab0 commented on May 20, 2024

OpenAI gives $18 to new users. You have probably already spent it using one of their services. I recommend you to create another account and generate a new api key or pay to use it. Once it is set up it will not give you any more problems.

from project_ai_mern_image_generation.

siddharthpraja avatar siddharthpraja commented on May 20, 2024

That's my new account and still I'm getting this error

from project_ai_mern_image_generation.

siddharthpraja avatar siddharthpraja commented on May 20, 2024

Uploading Screenshot_2023-03-19-10-09-31-44_40deb401b9ffe8e1df2f1cc5ba480b12.jpg


from project_ai_mern_image_generation.

Komal-J04 avatar Komal-J04 commented on May 20, 2024

Same issue. apiKey is correctly typed in camelCase and my account is new, haven't exhausted the credits yet

from project_ai_mern_image_generation.

srihari20031 avatar srihari20031 commented on May 20, 2024

from project_ai_mern_image_generation.

harshit0571 avatar harshit0571 commented on May 20, 2024

Same issue. apiKey is correctly typed in camelCase and my account is new, haven't exhausted the credits yet

Thanks @Komal-J04 ,
It worked for me

from project_ai_mern_image_generation.

Saksham1005 avatar Saksham1005 commented on May 20, 2024

I just want to ask that even if we want to use our free credits do we have to register our card on the site?

from project_ai_mern_image_generation.

harshit0571 avatar harshit0571 commented on May 20, 2024

I just want to ask that even if we want to use our free credits do we have to register our card on the site?

Yes we have to add our card in.
But can set the limit for your card.

from project_ai_mern_image_generation.

starlove54 avatar starlove54 commented on May 20, 2024

i got the error SyntaxError: Unexpected token ''', "'prompt' i"... is not valid JSON, turned out my headers object has a typo

from project_ai_mern_image_generation.

yashwant1711 avatar yashwant1711 commented on May 20, 2024

Having the same problem, does not figure out how to fix it :(

from project_ai_mern_image_generation.

shailja168 avatar shailja168 commented on May 20, 2024

oh man, you literally are a savior. Took me 2 hours to do every stupid to complex solution just to know that it was a 'K'. wow. Thank YOU.

from project_ai_mern_image_generation.

thisissuman avatar thisissuman commented on May 20, 2024

Having the same problem, does not figure out how to fix it :(

Hii,

If you are still getting the error(and in the Developer tool > Network tab > Preview if you are getting Invalid API key 401 error), then Just clear your cache and cookies(I repeat both cache and cookies) of your browser, restart your server and client.
If you have generated multiple API key, then just delete the rest and use only one. if you have used the api key in some other project before then take that API key and delete the rest.
It will surly work...

from project_ai_mern_image_generation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.