Comments (17)
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.
Use a new secret API key from Openai in the .env file.
from project_ai_mern_image_generation.
I did. Still not fixed
from project_ai_mern_image_generation.
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.
I am having same issue
from project_ai_mern_image_generation.
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.
That's my new account and still I'm getting this error
from project_ai_mern_image_generation.
from project_ai_mern_image_generation.
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.
from project_ai_mern_image_generation.
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.
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.
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.
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.
Having the same problem, does not figure out how to fix it :(
from project_ai_mern_image_generation.
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.
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)
- CORS Error HOT 2
- help me to find a solution of the given erro... SyntaxError: Unexpected token 'B', "Billing ha"... is not valid JSON. HOT 11
- Getting error when I am clicking generate image "type error : failed to fetch " HOT 21
- Whenever I try to share API generated image to the home page, it gives me "POST http://localhost:8080/api/v1/post 500 (Internal Server Error) handleSubmit @ CreatePost.jsx:23" error even after giving "Success" alert. HOT 3
- Failed to load resource: the server responded with a status of 500 (Internal Server Error) HOT 4
- invalid image URL ,trouble in rendering image
- err in createpost page when i click generate than err occurs tht invalid api HOT 2
- Openai HOT 1
- Error HOT 4
- Error HOT 1
- unexpected end of json
- Error occured HOT 7
- Anyone can solve this.. HOT 3
- Running Project with Working API HOT 8
- POST http://localhost:8080/api/v1/post 500 (Internal Server Error) HOT 2
- Image error HOT 1
- [nodemon] app crashed - waiting for file changes before starting... HOT 4
- The solutions for major 4 Issues (#57, #56, #54 and # 59) HOT 2
- Solution Provided for : issue #2 File Saver npm Package not working after hosting
- TypeError: Failed to fetch HOT 35
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
ð Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google â€ïž Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from project_ai_mern_image_generation.